May 13, 2023
Description
This is a digital clock with a backlight LCD display that can show the Time, Date, Temperature, and Humidity. It includes 3 buttons to be able to set the clock and control the back light.
UPDATE:
4/30/2023: I have been informed some of the buttons are a little smaller than others. I have uploaded a V2 of the lid for those cases.
4/26/2023: ESP32 Code, and STL uploaded.
Printing:
All parts saved as STL are in the correct orientation, and no supports are needed if printed in that orientation.
Components:
Wiring Diagram:
Note: The pdf included below is the same wiring diagram but you can zoom in for better detail.
The buttons are connected like so:
Pin 8 button controls Enter setup and proceed to next item
Pin 9 button increases the value of the selected item during setup, otherwise it does not do anything
Pin 10 controls the backlight on and off
The buttons for the ESP32 are 25, 26, 27 in the same order as above repectively.
Assembly:
The LCD should slide right into the front opening. You may need to bend 4 the lcd pins used to connect to the nano as the spacing is tight. The arduino has 6 pins that stick up, those get pushed into the rectangular opening on the bottom of the enclosure and the usb end goes into the cutout, it is a tight fit and if needed bending the back 3 pins a little forward can help get the board into place. The DHT22 will slide into the 2 prongs hear the back left, make sure the little black box with the holes is in the opening to get accurate readings. The RTC will fit in the 2 little circle studs on the bottom with the other end resting on the little rectangle that is near by. The big button/switch included will go into the large circular opening on the back. You will secure it with the included nut. The 3 buttons thread into the lid, you will not need the nuts or washers included with them. The barrel plug receiver should have a nice friction fit into the back bottom corner, it must be installed from the outside in and should be flush a the back.
There are 2 ways you can program the board.
One way is to use the Arduino web editor. I have uploaded the code to the Arduino website and shared it below this should make it simple to use and program. Just follow the websites directions on getting the needed plug in installed. The board you would select is the esp32 dev module
NANO:
US Localized (Temp in F and date is MM/DD/YYYY):
https://create.arduino.cc/editor/dsk001785/43c5d7fe-280b-4176-b80d-bc730a472c96/preview
EU Localized (Temp in C and date is DD/MM/YYYY):
https://create.arduino.cc/editor/dsk001785/1cb23322-9ed2-4a09-8c1d-9eedfd258d5c/preview
ESP32:
US Localized:
https://create.arduino.cc/editor/dsk001785/9ff76dd5-d737-47d7-9c19-fa3d09346c17/preview
EU Localized:
https://create.arduino.cc/editor/dsk001785/e011cda1-8437-44d4-8658-922cc9e62258/preview
To flash the board locally on your pc you will need a few things.
First you will need the Arduino IDE installed on your computer. Which you can install from
https://www.arduino.cc/en/software. I used V2.1 of the IDE
Once that is done you may need to install a few libraries. If you do not know how to search and install libraries here is a link with instructions: https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-installing-a-library
Libraries needed:
Once those are installed please open the TimeAndTempXX.ino or TimeAndTempXX_ESP32) (XX being either US or EU)
At the top of the screen click on the pull down menu to select your board and com port. The board is Arduino Nano or ESP32-WROOM-DA Module and the com port can vary by pc but if you unplug and re-plugin the arduino while the menu is open you can tell which is the arduino beccause that port will go away and come back.
The click the button with the arrow to compile and transfer the code to your arduino board.
I love seeing the community makes please feel free to tag me @dsk001_3D and @alienslacker on Instagram and twitter
License:
Creative Commons — Attribution
8