I am moving to the next stage of my project, which is a wall clock.
I am going to package everything in a small enclosure so I can put it on my desk, or on the wall.
When I got the Micro I bought from eBay, I started moving everything from the Uno to the Micro; and that is when the problems started.
The picture is from when it was up and running on the Uno:
Line 1: Date in MM/DD/YYYY format.
Line 2: Current time in 24-hour HH/MM/SS format.
Line 3: Current Temp in C.
Line 4: Current Humidity.
Now when trying to get the Micro to work, I get:
Line 1: Date as 165/165/2
Line 2: Time as 165:165:
Lines 3 & 4: Normal, as before.
I kept the pin assignments for the DHT11 Temp Humidity module the same,
and I connected the LCD to different digital pins, and adjusted the sketch accordingly.
And for the TinyRTC module, I kept the power and ground the same, but connected the SCL pin on the module to the A1 pin on the Micro, and the SDA pin to the A2 pin.
Attached are pictures of the LCD, the Micro pinout I was given from the eBay seller, and before and after sketches.
Thanks for your help!
date_time_temp_humidity_2.ino (3.88 KB)
date_time_temp_humidity_2_micro.ino (3.94 KB)
LCD_date_time_screenshot.jpg.zip (802 KB)