Arduino Forum

Topics => Robotics => Topic started by: darkblade332 on Feb 22, 2017, 11:30 pm

Title: Arduino Robot, 2 DC motor.
Post by: darkblade332 on Feb 22, 2017, 11:30 pm
Hello I am a Student and i just got an Arduino Starter Kit and also found 2 DC motors( make it move tank style) . i am trying to build a simple robot i can control ( haven't figured out how exactly yet). the main focus right now is to make it move forwards , backwards, left, and right. i have some basic coding skills but  am really lost with the Arduino style. so any tips or pointer would be greatly appreciated
Title: Re: Arduino Robot, 2 DC motor.
Post by: Power_Broker on Feb 23, 2017, 04:34 am
I recently built/coded an Arduino project for an RC tank. IMHO you should use continuous rotation servos instead of DC motors (cont rot servos have much more torque).
Title: Re: Arduino Robot, 2 DC motor.
Post by: manor_royal on Feb 23, 2017, 05:23 am
With two motors and a desire to reverse and turn the robot, you'll need to be able to reverse the direction of the motors. So, is there an h-bridge in your bag of tricks? You'll need one to reverse a motor.

The actual coding and wiring to do that, will depend on the make and model of the h-bridge.

Title: Re: Arduino Robot, 2 DC motor.
Post by: Cactusface on Feb 23, 2017, 08:52 am
Hi,
    I have built a few bots! Yes you will need an H bridge of some-sort, try to avoid the L293 types as they lose power in the output stages. Look at the DVR based modules. But if you go for servos you don't need an H bridge driver, and less control pins/outputs. I can help with code, etc. Take a look at my bots at: www.melsaunders.co.uk (http://www.melsaunders.co.uk) under Electronics..

It would help us, if we could see your bot or your plains, schematic, etc. Tell us more so we can help!!

Hope it helps, Regards.

Mel.
Title: Re: Arduino Robot, 2 DC motor.
Post by: darkblade332 on Feb 23, 2017, 09:20 pm
the only stuff i have is what comes in the basic arduino uno starter kit, i have taken apart the servo in there and modified it to rotate freely and bypassed the chip in there, making it a dc motor.
Title: Re: Arduino Robot, 2 DC motor.
Post by: manor_royal on Feb 24, 2017, 03:36 am
Well you need to get an h-bridge (https://www.pololu.com/search/compare/11) if you want a bi-directional motor.

Title: Re: Arduino Robot, 2 DC motor.
Post by: Power_Broker on Feb 24, 2017, 02:32 pm
the only stuff i have is what comes in the basic arduino uno starter kit, i have taken apart the servo in there and modified it to rotate freely and bypassed the chip in there, making it a dc motor.
Why the heck would you do that?
Title: Re: Arduino Robot, 2 DC motor.
Post by: darkblade332 on Feb 24, 2017, 09:02 pm
it allows me to use the servo as a faux DC Motor. i'll post a list with pics of what i have when i get home from school!
Title: Re: Arduino Robot, 2 DC motor.
Post by: manor_royal on Feb 25, 2017, 05:18 am
it allows me to use the servo as a faux DC Motor.
Yeah I suspect P_B got that part, and was wondering why you a) didn't get a real DC motor and b) destroyed a (presumably) serviceable servo.

I'm wondering both of those, anyway.