Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: mohamed on February 04, 2008, 09:06:01 AM
-
iim sorry for asking alot but this is my first robot in life so it's kinda difficult
now i had the motor driver L293D so how can i mount it in the 50$ circuit does anyone know the changes that will happen?
thanks really hope someone answer me fast
-
The datasheet for the L293D should explain how to wire it.
The $50 Robot schematic should remain the same.
You will have to modify my software a bit to control the L293D, as per the datasheet.
(hope that helps)
-
thanlks to your tip and it really help but i did do some search and i found this schematic http://www.8051projects.net/_L293D_schematic (http://www.8051projects.net/_L293D_schematic) but i dont understand it coz as i told before this is my first robot so if u could tell me if this is the right and suitable schematic to use on atmega8 and to the circuit of the 50$ robot and if not can u tell me another one coz in this schematic it doesnt tell you how to wire the motor driver to ur atmega8
PS:i really need something simple to use as im not expert in reading schematic
thanks
-
Use this schematic. You attach the ATmega8 digital output pins to the pins that have triangles on them in this image. The L293D datasheet will explain what the pins do and how to use them.
http://www.seattlerobotics.org/encoder/sep97/Drawing6.gif
(http://www.seattlerobotics.org/encoder/sep97/Drawing6.gif)
-
thank u very much that's really help
-
does anyone knows what r the output pins of the microcontroller coz i dont find it in the datasheet fo the ATmega 8
thanks
-
http://www.societyofrobots.com/images/sbs_avr_schematic.png
It was in the tutorial for 50$ robot. In the middle are the outputs.
Hope that's what you meant.
-
i dont know but i want to wire all the output in the microcontroller wiz the motor driver so which pins r the output of the microcontroller hope u understand what i mean now and thanks for your reply anyway
-
or get an ESC no need to change code or anything. plug it in. hook the motor up. and wala you have a working motor driver.
and you're short some cash ;D
-
which pins r the output of the microcontroller
the same as that used for the servos
look at my servo code to see how it works
-
ok does i have to connect pin 16 and pin 4 to the main battery or what?.....coz i dont understand what is the mean of VS and VSS
-
Its all in the datasheets.
And on my $50 robot schematic.
;D
-
Look at the link I posted. Each color is connected to the pin that has the same color.
-
the admin said that i have to connect all the digital output of the ATmega8 to pins 15,9,10,1,2&7 but i looked in the datasheet of the ATmega8 and i found that PD0 is an output data pin
so i asking is it normal to connect to PD1 , PD2 , PD3, PD4 and PD5
thanks again for the help
-
now i just finished the circuit connection
do i have to use the programming code as it is or there will be any changes?
-
DO NOT DOUBLE POST! It creates wasted work for everyone.
Yea, so the code needs to be changed. Look at the motor driver datasheet and tell me when pins need to be turned on/off for the motor to rotate in the directions you want. I know you can figure it out if you think about it for a bit . . .
Now those motor driver pins have been hooked up to the digital pins of your microcontroller. So in the code, you just need to turn those pins on and/or off.
So just put something like this in your code:
PORT_ON(PORTD, 4);
PORT_OFF(PORTD, 4);
where D and 4 is the port letter and number on the ATmega (check the schematic/datasheet)