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.
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.
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
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.
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?
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
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!
Robin2:
I have a couple of books about user interfaces and web site design. Both of them entirely rule out the concept of "eventually".
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.