Can It Be this SIMPLE? (the Off-Topic continuation)
OK I have a Childs Electric Powered GO KART, ( Peg-Perego / Power Wheels type thing ) that I'm doing a
REBUILD / HOP-UP on for my 3 year old nephew. The thing came with a single 6 Volt battery and runs
forward by pressing a button on the steering wheel. I'm adding NOS / Turbo by installing a second
6 Volt battery in series. ( Insane I know but see this site http://www.modifiedpowerwheels.com/ ).
Also Wired in a switch for a powered reverse.
( see MY circuit and explanation at http://home.comcast.net/~david.lynch1/GoKartCkt.html )
Anyway I'm posting here with a question about some code I just hacked out to controle a
6 Volt ONLY "Soft Start" so the little one can't hold down the "NOS / Tutbo" button and step
on the "GAS Pedal" & end up launching form a dead stop to 12 Volts in an instant.
On the matter of 12 Volts burning up the motor, word is that most of these motors are 18 Volts.
My thought is to use a PIC12F675 to check voltage at the motor & if it's 6 or 12 volts
then it's OK for the "Go Faster" button to be pressed, the PIC needs to do nothing
except loop back to check again. BUT, if the motor voltage is 0 (zero) then the thing
is standing at a stop and if the Go Fast button is pressed when the gas pedal is pressed
I want to use a relay to disable the 12 Volts for some period of time, and allow the thing to
start at 6 Volts then release the relay and apply the full 12 Volts
Now ASSUMING that I have all my registers set properly and constants and variables
declaired, is the CODE as SIMPLE as this or have I COMPLEATLY missed it?
Code:
start:
ADCIN 0, Motor_Volts
If Motor_Volts > 0 THEN start ' do nothing as SOME voltage exist at the motor
' and we really don't care if the voltage goes from
' 6V+ to 12V+, that is what it is intended to do
ELSE
IF Motor_Volts = 0 THEN Delay_12V
ENDIF
GOTO start ' do we NEED this statement?
END
Delay_12V:
Motor_V2 = Motor_Volts
WHILE Motor_V2 = 0 ' as long as the motor voltage is at zero volts
' we want to engage the RELAY which disables
HIGH 12Volt_Cancel_Relay_OutPin ' 12 Volts from getting to the motor so we do not
' have a HARD start from zero directly to 12 Volts
ADCIN 0, Motor_V2
WEND
PAUSE 3000
LOW 12Volt_Cancel_Relay_OutPin
GOTO start
the kid’s NEW ( Next Year's) Ride tested
Well, I dropped a 12V 12Ah Gel Cell into that “Barbie” QuadRider thing.
While testing for broken wires, switches or stripped gearboxes I precariously
balanced about 170 lbs. (ME) on the seat and pressed the switch.
The thing MOVED, only a couple of feet, didn’t want to over tax things.
(So if you are in need of motor / gearbox with a TON of torque, you now know where to look.)
If Gas (Petrol) prices keep going up (* See note below), I may park the van
and drive this thing to work. I’ll just have to leave a WHOLE LOT EARLIER ! 8-)
Gas Prices: Yea I know people in other parts of the world have it a lot worse than
we do in the states, my Gas costs 2.75 ~ 3.00 a Gallon I just have to complain a little
because I remember when I started driving (back when you had to wait for a Dinosaur
to die and decay before you could Fill Up) Gas was 0.57 a Gallon.
Big Mac .... What is Big Mac ??? a new scotch Whisky ???
In France , these days, 88 unleaded is ~ 1.65 US$ and 98 UL 1.7 US$
Diesel ??? who's that's for ???
I thought Big Macs were obtained from raw oil ... as Coca-Cola !!!
Sure, their prices raise ...
Alain