It took quite a bit of fiddling with the code to get a reasonable layout for the real time clock but I got there in then end. The time is generated in a clock chip which has a back-up battery to keep it going during power outages. One main problem was initially loading the correct time and date. There are plenty of example codes which take the computer time and upload that to the chip. The problem with those is the time taken to compile and upload the instructions. Using that method resulted in a 30 second error. In the end I found one example which allowed the data to be keyboard entered using the serial monitor which is all but instantaneous. The display is a Nokia 5110 as used in their early mobile phones and available almost anywhere on the internet for a few pounds. Though b/w it has blue LED back lights. I will probably add a switch as they are not needed in daylight.
Working clock:
Just a test pattern program running in the colour display.
I had hoped to add air quality monitoring to the time display but so far that has failed. Tried several example codes but none have worked fully and when I added the code alongside the clock code the time stopped displaying!
Coming on a treat. I would be in a right mess trying to load that code.
ReplyDeleteI'm very impressed as its way beyond me. My weather station which I think was the fore runner of the one you had has finally packed up.
ReplyDelete