You will need to wire the Esp32 and your strip together, connect the Esp32 to the computer view USB cable and program the Esp32.
These are the steps you need to follow
In this example we are wiring a led strip with the esp32. This led strip is of the type APA102 and it has four connections, 5V, GND, DI and CI. Some strip types have only three connections a 5V, GND and DI.
If you try to light up to many leds on power from the USB alone, power running through the USB will not be enough to power all the strip.
If you need many leds lit, add a additional 5V power supply which should be connected to V5 and GND on the strip and do not connect the red wire on the drawing below (Red wire: Esp32 5V - strip 5V)
In the application main menu (upper right corner) click Action->Export code. This will show the dialog below. From this dialog you can export code for the Esp32 micro-controller.
This dialog is used to export code for the Esp32 device. This will allow the device to control a led strip and receive commands via the USB cable.
Specify how many light emitting diodes there are on your strip.
Some strips have only three wires, 5V, data-pin and GND.
If your strip has only three, un check this.
Specify the chipset of your strip.
Color scheme of the strip leds. Each led has three diodes, red, green and blue. These diodes are used to display the different colors. Strips will sometimes differ in the order of these diodes. possible variations are the following;
Scheme | Description |
---|---|
RGB | Red, green, blue |
RBG | Red, blue, green |
GRB | Green, red, blue |
GBR | Green, blue, red |
BRG | Blue, red, green |
BGR | Blue, green, red |
Which pin will you be using on your micro-controller for the data pin.
This pin must be connected to Data or DI connection on your strip.
Which pin will you be using on your micro-controller for the clock pin.
This pin must be connected to CLK or CI on your strip.
Note Not all strips have a clock connection.
Export the code, after pressing this button you will be asked to
select a folder to export the code to.
Nothing will be exported and to form will close