RGB led project

How do I connect a RGB 4 terminal LED to my bolt module, do I need to input seperate pin to each colour or it can be done by varying the voltage of LED output, can anyone help me out giving the circuit diagram

Hi,

You need 3, 330ohm resistors for this to work properly.

Connect 1 end of each of the 330 ohm resistor to 3 GPIO pins of the Bolt WiFi module. Connect the other ends of 330ohm resistor to the 3 +ve pins of the LED. Next connect the -ve pin of the LED to the gnd pin.

You can then turn on, turn off, and set a PWM value to each of the GPIO pins to control what color is shown by the LED.

thanks for your reply it worked.

1 Like