Code Monkey home page Code Monkey logo

rusty-clock's Introduction

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:

  • BUSY -> A10
  • RST -> A9
  • DC -> A8
  • CS -> B12
  • CLK -> B13
  • DIN -> B15
  • GND -> G
  • VCC -> 3.3

BME280 to blue pill board:

  • VIN -> 3.3
  • GND -> G
  • SCL -> B6
  • SDA -> B7

Buttons are connected to the blue pill board between G and

  • A6 for cancel
  • A7 for previous
  • B0 for next
  • B1 for OK

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

Coin battery to blue pill board:

  • (-) -> G
  • (+) -> VB

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

rusty-clock's People

Contributors

texitoi avatar caemor avatar tristramg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.