Pages: 1 ... 3 4 [5]   Go Down
Author Topic: We've figured it out. Problem solved!!  (Read 5488 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 545
Posts: 27353
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

Please remember to use the current limit resisters.
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

Right I have those two. Any suggestions? The anode should be 5V, but it's grounded right now due to the fact that the pins a 5V out.
Logged

Andrew K.

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 545
Posts: 27353
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

Go back & look at reply #4.
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

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

This one? That's the way they are. I'll flip them in the morning.
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

Just by switching the pin, and changing the program a little, it works!! Now is there a library for motors?
Logged

Andrew K.

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 50243
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Now is there a library for motors?
A motor get power and spins, or doesn't get power and doesn't spin. Whether it gets power or not is determined by the setting of a pin. You need a library for this?

Or, are you talking about some specific kind of motor, like servos or steppers? There are libraries for these.
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 545
Posts: 27353
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

it would seem so

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1290165847

search the forum, motors comes up a lot.
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

Have you ever heard of VeX Robotics? http://www.vexrobotics.com/

I'm trying to use on of there motors (Which worked), but I did it in the servo library. http://www.vexrobotics.com/products/accessories/motion/276-2163.html

I know this works cause other people have done it before.
Logged

Andrew K.

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 545
Posts: 27353
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 heard of VEX. Not much into mechanical stuff myself.
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

So how would I control one of those motors?
Logged

Andrew K.

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 545
Posts: 27353
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 would start with posting the question under a new thread, along with the VEX motor link and some discussion of what you did previously.  No one is going to see questions on motors 5 pages into this thread.
See you in the new thread!
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

Ok! smiley-grin
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

[size=24]POST DONE! PROBLEM SOLVED!! smiley-grin[/size]
« Last Edit: December 27, 2010, 02:27:56 pm by Soapy29 » Logged

Andrew K.

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