Serial Commands

Connect the USB Adapter

Connect Bluetooth uploader (optional)

On Mac, the Bluetooth may lose connection after several uploads. In that case, delete the connection and reconnect to resume the functionality.
Connect your computer with the uploader through USB to micro-USB cable. The uploader has three LEDs, power, Tx, and Rx. Right after the connection, the Tx and Rx should blink for one second indicating initial communication, then dim. Only the power LED should keep lighting up. You can find a new port under Tool->Port as:
  • Mac OS : “/dev/cu.usbserial-xxxxxxxx”
  • Windows: “COM#”
  • Linux: “ttyUSB#
You can choose the "Serial Monitor" in "Tools" menu bar, or click the
button to open the serial monitor window:
  • Open up the serial monitor and set up the baud rate. With NyBoard V1_*, set "No line ending" and the baud rate to 115200 in the serial monitor.

Arduino IDE as an interface

With the USB/Bluetooth uploader connecting NyBoard and Arduino IDE, you have the ultimate interface to communicate with NyBoard and change every byte on it.
I have defined a set of serial communication protocol for NyBoard:
All the token starts with a single Ascii encoded character to specify its parsing format. They are case-sensitive and usually in lower case.
Some commands, like the c and m commands can be combined.
For example:
Successive "m8 40", "m8 -35", "m 0 50" can be written as "m8 40 8 -35 0 50". You can combine up to four commands of the same type. To be exact, the length of the string should be smaller than 30 characters. You can change the limit in the code but there might be a systematic constraint for the serial buffer.
Try the following serial commands in the serial monitor:
  • ksit”
  • m0 30”
  • m0 -30”
  • kbalance”
  • kwkF”
  • ktrL”
  • d
The quotation mark just indicates that they are character strings. Don’t type quotation marks in the serial monitor.
Some more available commands: