Would be cool to have a feedback loop. I would even say a computer-controlled RC car would be useless without a feedback loop, because the result of the input is not perfectly predictable.
That would be a feedback loop:
- Signal is sent to the car
- Positions change on the car servos
- Signals are sent back from the car to the computer. Speed, accelerometer measurements.
- It would be really nice if we can measure the position of the car, although I have no idea how.
- Signals are processed by computer, correction is calculated and incorporated in the next set of sent signals (go back to the start of the loop)
I know that makes it like 100 times more complicated, but I would really like to see that :-)
In any case, Jad already did a computer-controlled tank so he surely can answer lots of these questions.
jadf24 wroteFor example, when I press W on the keyboard, the microcontroller receives this, and sends a voltage to a certain pin on the joystick's microcontroller( this pin was initially connected in the board for the forward command of the car.)
The controls of the joysticks are potentiometers so I'd say remove them and find a way to control the voltage from the computer. I suck at electronics, so I don't have the complete answer, but I'm sure there's a simple way to do this.