Go Down

Topic: We've figured it out. Problem solved!! (Read 5924 times) previous topic - next topic

CrossRoads

How is that? You indicated that you had a common cathode path - the cathode goes to ground, the individual anodes get 5V via resister from ardiuno pin to turn on.
Either that, or change the wiring to have +5V to resister to anode, and anode to arduino also.
Then arduino pin is high the LED is in, if arduino pin is low the anode goes low and turns off.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

AKSoapy29

Can you draw that our for me please?

Sent from iPod
Andrew K.

AKSoapy29

#47
Dec 27, 2010, 02:19 am Last Edit: Dec 27, 2010, 02:22 am by Soapy29 Reason: 1
The cathode thing is on ground, and the anode things are on 5V. But it still doesn't work.
Andrew K.

CrossRoads

As I drew it out, realized there would be no current limit from the arduino thru the LED, so that would end up blowing the arduino pins.
The arduino thru resister to LED anode should turn on the LED.
Does the arduino get hot to the touch with nothing connected? That would be a good indication that LEDs were driven without current limit resisters and has blown outputs.
Otherwise, you should be able to see the output voltage go high & low with your meter.

If you connect a 330 ohm resister to +5v and the other side to each anode individually, cathode to ground, do the different colors turn on?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

AKSoapy29

No when I hook up a 330 Ohm resister to positive, and the cathode to ground, it does not light up.
Andrew K.

CrossRoads

Ok, that says to me the LED is bad then.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

AKSoapy29

No, it still works if I flip the leads. The problem is when I flip the leads, I can only control 1 color.
Andrew K.

CrossRoads

Do you have a link to the datasheet for the part you are using?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

AKSoapy29

#53
Dec 27, 2010, 03:11 am Last Edit: Dec 27, 2010, 03:17 am by Soapy29 Reason: 1
No, but I used the Arduino Starter Kit from the MakerSHED.
This is the kit I have: https://www.makershed.com/ProductDetails.asp?ProductCode=MSAPK

Here's a datasheet: http://makezine.com/images/store/V2_Datasheet.pdf
Andrew K.

CrossRoads

There is no data on the RGB LED, nor does the website have any data on it.  That sucks.
With the 5V, resister and gnd, try some other connections, see if you have a common anode part instead.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

AKSoapy29

Do you think I could use a relay to reverse  5V to Ground?  :o That might work  :D
Andrew K.

AKSoapy29

I just found something:

Goto File > Examples > 8. Strings > StringtointRGB

That might be something
Andrew K.

CrossRoads

Okay, electrically speaking, that makes no sense.
It is either a common anode part or a common cathode part like I drew earlier.

Here is the common cathode version wired up like you should have:
http://wiring.org.co/learning/basics/rgbled.html

and a common anode
http://www.mbeckler.org/microcontrollers/rgb_led/

you have one or the other.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

CrossRoads

I have -0021, it doesn't have StringtointRGB.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

AKSoapy29

I'm using 0022 so that might explain that, but looking at those diagrams again, it looks like I have a common anode. Same thing. Sorry about that. I have G, B, and R in pin number 8, 9, and 10. Right now I have the anode in ground, but I'll change that.

Sent from iPod
Andrew K.

Go Up