TeXitoi / rusty-clock

An alarm clock with environment stats in pure bare metal embedded rust
MIT License
338 stars 27 forks source link
alarm alarm-clock clock diy embedded humidity pressure rust sensors temperature

Rusty clock Build status

An alarm clock in pure bare metal embedded rust (no OS). It features pressure, temperature, humidity, monophonic alarm on a e-paper display. The 5 programmable alarms can ring one time (and never repeat) or every week day that you want (for example only Monday and Thursday).

front

You can also look at the gallery.

Hardware

The hardware used in this project is

You also need a ST-Link v2 to flash and debug.

Everything can be purchased on Aliexpress. Budget is around US $40 without the 3D printed case and soldering set.

Wiring

Everything is plugged directly to the blue pill board.

E-paper display to blue pill board:

BME280 to blue pill board:

Buttons are connected to the blue pill board between G and

The speaker is connected to the blue pill board between A0 and A1.

Coin battery to blue pill board:

Plug the micro USB connector of the blue pill board to a USB power supply (or a computer).

Compiling and flashing

For compiling and flashing, please refer to the blue pill quickstart.

Basically:

curl https://sh.rustup.rs -sSf | sh
rustup target add thumbv7m-none-eabi
sudo apt-get install gdb-arm-none-eabi openocd
cd rusty-clock
# connect ST-Link v2 to the blue pill and the computer
# openocd in another terminal
cargo run --release