I have been trying to use the VEX motor and the Arduino program for my project. The problem is I can't get the VEX motor controller 29 to send my signal to the motor. At first I thought it was a power problem so instead of the 5V coming from the arduino I used an external 9V battery. The 9V got a jolt of action out of the motor, but the 5V did nothing so I think I'm on the right track, but it still isn't working. HELP.
For informed help, please read the "How to use this forum" post and follow the directions.
What is the problem with this post?
I have been trying to use the VEX motor and the Arduino program for my project. The problem is I can't get the VEX motor controller 29 to send my signal to the motor. At first I thought it was a power problem so instead of the 5V coming from the arduino I used an external 9V battery. The 9V got a jolt of action out of the motor, but the 5V did nothing so I think I'm on the right track, but it still isn't working.
CODE:
#include <Servo.h>
Servo MotorA;
void setup() {
MotorA.attach(9);
}
void loop() {
MotorA.write(180);
delay(1000);
MotorA.write(0);
delay(1000);
}
The wiring diagram is attached
Don't repeat posts - do not cross post!
As you can't read (well you have not read the forum rules have you) I'm not going to bother writing a reply.
Mark
I have been trying to use the VEX motor and the Arduino program for my project. The problem is I can't get the VEX motor controller 29 to send my signal to the motor. At first I thought it was a power problem so instead of the 5V coming from the arduino I used an external 9V battery. The 9V got a jolt of action out of the motor, but the 5V did nothing so I think I'm on the right track, but it still isn't working.
CODE:
#include <Servo.h>
Servo MotorA;
void setup() {
MotorA.attach(9);
}
void loop() {
MotorA.write(180);
delay(1000);
MotorA.write(0);
delay(1000);
}
The wiring diagram is attached
Hi,
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
OP's Circuit.
Can you post a link to the VEX please?
Thanks.. Tom.. ![]()
Hi,
Please do not cross post
A 9 volt battery, as in the small alkaline blocks with the two snap connections you buy in the Megamart - cannot supply enough current to do much of anything. Of course this depends upon your motor but anything big enough to need a 3 amp controller sure as heck isn't going to move much at all with a wimpy 9 volt alkaline battery.
PS: don't be offended by our more outspoken members. They've forgotten what it's like to be a newbie, expecting perfection in your first post.
For TomGeorge:
Please do not keep posting threads.
You will have to wait for replies to your posting.
You have access to many forum members, BUT they are all over the world, AND they are not on the Forum 24hours a day.
Please be patient.
Have you read how to control your VEX, some need to be started in a certain sequence, or calibrated before running.
Can you tell us your electronics, programming, Arduino, hardware experience?
Thanks Tom... ![]()
Hi,
What is your motor power supply and what are the specs of the motor you are trying to drive?
Do you have a DMM to help trouble shoot?
Thanks.... Tom.... ![]()
Hi,
Have you tried 90 or 100 instead of 180 as servo output?
Tom.. ![]()
Show us a Motor link.
Show us a VEX motor controller 29 link.
Show us your sketch, use </> icon in the posting menu.
Show us a schematic how things are wired.
Show us an image of your wiring.
.
Threads merged.
