Go Down

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

#45
##### Dec 27, 2010, 01:32 am
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.

#### Soapy29

#46
##### Dec 27, 2010, 02:07 am
Can you draw that our for me please?

Sent from iPod

#### Soapy29

#47
##### Dec 27, 2010, 02:19 amLast 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.

#48
##### Dec 27, 2010, 02:44 am
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.

#### Soapy29

#49
##### Dec 27, 2010, 02:47 am
No when I hook up a 330 Ohm resister to positive, and the cathode to ground, it does not light up.

#50
##### Dec 27, 2010, 02:56 am
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.

#### Soapy29

#51
##### Dec 27, 2010, 02:57 am
No, it still works if I flip the leads. The problem is when I flip the leads, I can only control 1 color.

#52
##### Dec 27, 2010, 03:06 am
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.

#### Soapy29

#53
##### Dec 27, 2010, 03:11 amLast 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

#54
##### Dec 27, 2010, 03:45 am
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.

#### Soapy29

#55
##### Dec 27, 2010, 03:48 am
Do you think I could use a relay to reverse  5V to Ground?   That might work

#### Soapy29

#56
##### Dec 27, 2010, 03:55 am
I just found something:

Goto File > Examples > 8. Strings > StringtointRGB

That might be something

#57
##### Dec 27, 2010, 04:06 am
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.

#58
##### Dec 27, 2010, 04:10 am
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.

#### Soapy29

#59
##### Dec 27, 2010, 04:27 am
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

Go Up