Editable state of DS3231 real-time clock.
Status: release
Version: 2.0
License: GPLv3
- Linux
- Lua 5.3
- Tek-UI
- Arduino-compatible board
- with DS3231 module connected
StandardFirmata
burned in board (delivered with Arduino IDE)
- Clone this repository.
- Delete cloned repository.
If you don't have Arduino or DS3231 and just wish to take a look at interface, checkout virtual_rtc branch.
-
Pre-flight checks.
- Connect board to USB port.
- Launch Arduino IDE and upload
StandardFirmata
snippet (it's underexamples/Firmata/
). - Close Arduino IDE serial monitor window.
- Connect DS3231 module. Check wiring.
-
Run main file:
$ lua run.lua
It will try to open first existing /dev/ttyUSB port (n = 0, 7).
If you have several Arduinos connected, add port name:
$ lua run.lua /dev/ttyUSB2
If you use alarm and it have hour time, alarm will trigger iff hour is stored in same format as moment time: 12h AM/PM or 24h.