Hi, my son have a Power Wheels electric ride on truck. I would like to be able to control it's speed but keeping the same torque on the engine, so i think the best way to do this is exactly like this:
http://www.pcbheaven.com/circuitpages/Closed_Loop_Fan_Controller/Here is the board i have:http://www.canakit.com/30a-motor-speed-controller-pwm.html
I already have bought a PWM controller able to throw 30 amps to the 2 12 volts dc motor, and by any chance the PIC controling it is a PIC12F615, the exact same one used in the exemple above.
What i have done since my 2 dc motors doesn't have any sort of tach sensor, i have connected a little 12 volts dc motor shaft to shaft with the main one, so when i start rotating the main motor, the little one i have added start to create voltage. i have a potentiometer to reduce this maximum voltage to 5 volts, so it can be used as a speed sensor from the pic, so what i would like to do is Remove the P1 that is used for adjusting the frequency when not in fixed mode and used this input to get the 0-5 volts speed input from the little dc motor. he P2 that right now adjust the duty cycle, will be used to adjust the desired speed, so basically what the pic need to do is try to match the fastest possible input from P1 to the input from P2 by increasing the duty cycle or lowering it.
Can someone modify the piece of code in the tutorial page above and adapt it to my need? i am just starting with pic and i would like my son truck to run ASAP. I am willing to pay for that. I know it should not be really hard.
Here is a video of the current setup. I would like the truck to get to maximum speed as fast as possible.
http://www.youtube.com/watch?v=gJVosYe-_RQI will be able to reprogram the chip locally here.
Thanx a lot!