PicoClock - RPI PICO Multifunctional Digital Clock

by ElectroPoint4u in Circuits > Raspberry Pi

3314 Views, 6 Favorites, 0 Comments

PicoClock - RPI PICO Multifunctional Digital Clock

PicoClock - Multipurpose digital clock using Raspberry Pi Pico

Raspberry Pi foundation recently launched their first microcontroller based development board Raspberry Pi Pico. It is far advanced than arduino uno but not as much as ESP32. Anyways when I wanted to make something with it I was pretty limited because it has no wifi or bluetooth built into it so I can't make any IOT project with it. So I decided to make a clock instead.I designed a shield for Pico which contains an 128x32 OLED display, an RTC module, buzzer and a battery charging circuit. It has 5 different clock interfaces, that you can choose according to your choice. Along with that we also have a stopwatch and a timer alarm built into it.

Supplies

  • DS3231 RTC IC
  • HT4928s battery management IC
  • 100mAH Li-Ion Battery
  • 128x32 OLED Display
  • buzzer
  • push Button

Hardware Used

photo_2021-05-20_23-01-02.jpg
photo_2021-05-20_23-01-13.jpg
photo_2021-05-20_23-00-57.jpg
Screenshot_20.png

This is PicoClock, a tiny digital clock shield for RPI Pico. Apart from the shield all you need a suitable size battery and that’s all about the hardware you need to make this project.

On one side of this shield we have DS3231 Real time clock IC then we have a Li-ion battery charging circuit based around HT4928s battery management IC. along with a JST connector to connect the battery and a buzzer. On the other side of the PCB we have a 0.91 inch oled display and two push buttons.

Micropython Programming

photo_2021-05-20_23-09-28.jpg
photo_2021-05-20_23-01-07.jpg

Pico supports both micropython and C. I use the basic example code for the DS3231 RTC and SSD1306 oled to make a simple clock in micropython. But the library functionalities was pretty limited and so my knowledge on microphthon. So I couldn't make much modifications to it.

Downloads

Arduino Programming

photo_2021-05-20_23-01-39.jpg

And since now that we also have official arduino support for it too so I switched to arduino IDE for programming. For that first you need to install the Raspberry pi pico board package on your IDE. The code is fairly large so I’d try to explain how it works.

Downloads

Clock Interfaces

photo_2021-05-20_23-01-18.jpg

So when the display turns on we see this 12 hour format clock. There are 5 other clock interfaces and you can choose any of them as default. Press the right button to change a different mode.

StopWatch

photo_2021-05-20_23-01-22.jpg

If you press the button on the left, it will go to other features on this module. Such as stopwatch. Now by clicking on the right button it will start counting. If you press the right button again it will show the laps time. Press the left button to reset the watch.

Timer Alarm

photo_2021-05-20_23-01-27.jpg

The next feature is the timer clock. Press the right button to set the timer. Press the left button to change the cursor, the right button for changing the parameters. the first position is for return, the next one is to set the seconds, then minute, then hour. And finally when you see the box that is to set the timer. And it will start counting down. When the timer is over you will see a termination message on the screen and a alarm tone started to buzz.

Settings

The last mode is settings where you can turn on or off the sound and it will mute the buzzer. Also you can see the battery voltage level. And if you want to turn off the display you can do that by pressing both buttons simultaneously. Press the reset button to turn it back on. And that’s pretty much it about the project.

3D Printed Stand

photo_2021-05-20_23-01-33.jpg
photo_2021-05-18_18-51-42.jpg
photo_2021-05-18_18-51-47.jpg

Finally I designed and 3d printed a desk stand for this module on fusion 360. It’s a two part model that snap fits together. And that’s how I made my own portable digital clock. You can find all the details about this project on the github repo. Please watch the youtube video to learn more.

GitHub Repo : https://github.com/palsayantan/PicoClock

Downloads