Already in the previous blog the possibility to control up to eight servos via a USB interface with a joystick, a PC and a PiKoder/SSC was described. Here we describe how to realize a wireless model remote control with a PiKoder receiver, the PiKoder/SSC RX. Bluetooth for command transmission.
First, the PiKoder/SSC RX must be connected to the PC at the operating system level. For this purpose, you first search for new Bluetooth devices in the device control.
After a short time, the Bluetooth module of the receiver should be offered. The PIN is “1234”.
With the “Connect” selection, pairing is done at the system level.
As the following view from the device manager shows, the coupling of the system also establishes two virtual serial interfaces, which we access later in the program for establishing a connection.
This completes the setup and the Joystick2SSC program can now be started as described in the previous post. Please note that you need a program version 1.1.0; in the original version, the Bluetooth virtual interfaces were not supported.
The Open Source Arduino sketch arduinodtx implements a feature rich state-of-the-art RC transmitter with a serial command output (PiKoder/SSC resp. PiKoder/PPM compatible). The transmitter commands would be sent via a transparent serial channel.
Therefore, a wifi communication module such as an ESP8266-01 can be used in concert with a PiKoder/SSC wRX wifi based receiver to easily build a feature rich radio control.
In addition to the components for the basic setup of the arduinodtx you would need a logic level converter, a dc-dc converter, two jumpers as UART multiplexer and the wifi module as shown in the image above. The wiring of these building blocks is shown below (you would have connect all signals with identical names):
The setup is fairly simple and can be easily done on a prototype board. Please note that Arduino signals are shown in blue.
Then you would have to configure the transmitter’s wifi radio to establish a transparent link to your receiver radio – similar to binding a transmitter and receiver in a standard rc environment. This would be done by setting the jumpers as shown above to connect the radio directly to your computer. Please refer to ESP8266-01 Sketch for the PiKoder/SSC wRX for more information. If you would want to program the ESP8266-01 while in place you would have to add the additional components for the programmer to the prototype board.
Please note also the setting of the jumpers for D0/D1. Please make sure that the Arduino would not interfere with any direct communication with the ESP8266-01 by connecting the Arduino´s RESET signal to GND.
After completing the programming of the ESP8266-01, the adjusting of the jumpers, restarting of the Arduino and rebooting your RC would be fully operational.