Pages: [1]   Go Down
Author Topic: Arduino with Vex Spike  (Read 404 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, I am trying to connect a large battery to a large motor and have it run using an arduino, (ie. the arduino can control when the motor is running or stopping). Right now I have something that looks like this
http://postimg.org/image/9ownk0c15/

There is a PWM port in the Vex Spike. This is what I am working with.
http://www.vexrobotics.com/217-0220.html

Does any one have any sample code that will work with this? Or does anyone know of the setup that I would need in, in terms of wiring the Vex Spike directly to the Arduino, that would help me?

Thanks!
Logged

USA, FL
Offline Offline
God Member
*****
Karma: 14
Posts: 686
A life? Where can I download one of those?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you hooked up the 3 wires that go to the Microcontroller?  Have you read the user guide?
Logged

//LiNK

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you hooked up the 3 wires that go to the Microcontroller?  Have you read the user guide?
You mean the 3 wires that would normally go to the VexSpike? No, not yet. I was actually wondering what wires I should connect to where?
The Three wires that would normally conenct to the SPike are Ground, VCC, & PMW cable. The unfortunate thing is that this is a VEX, (for Vex Cortex Microcontroller) product, so there is no user manual for Arduino. smiley-sad
Hoping you guys could help me? If not, would there be an alternative? I'm looking into the 'motorshield' rright now. It requires a bit of soldering...
Logged

USA, FL
Offline Offline
God Member
*****
Karma: 14
Posts: 686
A life? Where can I download one of those?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The user guide listed on the product page has the information you need to connect it and what the Vex needs to work (turn the motor).  All you have to do is connect ground and 2 wires to the arduino (any pin), then program the arduino to make a wire go HIGH for forward and the other HIGH (make the other one LOW) to make it go in reverse. 
Logged

//LiNK

Pages: [1]   Go Up
Jump to: