Pages: [1] 2 3 ... 5   Go Down
Author Topic: We've figured it out. Problem solved!!  (Read 5491 times)
0 Members and 1 Guest are viewing this topic.
Minnesota!
Offline Offline
Sr. Member
****
Karma: 0
Posts: 388
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

[size=24]POST DONE! PROBLEM SOLVED!! smiley-grin[/size]
We've figured it out, so you do need to see this.
« Last Edit: December 27, 2010, 02:31:09 pm by Soapy29 » Logged

Andrew K.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 546
Posts: 27363
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

Generally:
digitalPin = 2; // can go up to 19 for Uno's - 0/1 are the Rx/Tx pins for downloading, leave free if able

pinMode (digitalPin, OUTPUT);
digitalWrite (digitalPin, HIGH);

will sit high until commanded Low;
digitalWrite (digitalPin, LOW);
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: 388
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Lemme tell you what I'm doing.

I'm controlling a RGB led with 3 push buttons. The problem is, I need to reverse the power from Ground to 5V. I just don't know how to do it.. My led is backwards you could say...
« Last Edit: December 26, 2010, 03:08:05 pm by Soapy29 » Logged

Andrew K.

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 34567
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The problem is, I need to reverse the power from Ground to 5V.
No you don't you need to wire it up the other way round. Wire the common anode to +5v then from each cathode lead of the LED connect it first to a resistor then the arduino output. That's 3 outputs.
The writing LOW to the pin turns on the LED and writing HIGH turns it off.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 546
Posts: 27363
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

Are your LEDs wired in one of these ways?
The upper LEDs will turn on when the output is low

The lower LEDs will turn on when the outoput is high

The pins can PWM outputs also, will still turn as described above.

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: 388
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

There's only one led and none of this makes sence. + goes to +, - goes to -..   :-? For leds
Logged

Andrew K.

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26496
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
and none of this makes sence
Amen
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

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

Here's a picture. My camera stinks, ever though it's 7.1 MP...

Logged

Andrew K.

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26496
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I see a red cross.
Way fewer than 7MPix
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

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

It says 7.1 Right on it.. It lied
Logged

Andrew K.

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

I've seen phones with more MP on them. I bet my iPod is better!
Logged

Andrew K.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 546
Posts: 27363
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

Your pic has this for properties
http://www.vexforum.com/gallery/files/2/0/5/5/7/img_3102.jpg
maybe all the /'s are supposed to be something else?


If you have an RGB LED as you say, then it should look like one of these, and will turn as we indicated.
Can you post a link to the LED that you bought?

« Last Edit: December 26, 2010, 03:47:04 pm by CrossRoads » 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: 388
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have the top one, but flip blue and green and it will match. 3 is negative and the rest are positive.
Logged

Andrew K.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 546
Posts: 27363
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

Connect it up like I showed for pins D2, D3, D4 above. High output will turn the LEDs on.
Use a 270, 300, 330 ohm resister, something in that range, for each of the color legs.
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: 388
My nickname on the forum used to be Soapy29.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It does not fade, and the only colors it has are red, green, and blue.
Logged

Andrew K.

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