Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: TheChickenMaster on October 22, 2008, 12:01:00 PM
-
Hey guys!
I need a bit of help here. Wich kind of proximity sensor should I use to plug on a Arduino Diecimila?
The goal is to make a robot that detect eventual obstacle to avoid it.
Tks
The Chicken Master
-
Sharp IR sensor http://www.societyofrobots.com/sensors_sharpirrange.shtml
-
Thanks buddy!
-
Buy three. Two for the robot now. One for when you blow one of them up. :-D
-
Lol, tks for the advice, it will probably happen.
-
I got another question,
Building a robot is part of one of my class, and I don<t know that much about electronics. So how do I connect my motors (physically) to my board?
Here s a pic of my motors and board to help:
http://img265.imageshack.us/my.php?image=armnwires008syw8.jpg
-
an H-bridge http://www.societyofrobots.com/schematics_h-bridgedes.shtml take some time to read the tutorials on the main page. Also check out this tutorial http://www.societyofrobots.com/member_tutorials/node/159
-
Tks!
-
You might want to consider using servos instead of motors.
-
I'm a bit short in supply and time, so is it essential?
-
No, it isn't essential, it's just easier to use servos then motors.
-
How do I convert my motor wires into a hook-up wire?
-
The motor wires ARE hookup wires ;D. Solder on some solid core wire to your motor wires to make them easier to connect to you motor driver.
-
Is there anyway to do it without soldering, I<m in class right now and I don't have all my equipment. I just want to run some test on my motors.
-
You cannot connect the motors directly to the arduino, you need an H-bridge. If you make the H-bridge you will need either a soldering iron or a breadboard. You could also just buy an H-bridge. Scratch what I said about soldering on solid core wire, that kinda depends on you motor driver.
-
Wich kind of H-bridge should I buy?
-
That will all depend on your particular motors. First you should figure out how much current they draw when stalled at the voltage you plan on running them, which will in turn tell you how beefy of a motor driver you need. Then consider buying a motor driver (http://www.pololu.com/catalog/category/11) (usually an H-bridge or dual H-bridge that requires low-level command signals such as PWM and direction from a microcontroller) or a motor controller (http://www.pololu.com/catalog/category/10) (a motor driver with an integrated microcontroller that is preprogrammed to generate the low-level control signals in response to higher-level commands from your microcontroller, such as serial packets, RC pulses, or analog voltages). Motor controllers are typically easier to use, but they are also more expensive.
- Ben
-
does this one could do the job?
http://www.robotshop.ca/home/products/robot-parts/microcontrollers/pololu-microcontroller-en/pololu-baby-orangutan-mega168-controller.html
-
Thats an overkill, just buy a L293D, for $2.00
-
The motor controller prob as been fixed, and I got my sensors. How can I plug them into my arduino?
-
Connect the signal wire of the sensor to an ADC port of the microcontroller connect positve to regulated 5v and ground to ground.
-
That's part of the deal, no wires, just pins. I read that I could solder wires on my pins, but it seems not a got idea at all. What should I do?
-
What do you mean?? Soldering wires to pins sounds fine to me.
-
Well you'r probably right, it was just a feeling I got.
-
I'm looking at the sensors manual right now and I have to admit that i'm a bit lost. I'm french and not a pro in electronic, both make it hard to understand wich pins are what. :-\
here's the link for the manual, if somebody could take a look and give a hand.
-
errrr you forgot to post the link :P
also, you didn't say what you were trying to do with the sensor and what part was confusing ;)
-
Woops, sorry about that.
heres the link: http://www.robotshop.ca/PDF/gp2y0d340k-manual.pdf
I'm confused by the pins, wich ones do what?
-
I can see how this is a little confusing (it took me a bit to understand myself). In the datasheet on the bottom right of the first page you will see a schematic. Wire your sensor just like you see.
1) Vcc is your regulated input voltage (5V).
3) Vo is the output voltage that goes to your mcu ADC.
4) GND for ground
(the schematic tells you where the other pins go)