Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: Doughy on September 22, 2010, 08:44:39 PM
-
Hello all,
I'm pretty new to robotics so I have a newb question for you all. I have a laptop that processes some sensor data. Some software on the laptop processes the sensor data, and if it exceeds a threshold, can fire any code that I write. I want my code to turn on some motors and blink some LEDs for a few seconds.
So, my question is what is the easiest way to interface software to the motors and LEDs? Is this kind of thing easiest done via USB? If so, where can I look for some boards to do this kind of stuff?
Thanks in advance.
-
Easiest way is probably the Arduino Duemilanove, about $30.00 these days. It's a good starter MCU, and comes with an ATMega328, which is equivalent (quadruple the memory) to the controller used in the $50.00 robot tutorial, and has a FT232 UART to USB converter built in. Of course, not knowing what sensors you have, or the motors, I can't really recommend much there. Any other microcontroller you have experience with will work too.
-
So how to the motors actually get controlled by the Arduino? How do you take the digital outputs on the Arduino and turn something on/off?
-
For motors, you can use a motor driver such as this (http://www.solarbotics.com/products/k_cmd/). Or just any other H-Bridge which meets the power requirements for your motor.
To control components like relays, high current LED's, or just turn a motor "on", you can use a simple transistor circuit (http://www.kpsec.freeuk.com/trancirc.htm). (look 2/3's down the page)
To get you started: Download the arduino software (http://arduino.cc/en/Main/Software). Look through all the examples, try them out, get familiar with stuff. But also download Fritzing (http://fritzing.org/), it contains breadboard wiring diagrams, schematics and board layouts for you to reference--and comes preloaded with the wiring diagrams for nearly all the arduino examples.
-
Hello all,
I'm pretty new to robotics so I have a newb question for you all. I have a laptop that processes some sensor data. Some software on the laptop processes the sensor data, and if it exceeds a threshold, can fire any code that I write. I want my code to turn on some motors and blink some LEDs for a few seconds.
So, my question is what is the easiest way to interface software to the motors and LEDs? Is this kind of thing easiest done via USB? If so, where can I look for some boards to do this kind of stuff?
Thanks in advance.
www.usbmicro.com (http://www.usbmicro.com)