A whole lot of problems now compounded and I am stuck

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.

I can't remember how to set the "old boot loader" option.

The old bootloader option is available under tools/processor if you have the Nano selected. If the option is not there, it means that you are using and IDE that's older than when the new bootloader was introduced and you can simply select the 328P.

The old bootloader option however will not affect the compile, only the upload.

So I think it's time to show the whole list of errors that you get when compiling. And to show your code. If any of those is to big, attach them here.

Thanks guys.

Hand on my heart, I didn't see that before when I tried it.

Shall see if things change now for setting the time.
But I think that's a different can of worms.

This is the error I see when I try to compile it:

Arduino: 1.8.13 (Linux), Board: "Arduino Nano, ATmega328P (Old Bootloader)"











/home/me/Arduino/Ring clock/Ring_Clock14ce/Time_functions.ino: In function 'void test()':
Time_functions:545:20: error: 'inChar' was not declared in this scope
     Serial.println(inChar);
                    ^~~~~~
/home/me/Arduino/Ring clock/Ring_Clock14ce/Time_functions.ino:545:20: note: suggested alternative: 'char'
     Serial.println(inChar);
                    ^~~~~~
                    char
exit status 1
'inChar' was not declared in this scope


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

HINT : I can see no problems with the code that you have not posted

UKHeliBob,

Yes, ok.

But that is my project. Is this the right "room" (sub-section) to post the code?
It says problems with the Arduino. Not your project/s.

So do I post it here or start a new thread in another "room"?

So do I post it here or start a new thread in another "room"?

Start a new topic in the Programming section. Post your code and full error messages in code tags and as usual give details of the Arduino board, anything connected to it and the programming environment

The error message seems very easy to interpret. Where is inChar declared in teh sketch, if at all ?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.