I want to convert my kids power wheels car to use hoverboard motors. Going from brushed to brushless. I want to keep the car as "stock" for the kids as I can, original shifter, pedal, and remote control. The best way I can figure out on how to do this is to use an Arduino to read the dc voltage going to the original motors. Convert that to a pwm signal that goes to a motor controller. The car has 3 forward speeds, voltages are 24/12/6 and a slow 6v reverse.
I know I cannot connect to the Arduino without using a voltage dividing circuit but my only question is when it comes to the reverse polarity of the "reverse" selection on the cars original shifter. When I put the car in reverse it just reverses polarity to the stock brushed motors. My understanding is the Arduino needs a ground and a positive lead for the analog inputs but can it read negative voltages? On that note how would the voltage divider behave if we reversed polarities?
Thanks for any advice and for just letting me get this out there.
I think you need to know more about how the existing motors are powered. The usual way would be a H bridge and PWM, meaning that the voltage you are measuring is an average. Do you have access to an oscilloscope?
Measuring the reversed voltage is not just a matter of some diodes, but without more information I can't really help more.
Find out how it's actually powered and how the speed is controlled. A schematic of the current arrangements would help.
Are you familiar with the mechanism (said in the above quote @PerryBebbington) of that uses a unipolar voltage source (say +12V) to change the motion of a moving car from forward to backward and then to forward? If yes, then I don't need to present the description/schematics; else, I will try.
Oh ... in that case I do not think that you have anywhere enough knowledge to go the arduino route. Get a RX/TX set with one servo and a BL speed controller and replace all the parts inside the toy car. You'd need a mechanically matching inrunner BL motor in the first place, which is a challenge to find. To sum it up: don't touch the toy car if you want your children to be able to play with it in the forseeable future