Giter Club home page Giter Club 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

caemor avatar texitoi avatar tristramg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rusty-clock's Issues

Case improvements

  • button holes must be 16mm not 17
  • enlarge the SWD pocket
  • chamfer around the display pocket
  • lower the board
  • enlarge a bit the display screw holes
  • add a back
  • add coin battery holder
  • shorten the back screw hole to have the back a bit inside

Add a gallery

Add a gallery:

  • first POC on breadboard
  • photos of the v1
  • photos of the menu and alarm edition
  • 3D rendering of the box v2

Make a new box

Make a new box with:

  • speaker
  • accessible debugger without removing the backpanel
  • AAA battery holder (just in case)

TODO:

  • box
  • back panel
  • printing everything

Support schematic circuit diagram

blackang3r: Good. Is there a schematic circuit diagram?

TeXitoi : Not yet. You can find the used pin in the source code.
That's planned. You can open an issue to know when it's done, and it will motivate me to do it fast ;-)

Look forward to your schematic circuit diagram. ๐Ÿ˜†

README.md

Hi

Nice work with the rusty-clock!

Is there a reason the README.md reads:

Compiling and flashing

For compiling and flashing, please refer to the blue pill quickstart. Note that a nightly toolchain is required.

It should compile under stable (if the application itself does not use some nightly feature).

Best regards
Per

Program the flash memory

Just a quick question, because I have troubles in a project of my own. How do you tell openocd to write your program into the flash memory ?
As I understand, the load instruction in openocd.gdb only load the program in RAM.
Thank you ! ๐Ÿ˜„

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.