For info about HomeSpan Arduino Library, read the user guide:
[ Ссылка ]
You'll find that the device code is: 466-37-726
Steps:
1) Install the ESP32 board in Arduino IDE (if you don't have it there yet)
[ Ссылка ]
2) Download and extract HomeSpan library in documents/Arduino/libraries/HomeSpan
3) Use the example:
[ Ссылка ]
You can keep only the section new SpanAccessory(); referred to the RGB and comment the other accessories
- You will need to get three MOSFET for Arduino. I used these
[ Ссылка ]
- Connect each MOSFET PWM signal pin respectively to pins 32, 22, 23 (for R, G, and B)
- Connect all MOSFET GND to ESP32 GND
- If your RGB strips works at 12V connects to the (+) (-) on the MOSFET PCB to the 12V power supply (if your strip is 24V just use a 24V power supply).
- connect the (load) on each MOSFET PCB respectively to R, G, B of the strip
- MAKE sure you connect ESP32 GND to negative pole (-) of Power supply to give them common ground!!!!
Have fun!
Ещё видео!