-
Notifications
You must be signed in to change notification settings - Fork 2
Wördclock Software Documentation
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
Before compiling, download and install the following librarys for the Arduino IDE. See: http://arduino.cc/en/Reference/Libraries
- WS2812B LEDs
- Funkuhr Signal, DCF77
- BH1750 i2c light sensor
- DS1307 RTC
- DHT11 Temp/RH Sensor
- IR Sensor
The sketch supports a lot of serial interfaces:
- Serial: USB-Port
- Serial1: RX- and TX-Pin (0,1)
- BTSerial: SoftwareSerial (any Pin)
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.
The commands are defined in cmdStrCon.
The following commands are supported:
| Command | Syntax | Example | Description | | ------------- | ----------- | | Help | | | Display the help window.| | Close | | | Closes a window |
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.