Basically i am converting a small RC car to use an ATMEGA328 as a control mechanism, ideally i would like to still be able to use the R/C remote to drive the car but have the ATMEGA as a 'middle man'
I have found that if i tie one of the motor outputs (electrical connection on motor) of the GND rail, the other will be either +4v or -4v.
My question is, how do i turn these +-4v signals into digital pin inputs for my microcontroller?
i have a range of transistors available as well as diodes, resistors and caps etc.
any help is appreciated
To help explain
4v 0v -4v
pin1 HIGH LOW LOW
pin2 LOW LOW HIGH
Many thanks
T