PIC16F690 could be a good choice to drive two motors in both directions.
Check its data sheet first, have some idea and come back here again
---------------------
PIC16F690 could be a good choice to drive two motors in both directions.
Check its data sheet first, have some idea and come back here again
---------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Hi, RainMan
In my drawers, I have a Twin Esc for big boats ...
Throttle drives the two motors ... AND Ailerons drive the Left/right motors differential.
I know tanks have two Throttle levers ... but driving is much easier that Way !!!
Hardware will be a little "heavy" for your purpose ( 50 continuous Amps, 3000 Hz, relay reversing, and Fiber Optics coupling to power units ), but soft may be greatly re-usable.
A little notice ... listing is 1400 Basic lines ( but with the blank lines !!! ... so, let's say 700-800 PbP program lines ...)
For info, to be comfortable, you need Two Processors w/PWM ( twin sticks driving ??? ), OR one with 2 PWM outputs.
I used a 16F876 ... but less than half memory is necessary !!!
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
i was thinking 1 chip would be better so it can do (channel mixing) to mix the throttel and the steering.
the motors that im using are standard 540 motors and standard 7.2v r/c batteries.
i had a look around and there is 1 esc in a microchip app note but its for a r/c plane so it has no reverse(AN847), but will probly be usefull for getting the code for reading the pwm from the reciever from.
i also have a load of TIP120 NPN darlington transistors to use, but not sure if they are the right sort for this project.
i hope that someone can help me with this project
Last edited by raimain; - 20th November 2006 at 18:27.
raimain, I thought you might need some assistance so here is a circuit I came up with about 8 or so yeard ago to drive a BARBIE Hotwheels car for my daughter. The circuit as built can supply 300 amps surge and as built has no heat sinks at all. All you need is 1 pwm output and a direction bit. HTH
Dave Purola,
N8NTA
thanks for the circuit diagram, now i just have to build it.
does anyone know which chip would be best for this and how do i find the code that will work propely for this project.
thanks again
raimian
raimain, It may be a bit complex so here is the jistofit, I pulled every thing out but the important stuff. The variables SPD and DIR are 10 bit inputs from say a joy stick corresponding to Y and X. With two of the circuits I previously posted you can make a tank type device and operate it with 1 joystick. Pressing it forward to move forward and pulling it in reverse to travel in reverse. Naturally moving it left or right will the device turn left or right. The null position for the variables is 511 for no output from the H bridge.
This code was originally written for a 16F876 but updated for 18F252.
I'm sorry I can't give you more but that's business........ HTH....
Dave Purola,
N8NTA
Bookmarks