Asked — Edited

Rgb Led Help Needed

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.


ARC Pro

Upgrade to ARC Pro

ARC Pro is more than a tool; it's a creative playground for robot enthusiasts, where you can turn your wildest ideas into reality.

#1  

Do you have a circuit diagram? How are the RGB LED's Connected?

#2  

Hi Wayne, one led is connected to D0 and the other to D1.

PRO
Canada
#3  

Hi @NEWAGETOMY

I believe why Wayne is asking for a circuit diagram is because we don't really have a good idea of what kind of RGB LEDs you are using. Are you using BlinkM's, EZ-Robot RGB Eyes, Neopixels, or just standard RGB LEDs?

If you were using standard RGB LEDs connecting one to D0 and one to D1 doesn't make much sense because RGB LEDs require 3 signals each plus a Common Anode or Common Cathode connection. 8 connections total.

If you were using BlinkM's this wouldn't make sense either since BlinkM's use an I2C connection. 4 connections.

If you were using 2 x EZ-Robot RGB Eyes this wouldn't make sense either since they also use an I2C connection. 4 connections.

The only logical explanation that I can think of is that you are using Neopixel RGB LEDs directly connected to D0 and D1. Unfortunately, I hate to be the bearer of bad news but the EZ-B can't reliably drive Neopixel RGB LEDs directly; you would have to use an Arduino to drive them or wait until the EZ-Robot Neopixel Blaster is released:)

#4  

@jeremie,

thanks for your reply!:)

Im just using standard rgb leds-Red/Blue/Green.

When they are powered on they go through their red/blue/green sequence fine, never had a problem with them, just for the life of me i can't get them to operate at the exact same time.

These led's only need positive and negative im sure. There is an led on D0 and D1.

Not sure why i would need a diagram, it is just your normal standard led, with one on D0 and the other one on D1.

User-inserted image

PRO
Canada
#5  

That's where I'm confused, as I said:

Quote:

If you were using standard RGB LEDs connecting one to D0 and one to D1 doesn't make much sense because RGB LEDs require 3 signals each plus a Common Anode or Common Cathode connection. 8 connections total.

Unless you are using 2 pin special automatic self-cycling RGB LEDs, if that's the case the circuit inside them is never purely in sync from one LED to another. It's likely impossible to sync them.

Can you post a picture of your setup?

Edit: Weird, I didn't see the picture you posted until now. You definitely have self-cycling RGB LEDs. Convert to regular RGB LEDs, more connections but tried and true results.

PRO
Canada
#6  

This is a standard RGB LED ;)

User-inserted image

#7  

@Jermie,

thanks so much!

Ok so the one's i have aren't standard at all..thats great for it gives me an excuse to install a few more led's now.:D

#8  

Just looking at these led's again...there are 4 pins...how would i go about wiring them up now?

Do i have to run the ground/negative wire somewhere else?

User-inserted image

Wish i knew what i was missing, 4 pin rgb leds but i only have 3 digital out pins, etc?

Sorry little confused here. sleep

Fairly sure i simply need to run a ground wire to another location?