3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to Program the Vexplorer Using Arduino

How to Program the Vexplorer Using Arduino
This instructable will be about using arduino to control the revell vexplorer. Later you can add as many sensors you want. If you don't have most of the parts already this will cost you about $200 dollars. Most of the electronic bits you can find at radioshack and vexplorer at amazon, also arduino at the maker store.

vexplorer

arduino

 
Remove these adsRemove these ads by Signing Up
 

Step 1The H-Bridge

The H-Bridge
This link listed below will show you all of the step in constucting the H-Bridge. A breadboard will be sufficient if you have trouble soldering. Leave the motor leads and also switch leads open which we will be using later.
Depending on how many of the vexplorer motors you will be using multiple h-bridges will be required.

H-Bridge
« Previous StepDownload PDFView All StepsNext Step »
20 comments
Jun 20, 2010. 9:14 AMChowmix12 says:
for uphill, make sure to use front wheel drive as it will aid in traction...
Jun 21, 2008. 10:56 PMt.rohner says:
Why don't you take a L293D or a L298 for the H-bridge? These are dual H-bridges on a chip. This way you could control the speed with the pwm function in the Atmega.
Jun 18, 2010. 12:05 PMChowmix12 says:
can you help me, how would I use an l298nh for controlling 2 dc motors with an arduino?
Jun 19, 2010. 2:57 AMt.rohner says:
See here http://www.st.com/stonline/books/pdf/docs/1773.pdf I guess that there are newer circuits for the task, but the L298 is tried and true. You can use it with almost no external components.(Maybe a large capacitor to flatten current load spikes) For deeper insight into the matter, you could look here. Although they go pretty deep into servo technology, farther down there is a L298 in use as a PWM driven H-bridge. http://homepages.which.net/~paul.hills/Circuits/PowerServo/PowerServo.html You can drive up to 160 Watts, if you use parallel channels.
Jun 19, 2010. 1:43 PMChowmix12 says:
any chance you can give me a circuit diagram for arduino pins and 2 motors?
Jun 19, 2010. 8:36 AMChowmix12 says:
right now I'm to much of a beginner for servos (plus I don't have any..) the first link isn't working for me :(... all the datasheets I've looked at are very confusing.. the l239d is very common, but i could not find it for sampling. i was able to sample the l298nh from STMicroelectronics. but isn't very common so all i could find was the useless ddata sheet... Thanks A bunch!
Jun 20, 2010. 4:18 AMt.rohner says:
Here, you should find what you're looking for (solarbotics links). http://letsmakerobots.com/node/10199 I do know the Atmega chip, but not the arduino specifically. So i can't say which pin they use for outputs
Jun 20, 2010. 8:37 AMChowmix12 says:
thanks a bunch.. one last question (hopefully) are the diodes necessary? I have a 7805 v reg, and capacitors, but not the diodes that they used in the PCB.
Jun 21, 2010. 12:38 AMt.rohner says:
You definitely need the diodes and they need to be fast recovery types <=200ns. It's not enough to take 1N400X, they are too slow. In order to have the same current capability as the L298, they should be 2A types. I don't know what types you can lay your hands on. We often have different suppliers here in europe. (PR2002 was found at digikey...)
Jun 21, 2010. 7:48 AMChowmix12 says:
anything i can find in radioshack? i'm making a trip there soon for a new soldering tip..
Jun 22, 2010. 12:27 AMt.rohner says:
I don't think their selection is what you are looking for. I would suggest some mail order will make you happier. They may have 1N4148 or 1N4001-1N4007 which are general purpose and rectifier diodes. None of them has enough forward current capability, let alone reverse recovery speed. If you switch off the current through a coil,(a motor winding in your case and you want to do that a couple of thousand times per second in a PWM) the current wants to keep on flowing. So if your H-bridge transistors switch off, the voltage goes up, higher than the supply voltage and in the end it kills them, if you don't clamp this voltage with fast enough diodes. I was looking up the PR2002 on Digikey for you. Or i have another link for you, which blows into the same horn, as i am ;-) http://www.electro-tech-online.com/general-electronics-chat/29713-1n5819-equivalent-use-l298.html
Jun 22, 2010. 2:11 PMChowmix12 says:
haha! i think im saved.. i sanpled the l298HN. the HN has inbuilt diodes :) score!! thanks a bunch
Jun 22, 2010. 6:13 PMChowmix12 says:
hmmm... after messing around a bit with the chip.. i found i cant get the motor to reverse direction.. maybe it's something im doing wrong..
Jun 23, 2010. 12:52 AMt.rohner says:
You need to drive the two inputs of the l298 H-L or L-H for forward and reverse. If they are H-H or L-L the motor is in break mode. All above is true, while the Enable input is H. When the Enable input is L, the motor will stop, but not brake, no matter what the other inputs state is. See here:
Jun 24, 2010. 8:22 AMChowmix12 says:
oh ok.. i think i had the enable pin mixed with one of the input pins.. thanks!
May 22, 2009. 7:22 AMclarenceum says:
I recently used old Vex components with an Arduino for a project in the lab I am involved in. I was able to get most components to interface with the arduino, except the ultrasonic range finder. Has anyone tried to use the ultrasonic rangefinder from VEX wihtout using the VEX microcontroller?
Aug 12, 2008. 1:01 AMzanshin says:
great work can you tell me, how much weight can the vexplorer pull on top of it? it seems rugged, and i think of buying it, but i dont know if it could hold the weight i need on it (some 2kg, or 4.4lb)??? thanx!
Jun 27, 2008. 9:01 PMmr.cletus says:
Interesting work

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
187
Followers
5
Author:robotkid249
"I am always doing that which I cannot do, in order that I may learn how to do it." -Pablo Picasso "Everyone can be smart. Everyone is given a box of crayons in Kindergarden." There are only two mis...
more »