Hardware
The first step, is to hook up your microcontroller to your lights. To do this we only need three wires, two for power, one for data.
To connect your NeoPixel lights to your NodeMCU board, you will need some dupoint wires and a breadboard.
Follow these steps:
- Cut off one end of three jumper wires and strip about 5mm of insulation from each wire.
- Solder one wire to each of the three pads on the NeoPixel strip: 5V, GND, DIN.
- Plug the other end of each wire into the NodeMCU as follows: 5V to the VIN pin (+), GND to any GND pin (-), DIN (Data In) to the D1 pin.
- If you want to chain together multiple strips, connect the positive and neigitive to the other strips, and chain DO (Data Out) to DIN (Data In)