Features Pin Description and Packaging Description of pins .................... 8 Standard application LED status indication (in USB mode) ............10 The PiKoder Control Center G2 Getting started ....................13 Real-time control ..................... 14 Watchdog ......................14 UART baudrate ....................14 PPM Settings ....................
Page 3
It is recommended to care- fully read this section to get a good basic understanding of the PiKoder/SPE. The next two sections 3 and 4 deal with the controller hardware. Section 3 provides the pinning and section 4 describes the reference schematic for the PiKoder/SPE.
Page 4
Hyperlinks were integrated into the text for convenience. You would also find all downloads referenced on the PiKoder/SPE webpage. Please share with me any comments, improvement ideas or errors you will find or encounter in working with your PiKoder/SPE. I can be reached at webmaster@pikoder.com. Thank you very much!
You can connect an SBC (Single Board Computer) such as your Arduino or Raspberry Pi without any additional interface hardware directly to the PiKoder’s UART (please refer to sections 7 and 8 for more details). In this capacity the PiKoder would free up the Arduino or Raspberry Pi of respond- ing to real-time events such as generating pulses within “real-time”...
Page 6
PiKoder/SPE User Manual monitor the communication. If no message is received within this preset time frame, then the PiKoder would set all channel values to the failsafe position.
Pin Description and Packaging The PiKoder/SPE comes in a 14 pin DIP package (see below). The device operates from 3.3 – 5 Volts. Please refer to the PIC 16F1455 data sheet from Microchip (www.microchip.com) for complete electrical and physical speci-...
Supply voltage. Connect to 3,3 – 5 V DC Boot Mode. If this pin is high while booting, the PiKoder will start in USB mode (activating the USB interface), otherwise UART would be active Not connected (reserved for later use) MCLR/VPP Reset pin, active low.
Page 9
LED indicator output (please refer to Appendix B for more information) PPM_OUT Output pin with PPM signal Clock pin for In-Circuit-Serial-Programming Data pin for In-Circuit-Serial-Programming VUSB3V3 Positive supply for USB transceiver; 470n capaci- tor required USB data line USD data line Ground connection...
PiKoder/SPE User Manual Standard application The following schematic shows the standard application of the PiKoder/SPE. Please note that the bi-color LED indicates the USB status and is optional and will remain red in UART mode. LED status indication (in USB mode) This following table shows the status of the USB connection (“DEVICE...
Page 11
Given the simplicity of the schematic, the PiKoder/SPE can easily be evalu- ated on a prototype board. If you are looking for a more permanent prototype then please consider the evaluation board which is available as a kit on www.pikoder.com.
The PiKoder Control Center G2 The USB2PPM’s USB interface provides access to configuration options as well as support for real time control. The PCCpro PiKoder Control Center is a Windows 10 based graphical tool that makes it easy for you to use this inter- face.
PiKoder/SPE User Manual You would now have full control of your PiKoder/SPE: either for real-time control by the sliders or for changing the settings with respect to PPM polar- ity, number of channels, startup values, etc. Real-time control The sliders are used for controlling the PiKoder’s outputs and the respective numerical fields monitor the status in real time displaying the current channel value in µs within a range of 1000 –...
However, some ESCs (Electronic Speed Controllers) for drones might need 1.0 ms as a start-up value to make sure that they are not spinning immediately after turning the PiKoder/SPE on. To address these applications, you would set the initial value and safe the parameters by hitting the respective button on the lower right of the screen.
There are two basic types of commands: commands for querying parameters and for setting parameters. If a parameter is read the PiKoder will provide for proper formatting by send- ing a “CRLF” prior to sending the parameter value and support readability by sending another “CRLF”...
Page 18
'!' framed by 'CR' 'LF'. 'C?': query the current number of PPM channels in the frame. PiKoder/SPE will respond a number from 1..8 - the command is not case sensitive 'C=k': set the number of channels in the PPM frame with k = 1..8 - the command is not case sensitive and the PiKoder will acknowledge execution with a '!' framed by 'CR' 'LF'.
'!' framed by 'CR' 'LF'. Mini SSC Protocol The PiKoder/SPE supports the miniSSC protocol for the first eight chan- nels. The protocol is simple, and it only takes three serial bytes to set the target position of one servo.
Page 20
PiKoder/SPE User Manual Once you hit the “Send 3-byte command”-button the bytes are sent to the PiKoder (see below); as per protocol definition there is no response by the SSC.
In your Raspberry Pi's default configuration, the UART is used as a serial console. This function must be deactivated to use this port to control the PiKoder/SPE with a terminal software. The process of turning of the serial console is described in various blogs and may vary slightly depending on your...
Page 22
UART to the baud rate setting required by the PiKoder. For your convenience it is recommended that you activate the local echo (command "E"). After setting these parameters you can control your PiKoder/SPE using the ASCII commands listed in section 6 of this User Manual.
Connect the SPE to an Arduino The schematic for connecting a PiKoder/SPE to an Arduino is presented below. In this application the PiKoder would be powered with 5 Volt from the Arduino. ASCII-based interface sketch The following sketch would allow you to test the PiKoder/SPE by entering commands (please refer to section 6 for a full interface description).
Need help?
Do you have a question about the PiKoder/SPE and is the answer not in the manual?
Questions and answers