I mostly used this basic Arduino based RC controller for testing purposes but it is a cheap way to quickly get control over an RC vehicle so I’m sharing the library here. The controller consists of an Arduino Uno with a Joystick shield and an NRF24L01 radio module, all of which simply plug into each other without requiring an additional wiring. The controller works fine but is a little awkward to use and isn’t the most comfortable controller which is why I only really use it when I’ve run out of normal controllers.
This code should work with my RC vehicle library which can be found here.
When you start the controller it is in mode 0 and is talking to vehicle 0.
If you push the F button you will cycle through vehicles from 0 to the max value you set which is 5 by default.
If you push the E button you will cycle between mode 0 and mode 1;
In mode 0 the joystick y directions controls the vehicle drive moter and joystick x controler the steering servo.
The A button turns cycles the lights on or off.
The D button controls the left indicator and the B button controls the right indicator.
The C button cycles the link arms from fully down to fully up.
In mode 1 the joystick y directions controls the position of the rear link arms however you must hold the joystick in the position you want and push the A button to move the link arms. This is because we need to store this value for when we switch back to mode 0 and need the joystick for driving.
Similarly the joystick x directions controls the position of an external servo in a trailer or attachment. Again you must hold the joystick in the position you want but push the C button to lock the position.
Basic Arduino Based RC Controller Library V1