• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Time and Temperature Digital Clock - Alien3D UFO Project 3D Printer File Image 1
Time and Temperature Digital Clock - Alien3D UFO Project 3D Printer File Thumbnail 1

Time and Temperature Digital Clock - Alien3D UFO Project

Dsk001 avatarDsk001

May 13, 2023

printables-icon
DescriptionCommentsTags

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:

  • Arduino Nano
  • DS1307 - Tiny RTC
  • DHT22 
  • LCD1602 LCD Module - I2C 2x16 LCD Screen
  • 3X Push Button
  • On/Off button
  • DC Power Supply Jack Socket 5.5X2.1MM

 

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.

 

Programming:

There are 2 ways you can program the board.

Arduino Web Editor:

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

 

Locally on PC:

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

  • ESP32 Only:
    You may need is to install the Espressif esp32 board library. You can do so by following the tutorial on the website below: [Note for our board select the ESP32-WROOM-DA Module]
  • https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/

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:

  • RTClib by Adafruit
  • LiquidCrystal_I2C by Frank de Brabander
    • You can manually install it from 
    • https://github.com/johnrickman/LiquidCrystal_I2C 
  • DHTlib by Rob Tillaart
    • ESP32 instead install DHT Sensor Library by Adafruit

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.

 

Post and Share

I love seeing  the community makes please feel free to tag me @dsk001_3D and @alienslacker on Instagram and twitter  

License:

Creative Commons — Attribution

Related Models

Thor Mjolnir Hammer Bic Pen preview image

Thor Mjolnir Hammer Bic Pen

effektz profile image

effektz

9,085

Diverse Schilder / various labels  for hobby & makers preview image

Diverse Schilder / various labels for hobby & makers

RPK profile image

RPK

2

Customizable EU License Plate Keychain preview image

Customizable EU License Plate Keychain

John_M profile image

John_M

35

Vorpal The Hexapod Walking Robot preview image

Vorpal The Hexapod Walking Robot

vorpal profile image

vorpal

4,982

MakerZ – Open Source 1/28 RC Drift Chassis by Fails & Makes | Açık Kaynak 1/28 RC Drift Şasisi preview image

MakerZ – Open Source 1/28 RC Drift Chassis by Fails & Makes | Açık Kaynak 1/28 RC Drift Şasisi

Fails&Makes profile image

Fails&Makes

Cacciavite Portachiavi - Scewdriver keychain preview image

Cacciavite Portachiavi - Scewdriver keychain

Butti Maker Studio profile image

Butti Maker Studio

22

Snap-Together Mini Minecraft Jack-O-Lantern with integrated LED preview image

Snap-Together Mini Minecraft Jack-O-Lantern with integrated LED

scottrlindsey profile image

scottrlindsey

4,448

Small Parts Storage Drawers - Organizer preview image

Small Parts Storage Drawers - Organizer

GT 3D Makers profile image

GT 3D Makers

29

8