Public projects 2
LED Matrix NTP Clock with DS3231, BME280, BH1750 & ESP01
Project tutorial by Ratti3
- 9,145 views
- 14 comments
- 28 respects
Toolbox 2
Respected projects 2
Comments 10
LED Matrix NTP Clock with DS3231, BME280, BH1750 & ESP01 27 days ago
LED Matrix NTP Clock with DS3231, BME280, BH1750 & ESP01 10 months ago
Sorry for the late reply, I completly forgot I posted this here, was busy with work etc.
Thanks for the feedback, looks like the v1.1 DST code does not work properly, I'll try and have a look. I'm using v1.3 (NTP version) so DST calculations are not done hence why I never noticed the issue.
I'm glad the issues are minor considering I doubled the code and never coded in this language before.
LED Matrix NTP Clock with DS3231, BME280, BH1750 & ESP01 10 months ago
Are you saying the time advances by one hour when you first power it on? If so it could be the DST, are you in a DST zone if not try changing bool dst_mode = 1; to 0
From the LEDClock32x8.ino
LED Matrix:
// pin 12 is connected to the DataIn on the display
// pin 11 is connected to the CLK on the display
// pin 10 is connected to LOAD on the display
#define RandomSeed A0 // Pin used to generate random seed
Note: A0 should not have anything connected, in order to generate a random number in Arduino you need a seed, A0 is used to create the seed as it outputs a random number automatically, this is because it is an analog pin.
If you are using the ESP01:
#define TX 6 // RX pin of ESP01
#define RX 7 // TX pin of ESP01
Buttons:
Button buttonA = Button(2, BUTTON_PULLUP); // Menu button
Button buttonB = Button(3, BUTTON_PULLUP); // Display date / + button
Button buttonC = Button(4, BUTTON_PULLUP); // Temp/Humidity/Pressure / - button
If it shuts down, check your wiring or check if the modules are faulty. Or debug, it's easy to do, just do a serial output in the relevant place so when you press the button it will show what happens before it crashes.
Obviously it does not crash for me, I've made a few of these.