Skip to content

majorhungry/BinaryClock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binary Clock

This is a binary clock. It displays the time in binary shown in 3 columns each having 4 LED's or bits where a "ON" LED is "1" and a "Off" LED is a "0". Included in this repository is all the code, gerber files for pcb manufacturing, and .stl files for a 3d printed case.

NOTE: This project assumes you are using the exact same ESP32 board as I am as the pcb is designed for the same pin out and pin spacing. You should be able to use other board provided they have the same pin out and spacing. I used a ESP-WROOM-32 like shown. In the Images folder you can see some examples of how the end product looks like

alt text

Installation

1. Clone this repository.

git clone https://github.com/majorhungry/BinaryClock.git

2. Download the latest firmware from MicroPython's website

https://micropython.org/download/ESP32_GENERIC/

3. Follow the instructions on that site to flash the boards firmware.

I ended up using the generic firmware.

4. Update the config file included.

You will need to update the wifi Credentials and your UTC offset.

 ssid = "<SSID_Name>"
 wifi_pass = "<SSID_PASSWORD>"
 utc_offset = -5

You will also need to update the file name from its current name to.

config.py

5. Copy the main.py and config.py to /pyboard/ directory

I used rshell to do so. Replace /dev/ttyUSB0 with your own device located in the dev directory.

Lists devices

ls /dev

Connect to device

 rshell -p /dev/ttyUSB0 -b 115200

Copy files to ESP32

cp main.py /pyboard/
cp config.py /pyboard/

6. If still connected to the REPL or rshell close out of each

#REPL
control-x
#rshell
control-d

7. Unplug device and plug back in

This should restart the ESP32 and within a few moments the time should display!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages