Pages: 1 2 3 [4] 5   Go Down
Author Topic: We've figured it out. Problem solved!!  (Read 5100 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26331
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Minnesota!
Offline Offline
Sr. Member
****
Karma: 0
Posts: 386
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you draw that our for me please?

Sent from iPod
Logged

Find AKSoapy29 on:
Youtube
Website

Minnesota!
Offline Offline
Sr. Member
****
Karma: 0
Posts: 386
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The cathode thing is on ground, and the anode things are on 5V. But it still doesn't work.
« Last Edit: December 26, 2010, 08:22:49 pm by Soapy29 » Logged

Find AKSoapy29 on:
Youtube
Website

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26331
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Minnesota!
Offline Offline
Sr. Member
****
Karma: 0
Posts: 386
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Find AKSoapy29 on:
Youtube
Website

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26331
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, that says to me the LED is bad then.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Minnesota!
Offline Offline
Sr. Member
****
Karma: 0
Posts: 386
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Find AKSoapy29 on:
Youtube
Website

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26331
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you have a link to the datasheet for the part you are using?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Minnesota!
Offline Offline
Sr. Member
****
Karma: 0
Posts: 386
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: December 26, 2010, 09:17:10 pm by Soapy29 » Logged

Find AKSoapy29 on:
Youtube
Website

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26331
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Minnesota!
Offline Offline
Sr. Member
****
Karma: 0
Posts: 386
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you think I could use a relay to reverse  5V to Ground?  :o That might work  smiley-grin
Logged

Find AKSoapy29 on:
Youtube
Website

Minnesota!
Offline Offline
Sr. Member
****
Karma: 0
Posts: 386
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I just found something:

Goto File > Examples > 8. Strings > StringtointRGB

That might be something
Logged

Find AKSoapy29 on:
Youtube
Website

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26331
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26331
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have -0021, it doesn't have StringtointRGB.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Minnesota!
Offline Offline
Sr. Member
****
Karma: 0
Posts: 386
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Find AKSoapy29 on:
Youtube
Website

Pages: 1 2 3 [4] 5   Go Up
Jump to: