Hide thumbs Also See for PiKoder/SSCng:

Advertisement

Quick Links

Version 1.0
dated 10.24
Gregor Schlechtriem
webmaster@pikoder.com
www.pikoder.com
PiKoder/SSCng
User Manual

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PiKoder/SSCng and is the answer not in the manual?

Questions and answers

Summary of Contents for PIKODER PiKoder/SSCng

  • Page 1 PiKoder/SSCng User Manual Version 1.0 dated 10.24 Gregor Schlechtriem webmaster@pikoder.com www.pikoder.com...
  • Page 2: Table Of Contents

    PiKoder/SSCng User Manual Content Overview Features Pin Description and Packaging Description of pins .................... 8 Standard application LED status indication (in USB mode) ............9 The PiKoder Control Center Getting started ....................11 Real-time control ..................... 12 Watchdog ......................12 UART baudrate ....................
  • Page 3 Overview The PiKoder/SSCng is a single chip solution for implementing a serial ser- vo controller (SSC) which gives you full control of up to eight servos or electronic speed controls with a resolution of 1 µs through a serial interface.
  • Page 4 Hyperlinks were integrated into the text for convenience. You would also find all downloads referenced on the PiKoder/SSCng webpage. Please share with me any comments, improvement ideas or errors you will find or encounter in working with your PiKoder/SSCng. I can be reached at webmaster@pikoder.com. Thank you very much!
  • Page 5: Features

    Features This section will familiarize you with the feature set and a high-level over- view of the intended use of the PiKoder/SSCng allowing you to customize the controller to your specific needs and requirements. The PiKoder/SSCng Serial Servo Controller allows you to control up to eight servos or electronic speed controls from a serial port (either USB or UART depending on the boot mode).
  • Page 6 RC applications. You can activate a timer for 0.1 s to 99.9 s to monitor the communication. If no message is received within this preset time frame, then the PiKoder/SSC would set all servo outputs to the fail- safe position.
  • Page 7: Pin Description And Packaging

    Pin Description and Packaging The PiKoder/SSCng comes in a 20 pin DIP package (see below). The de- vice operates from 3.3 – 5 Volts. Please refer to the PIC 16F1459 data sheet from Microchip (www.microchip.com) for complete electrical and physical specifications.
  • Page 8: Description Of Pins

    PiKoder/SSCng User Manual Description of pins Symbol Description Ground connection Bootmode – if this pin would be high during reset, BMode then the controller will boot in USB mode Channel 1 output pin Reset pin, active low. Connects directly to Vss for MCLR/VPP automatic reset at power up.
  • Page 9: Standard Application

    Standard application The following schematic shows the standard application of the PiKoder/SSCng. Please note that the bi-color LED indicates the USB sta- tus. The LED 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 10 PiKoder/SSCng User Manual Given the simplicity of the schematic, the PiKoder/SSCng can easily be evaluated 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...
  • Page 11: The Pikoder Control Center

    Center is a Windows 10 based graphical tool that makes it easy for you to use this interface. For almost any project you will start by using the PCCng PiKoder Contol Center to set up and test your PiKoder. The app is distributed free of charge through the Microsoft app store.
  • Page 12: Real-Time Control

    PiKoder/SSCng User Manual The connection is made and the actual parameters of the PiKoder are dis- played. You would now have full control of your PiKoder/SSCng: either for real- time control by the sliders or for changing the settings with respect to out- put types.
  • Page 13: Channel Output Type

    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 immedi- ately after turning the PiKoder/SSCng on. To address these applications, you would set the initial value and safe the parameters by hitting the respec- tive button on the lower right of the screen.
  • Page 15: Serial Interface

    The ASCII Command Interface (ACI) is probably the most versatile way to program any PiKoder without any specific host software such as the PCCng PiKoder Control Center. All commands are simple ASCII and are sent using a Windows based terminal program such as Tera Term. The commands can be typed in right away and the response of the controller is readable without referring to any specific code tables.
  • Page 16 PiKoder/SPE will acknowledge execution with a '!' framed by 'CR' 'LF'. 'Oi?': query the type of output / channel i; PiKoder will respond 'X' with X representing 'P' for pwm and 'S' for switch. The command is not case sensitive.
  • Page 17: Data Protocol

    After installing and starting the software you would have to connect to the PiKoder/SSCng by selecting the COM port and pushing the connect but- ton. The data-based protocol is a four-byte command and should be en- tered in the respective column as shown below.
  • Page 18 PiKoder/SSCng User Manual Please note that the miniSSC protocol is not supported anymore.
  • Page 19: Connect Sscng To A Raspberry Pi

    (or in a daisy chain configuration even up to 255 servos). In this application the PiKoder/SSC is operating with 3.3 Volts, which is supplied by your Raspberry Pi. The servo power supply of 4.8 .. 6 Volts must be kept separate to avoid unstable power potentially creating reboots.
  • Page 20 UART to 9600 Baud 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/SSCng using the ASCII commands listed in section 6 of this User’s Guide.
  • Page 21: Connect The Sscng To An Arduino

    If a connection monitoring would not be required, the resource requirement can be reduced to just on digital pin for eight servos. In this instance the tx-line of the PiKoder/SSC is not connect- ed (green cable).
  • Page 22: Interface Software

    Servo control by thumb joysticks An interesting project for the combination of an Arduino and a PiKoder/SSCng would be a remote control of four servos by wire. Two thumb joysticks would be evaluated by the Arduino through analog inputs. The joystick position is translated into the respective servo position and communicated to the PiKoder/SSCng using the miniSSCII protocol.
  • Page 23 PiKoder/SSCng User Guide This sketch is Open Source and is released under a GNU General Public License Version...

Table of Contents