Hi folks.
It has been a long time since I posted here and I am now here asking because something beyond my skill set has happened and I can't seem to get things working.
Alas it is a bit of a long story, but I shall try to keep it as short as possible.
Way back when, I wrote a sketch for a NANO with the CH340 drivers which drove a ring of NEOPIXEL LEDs to make a clock.
It worked.
Alas despite my best efforts, Summer-time was a problem, and when it ended too.
Not too much of a problem. I would just plug it into a computer and reset the time/date to the correct one.
Twice a year, not the end of the world.
More recently I thought I got the automatic time adjustment working. I was wrong.
Here, daylight savings just ended.
Rather than showing the right time, it was 2 hours off. I guess the code moved the time the wrong way.
Again: Not a big deal.
I would simply plug it into a computer - the one which I have been using and reset the time/date.
I wrote comments in the code explaining how to do it with an example.
Did it. No change. And the year is 2066, Jan 1. (Yeah. Ok, something else is not working.)
But the time is correct at least. (Well, correct as in 2 hours off. but it is being kept with no power)
So?
Well, I can't seem to edit the time by sending it what it used to want.
(That's problem 1)
Ok, not a big deal. I'll re-flash it with new code. Yes, I know that won't fix the date/time problem, but please indulge me.
This NANO is an old one and I wrote in the code that to flash it I have to use "old boot loader".
AT MEGA 328. I think this was part of the CH340 USB driver problem mentioned earlier.
Over the years I have not updated to the latest Arduino IDE because at this/that point in time: it worked for what I needed.
Alas my main machine got rebuilt recently (Ubuntu) and when I try to compile it, I get hit with errors.
streaming.h and wire.h errors.
I seem to remember that the streaming.h is for the serial output where it shows me the date/time every second.
Ok, I'll go back to an OLDER computer. Laptop. XP. It hasn't seen the internet for years and is on the old version.
It won't compile there either.
Again: streaming.h and wire.h problems.
And - I really don't understand why this is - I can't remember how to set the "old boot loader" option.
I found where to set the comm port and board.
But not the boot loader.
That is problem 2
The RTC is a DS3232 and seems to be working, other than it now has the wrong time.
Could someone help me get things up to speed and working?
I hope that in the time since it did work and now, the boot loader problem has been resolved and all the other stuff.
Then I will have to do some serious looking at the code so the "summer time" adjustments will work correctly.
Thanks in advance.