View Single Post
Old 08-15-2014, 01:07 AM   #6822 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
OK, so, I'll make a 7% deadzone? That would mean:

0.07*(3.95v-0.2v) + 0.2v will be zero throttle. And that would mean
0.4625v is zero throttle, and 3.95v is max throttle. And that means 0.4625v*1024/5v ticks of the A/D is zero throttle, and 3.95v*1024/5v ticks of the A/D is max throttle. So, 95 ticks is zero throttle. And 808.96 -> 808 ticks is max throttle. (We should probably round down so max throttle can be achieved)

Now, if the throttle gets disconnected, there's a 4.7k pull-down resistor, that will pull the throttle to 0v. So, let's have 0.05v be the fault point? Any reading below that is BAD. If the throttle goes below 0.05v for longer than 0.2sec, it will flag a throttle fault. At the moment, there's no clearing a throttle fault. You have to turn the power off, and back on again. I must now go do the arduous task of typing in 95 and 808. It could take hours. haha. BRB...
__________________
kits and boards

Last edited by MPaulHolmes; 08-15-2014 at 11:13 AM..
  Reply With Quote
The Following 2 Users Say Thank You to MPaulHolmes For This Useful Post:
Astro (08-15-2014), jedsmd (08-15-2014)