How to control VEX Servo Motors with Arduino Software

Hi I am trying to control VEX motors with an arduino, but I am having trouble finding tutorials on how to control the servos with arduino code online.(I am a new to all of this)

Can someone give me example code for how to do this or point me towards a tutorial.

Thank you

SPalyam:
Hi I am trying to control VEX motors with an arduino, but I am having trouble finding tutorials on how to control the servos with arduino code online.(I am a new to all of this)

Can someone give me example code for how to do this or point me towards a tutorial.

Thank you

Perhaps... if you can provide a link to a data sheet or other information relating to the VEX motors you have.

Paul

VEX servo? Or VEX motor? They're not the same thing. 3 wires v 2 wires.

Steve

I am using a 2 wire vex servo with the motor controller that turns it into 3 wire. I believe it is the vex 393

SPalyam:
I am using a 2 wire vex servo with the motor controller that turns it into 3 wire. I believe it is the vex 393

What part of "provide a link to a data sheet" (in Reply #1) don't you understand?

...R

http://www.education.rec.ri.cmu.edu/products/cortex_video_trainer/lesson/media_files/2_wire_393_motor_ig.pdf
This is the best I could find on the servos.

Sorry for not being more specific the first time around this is my first time doing anything like this and I didn't really know what information was needed

SPalyam:
http://www.education.rec.ri.cmu.edu/products/cortex_video_trainer/lesson/media_files/2_wire_393_motor_ig.pdf
This is the best I could find on the servos.

That link tells us about a 2 wire geared drive motor. It says nothing about any controller that can turn it into a servo.

Let's try to get to it another way...what is your application for the motor or servo? What EXACTLY will it be driving/turning/moving? What control do you expect to have over it? Generally with a servo you control its position over a range of about 150-180 degrees but with a motor you can only control the speed and direction - they are very different things.

Steve

I will be using four of those servos which are continuous rotation with this controller https://www.vexrobotics.com/276-2193.html. To power a small four wheeled robot one motor for every wheel

SPalyam:
I will be using four of those servos which are continuous rotation with this controller https://www.vexrobotics.com/276-2193.html. To power a small four wheeled robot one motor for every wheel

Whew! Finally we get to the point. You need 4 PWM pins. Did you see the requirements for stop and forward speed?

Paul

SPalyam:
Sorry for not being more specific the first time around this is my first time doing anything like this and I didn't really know what information was needed

We need at least as much as you have...

Paul_KD7HB:
Whew! Finally we get to the point. You need 4 PWM pins. Did you see the requirements for stop and forward speed?

Congratulations. I have no idea how you figured that out.

The VEX links that the OP has provided seem to be the usual "modern" type of website with fancy pictures and f--- all useful information.

...R

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html

Can you post a picture of your motor please?
Does it have label on it with motor part number info?

Thanks.. Tom.. :slight_smile:

Robin2:
Congratulations. I have no idea how you figured that out.

The VEX links that the OP has provided seem to be the usual "modern" type of website with fancy pictures and f--- all useful information.

...R

The web site looked to be a sales tool. There were links that eventually led to some PDFs that gave more information. One showed how to reverse the motor rotation by reversing connector connections. Didn't warn about turning power off first! Sell more devices that way!

Paul

Paul_KD7HB:
The web site looked to be a sales tool. There were links that eventually led to

I have a couple of books about user interfaces and web site design. Both of them entirely rule out the concept of "eventually". :slight_smile:

Long before "eventually" the customer will have gone to another website.

...R

Robin2:
I have a couple of books about user interfaces and web site design. Both of them entirely rule out the concept of "eventually". :slight_smile:

Long before "eventually" the customer will have gone to another website.

...R

So true.
During the depression my father and a bunch of other out of work guys went gold prospecting. "Eventually" kept them going for a week or so, but "reality" took the place of "eventually" and the came home.

Paul

Paul_KD7HB:
During the depression my father and a bunch of other out of work guys went gold prospecting.

That's a very interesting piece of family history.

...R