Navigation Menu

Skip to content

martin-eden/tekui_ds3231

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RTC DS3231 GUI

Editable state of DS3231 real-time clock.

page moment page alarm_1 page alarm_2 page other

Status: release

Version: 2.0

License: GPLv3

Requirements

  • Linux
  • Lua 5.3
  • Tek-UI
  • Arduino-compatible board
    • with DS3231 module connected
  • StandardFirmata burned in board (delivered with Arduino IDE)

Installation

  • Clone this repository.

Deinstallation

  • Delete cloned repository.

Usage

If you don't have Arduino or DS3231 and just wish to take a look at interface, checkout virtual_rtc branch.

  1. Pre-flight checks.

    1. Connect board to USB port.
    2. Launch Arduino IDE and upload StandardFirmata snippet (it's under examples/Firmata/).
    3. Close Arduino IDE serial monitor window.
    4. Connect DS3231 module. Check wiring.
  2. 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

Usage details

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.

See also