Skip to main content

Posts

Showing posts from December, 2016

How to build and Arduino based Clock prototype with a mini OLED display

A simple DIY project to create a Digital Clock prototype. See my video below for how the final result looks and works. What you need Arduino Uno R3 or equivalent ( link ) Real Time Clock Module (DS3231) or equivalent 6pin/I2C version ( link ) OLED 0.96 inch display module SPI/7pin version ( link ) Breadboard with male jumper cables Power supply - 2400mAh power bank for roughly 3 days running) Note: once the time is set on the RTC chip, the onboard battery will ensure that the time keeps updating when there is no more power to the breadboard. Arduino Libraries required u8glib https://github.com/olikraus/u8glib WireLib (built into Arduino IDE) Wiring Reference Connect the RTC Module to Arduino Board 32K - no connection SQW - no connection SCL - Pin A5 SDA - Pin A4 VCC - 5V GND - Ground (Note: the A/Analogue pins are on the side that the POWER connector lies on the board) Connect the OLED Module to Arduino board GND - Ground VCC - 5V D0 - Di