Real-time clock DS3231 with TinkerPie
A clock with a coin battery: alarms, timers, data logging.
| Type | Smart sensors (I2C) |
|---|---|
| Connect to | SENSOR port · 0x68 |
| Gives | time and date, kept by its battery |
| Simulator | Yes: a control appears under the simulated board |
How to wire it
Plug into any SENSOR 1-4 port (SDA, SCL, 3.3 V, GND). Each type has a fixed I2C address, so different types can share the bus.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
clock.hour()
clock.minute()
clock.set(2026, 10, 13, 9, 30, 0)
// Arduino C++
clock::hour()
clock::minute()
clock::set(2026, 10, 13, 9, 30, 0)