|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: driving a motor
thank you Qbranch and dtengineering.
I decided to go with the L293DNE connected to the PIC (only X axis input) I'll be using the Tamiya Dual Motor Gearbox, so it's OK, no need for anything over 1A. thanks a lot :-) |
|
#2
|
||||
|
||||
|
Re: driving a motor
hmmmm those are some nifty chips dtengineering ..... think i might be using a few of those in my future.... sometimes you do just need a little current, and that sure is the right price...
thanks, -q |
|
#3
|
|||||
|
|||||
|
Re: driving a motor
Thanks for the kind words Qbranch... and you should have good luck with the Tamiya gearbox and L293 3Dude... over the past five or six years we must have made more than 100 mini robots using this set up in my shop alone.
One issue that you might come across is that depending on what your power supply is, when you start the motor it may pull the supply voltage down below the minimum voltage that the PIC requires to operate. As soon as the PIC shuts down, so does the motor... the PIC reboots... tries to restart the motor... and, well... you can see a loop there. The solution we use is to put the logic voltage on one circuit (a 5v regulated 9V battery) and the drive voltage on another (4 x AA battery pack). This is far from the only solution, but this situation and solution is quite common... witness the backup battery for the RC on your team's robot for the exact same situation. I'll attach an older .pdf of one of my handouts... some of the stuff is a bit out of date... we don't use the 16f84a chip anymore, so the crystal and such aren't necessary, but the last two pages have some info on how we hook up the electronics that should be relevant to your project. I'll also include a worksheet I give my students on the Sony IR protocol. Any Sony remote (or any multi-brand remote set to emulate a Sony) can easily be read by a PIC if you attach a PNA4602m (less than a buck each, if I recall) to one of the pins on the PIC and throw in a few lines of code. You might find this a fun and cheap alternative to RC. Have fun, Jason |
|
#4
|
|||
|
|||
|
Re: driving a motor
One thing you should add are 10K resistors on the pic IO's to the motor chip. Check the spec sheet to make shure your version includes internal clamping diodes. The TI sn754410 does. If you are going to run the motors at close to full load get a clip on heat sink for the motor chip. You could add a diode for reverse battery protection. The pic chip mention I don't believe has the capability of generating 2 PWM signals to control the motor speed . You would have to choose a pic with an ECCP. The other way to go is buy a motor control board that has a pic on it and comunicats with the pic chip by serial ttl commands. Some boards have current draw feed back and status monitoring. Check this link. http://www.pololu.com/products/elec.html#motocon
|
|
#5
|
||||
|
||||
|
Re: driving a motor
thanks you both dtengineering and Gdeaver, for your replies.
dtengineering, about the voltage, the PICs and the motors are fed seperatly, so no worries here. ![]() and I know there are alternatives for the R\C sysytem, but, I already have one, it's handy, easy, and I have experience with it. so, no worries here as well, (money IS an issue ).GDEAVER, thanks you, I'm not getting near using full load, actually, I'm working right now, choosing the best waveform to send to the motor driver. It WON'T BE PWM, but something very similiar. Ran. Edit:I thought of sending the motor-driver, a pulse of 10mS, every 30mS, ("1" for 10mS, then "0" for 20mS). so it won't have long peak times, nor motor-grinding-quick changes. I used that as a reference, what do you think? Last edited by 3dude_2231 : 23-08-2007 at 13:49. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Driving Experience | Revolverx7 | Rules/Strategy | 20 | 27-03-2005 11:11 |
| Driving to events | Kevin A | Chit-Chat | 17 | 10-02-2004 23:48 |
| driving at noon | Adam Collet | General Forum | 6 | 20-09-2003 23:40 |
| Driving a clutch | Kevin A | Chit-Chat | 18 | 03-07-2003 16:02 |
| Driving Skill | Andy Grady | General Forum | 24 | 23-03-2003 02:34 |