Go Down

Topic: 1st engineering student in need of help?! (Read 1 time) previous topic - next topic

calz_88

Hi

I have been working in a project to create and drive a small vehicle to start from a point drive to a wall touch it and return to the same point.
My group and i planned on doing this by driving the vehicle from a 3v geared motor. also to measure the distance we used a slotted disk attached to the shaft which ran through an optical sensor. the plan was once the vehicle had travelled to the wall a micro switch on the end would reverse the polarity of the motor and send it back in reverse and match the distance recorded from the optical sensor.

At first we tried to achieve this by using and circuit of 3 up/down counters but encountered several problems. we have now been advised to use and program an arduino board and use a h-bridge to reverse the motors polarity. However we are all new to arduino boards and are quite rushed for time to get it done?

If anyone can give any help or give suggestions on how to achieve this it would be really appreciated!

calz_88

Hi

I have been working in a project to create and drive a small vehicle to start from a point drive to a wall touch it and return to the same point.
My group and i planned on doing this by driving the vehicle from a 3v geared motor. also to measure the distance we used a slotted disk attached to the shaft which ran through an optical sensor. the plan was once the vehicle had travelled to the wall a micro switch on the end would reverse the polarity of the motor and send it back in reverse and match the distance recorded from the optical sensor.

At first we tried to achieve this by using and circuit of 3 up/down counters but encountered several problems. we have now been advised to use and program an arduino board and use a h-bridge to reverse the motors polarity. However we are all new to arduino boards and are quite rushed for time to get it done?

If anyone can give any help or give suggestions on how to achieve this it would be really appreciated!

madworm

You should have a look at the 'playground' wiki. It can be found on the main arduino site. Especially the section 'interfacing with hardware' should answer a great deal of your questions: H-bridge / rotary encoder / counting pulses ...
• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Dr_Ugi

#3
Mar 13, 2012, 05:11 pm Last Edit: Mar 13, 2012, 05:13 pm by Dr_Ugi Reason: 1
An Arduino seems like a good choice for this - you can interface the optical counter, the motors, the switch and even a distance sensor to give you a warning of when to expect to reach the wall.

You will probably want an Arduino Uno, a motor controll shield (which will have the two h-bridge circuits for controlling the motors) plus the vehicle you have now.  Connection should be fairly easy - you'll need something like 2 PWM and 1 control pin for each motor, plus one for the counter, one for the limit switch and perhaps a couple more for an ultrasonic ping sensor.  That's 4 PWM plus 4 general I/O pins out of 6 + 8 digital pins and 6 analogue.  That gives you plenty of pins.

I don't know how much coding you have done but if you work through a few of the examples in the learning section of arduino.cc you should get it quickly enough.

PaulS

Just to keep things straight, you are not the 1st engineering student in need of help. Nor are you the first that doesn't really know if he/she needs help.

Go Up