View Single Post
Old 12-13-2008, 05:35 AM   #2 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,726

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,321
Thanked 1,049 Times in 688 Posts
So, how do you make a controller?

The microcontroller (ATMega8 in my case) can generate pulse width modulation (PWM) signals. So, it listens to the throttle, and then sends a PWM signal to the mosfets' gate driver. The gate driver amplifies it a bit. The gate driver's job is to turn the mosfets on and off according to the PWM signal. Then, the mosfets massively amplify the PWM signal. That signal is sent to the motor, and you drive down the road. That's it!

The microcontroller can also monitor things like battery pack voltage, temperature, or whatever you want!
__________________
Mathematical magic:
Add 1 to your age. Then, subtract 1 from the result. The result is your age...
kits and boards
  Reply With Quote