Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Melcin Powell on February 15, 2010, 05:32:00 PM

Title: 50$ tutorial ATmega8 AVR
Post by: Melcin Powell on February 15, 2010, 05:32:00 PM
http://search.digikey.com/scripts/DkSearch/dksus.dll?WT.z_header=search_go&lang=en&site=us&keywords=ATMEGA8-16PU (http://search.digikey.com/scripts/DkSearch/dksus.dll?WT.z_header=search_go&lang=en&site=us&keywords=ATMEGA8-16PU)

How do i get that in my computer to program the servos??? please help
Title: Re: 50$ tutorial ATmega8 AVR
Post by: SmAsH on February 15, 2010, 11:37:45 PM
You made two topics because?
To answer your question, read the $50 robot tutorial, it explains everything.
Title: Re: 50$ tutorial ATmega8 AVR
Post by: Melcin Powell on February 16, 2010, 05:48:00 PM
I can't fine were it explains how to do this?
Title: Re: 50$ tutorial ATmega8 AVR
Post by: billhowl on February 16, 2010, 06:31:56 PM
In step 2
Quote
First you must modify your servos  (http://www.societyofrobots.com/actuators_modifyservo.shtml)so that they can rotate continuously. The factory default will only allow the servo to rotate 180 degrees.

http://www.societyofrobots.com/actuators_modifyservo.shtml (http://www.societyofrobots.com/actuators_modifyservo.shtml)
Title: Re: 50$ tutorial ATmega8 AVR
Post by: Melcin Powell on February 18, 2010, 11:36:23 AM
it does not explain how to connect the microcontoller to the computer
Title: Re: 50$ tutorial ATmega8 AVR
Post by: GearMotion on February 18, 2010, 11:57:07 AM
it does not explain how to connect the microcontoller to the computer

You build the $50 robot board. It has a programming header. You buy (or possibly build) a "programmer" that connects the $50 robot board to your PC via USB, serial port, or parallel port.

http://www.societyofrobots.com/step_by_step_robot_step4.shtml (http://www.societyofrobots.com/step_by_step_robot_step4.shtml)

http://www.societyofrobots.com/images/sbs_plug_programmer.JPG (http://www.societyofrobots.com/images/sbs_plug_programmer.JPG)
Title: Re: 50$ tutorial ATmega8 AVR
Post by: Webbot on February 18, 2010, 03:56:14 PM
Or perhaps you mean 'how does my robot talk and listen to my computer once its all programmed"? In which case you use the UART - which is sort of like a modem. You then have lots of choices:-
1. Use a level shifter board + a cable to plug it into an RS232 port on your PC; or
2. Use a TTL to USB board + a cable to plug it into a USB port on your PC; or
3. Use a wireless transmitter of some kind (bluetooth etc) + NO cable to talk to your PC

Of course all those options just give you a 'pipe' between the two. You will then have to program the robot as to what info to send to the PC and how to react based on info received back from the PC.