Skip to content

Wördclock Software Documentation

marcel-mueller edited this page Dec 24, 2014 · 20 revisions

Integrated Development Environment

The Integrated Development Environment that we use is Arduino IDE 1.0.6. It supports development, compiling and upload of the program code. The code is called "arduino sketch". See: http://arduino.cc/en/main/software

Librarys

Before compiling, download and install the following librarys for the Arduino IDE. See: http://arduino.cc/en/Reference/Libraries

Serial Interface

The sketch supports a lot of serial interfaces:

  • Serial: USB-Port
  • Serial1: RX- and TX-Pin (0,1)
  • BTSerial: SoftwareSerial (any Pin)

Serial communication

The serial communication works with request–response. The user sends a request for some data by a terminal or an application (e.g. Android App). The Arduino responds to the request.

Command Reference

The commands are defined in cmdStrCon. The following commands are supported:

| Command | Syntax | Example | Description | | ------------- | ----------- | | Help | | | Display the help window.| | Close | | | Closes a window |

Functions for the serial communication

All these interfaces are able to send and receive data. The function serial_com() handles the ports. The function read_serial() reads the data character by character while the received data are interpreted by the function serial_interprete(). The function write_serial() is used to send an integer value. The function write_serial_str is used to send characters. For this purpose, the function serial_com() handles the ports and defines to which port the data are send.

Clone this wiki locally