Hi everyone, im having a great deal of trouble trying to sync 2 of the RGB leds i have for my robots eyes.
Just spent the last 2hrs, and some other days trying to get them to sync, so i thought it best i turn the ezb off and ask for assistance because its greatly delaying my current project...and meanwhile giving me zero confidence to start the next project for if i can't sync 2 leds... tired
Ive been close with it, but then they stray off and start to do their own thing, no matter what i do i just can't get them to join in holy matrimony.
Any help would be greatly appreciated, ive spent around 3-4 hrs total trying to figure it out as embarrassing as it is for me to say..and the more i try it seems to all go backwards and becomes much worse than when i started.
edited to remove incorrect information. My info matched Jeremie's diagram, but not your's, and I had my cathode and anode terms mis-matched.
@PTP is correct, as usual.
Alan
There 2 types of rgb leds:
common anode common anode to the vcc (use the 3.3 regulated red pin) 3 x cathodes to the digital pins led will light on Low/ON
common cathode common cathode to the gnd (black pin) 3 x anodes to the digital the led will light on High/OFF
Your led is type 1) Jeremie is type 2)
deleted post
FUD detected !
@thetechguru
Not correct Anode is Positive goes to a Positive +
@Nomad 6R
wrong also the picture is confusing both red and black ?
Common Anode connections:
The led pcb has 4 pins like RGB Led Common Anode: Red (Cathode) Green (Cathode) Blue (Cathode) 5v (Common Anode) Purple cable
Purple Cables (Common Anodes) are connected to regulated 3.3v (Analog Pins Bank):
RGB Cathode Pins are connected to the digital pins:
*** Common Anode RGB LED ***
Notes: ON = LED OFF OFF = LED ON PWM 1 or OFF = Max Brightness PWM 99 = Min Brightness
indigo and brown lights, no doubts
:
php
i mean red&black on ezb.thank for the pics.i would love to have tri color, led whit flat head.
@Nomad 6R
One or the other, and there are 3 types of voltages: VIn (Red) VCC (Red) GND (Black)
For common Cathodes Led: you connect the common (4 leg) to the GND(Black)
For common Anode Led: you connect the common (4 leg) to the VCC (red) Digital Pins's VIn (red) is not regulated we need the VCC (red) 3.3v from the analog bank.