It's a long story, but I took apart and RC car and wanted to have the Arduino use
analogRead() to get the values of my motors and steering. I have measured with my multimeter that the voltage in my remote controlled car ranges from -6v to 6v.
However, the Arduino only supports reading from 0v to 5v maximum. Is there a way to convert the -6v and +6v to 0v and 5v? I have heard that it could be done using an Op Amp. Some people have also told me to use a voltage divider. In other words, if I was not controlling the RC car, the Arduino should see 2.5 volts.
Anyways, I am not exactly clear about how I would do this. Can someone please recommend me an appropriate Op Amp with a circuit for this specific scenario?
OR, if possible, can someone show me how to read the negative and positive voltage using two Arduino pins? For example, if there is -6v given, then Analog Pin 0 would return 1023. If there is 0v given, then both Analog Pins 0 and 1 would say 0. And if there is +6v given, then Analog Pin 1 would return 1023. How can I make a circuit that will work like this?
I appreciate it if you have a circuit diagram for this. Thanks!