Help modifying a sketch

Hi everyone,
I’m new at this but very enthusiastic.
I’m trying to creat an AC power data logger to monitor two heating loads in my house, and there are quite a few examples out there, but only a few that sort of come close to what I need. I found this project, but I need to modify the sketch so I can log input from two CTs simultaneously. Energy Data Logger | Arduino Project Hub
I’m also using an Uno and Vellman WPSH202 data logging shield.
And guidance on what changes I need to make?

That project uses a Nano which is the same chip as an Uno (328) so all is good there.
It looks like your data logger shield has a built in RTC (DS1307) vs. the DS3231 from the project. A 1307 is not as accurate but should be fine.

I would suggest trying it out. See what happens. What errors to you get. (You will have to use a DS1307 object but the RTCLib supports both). Start solving those errors by either googling them and/or posting here.

How to proceed?
1 - make the existing code work for one signal, with as few changes as possible. Unless Spanish(?) is your second tongue, those variable names and inline comments will be brutal. Take your time, make backup copies of your work as you go, so when you've messed up, you can step back.
2 - Once that's working, you'll be familiar enough with the code, hopefully, that you'll be able to attempt to 'clone' what needs to be 'cloned' for your second signal.

Good news so far. I’ll give it a go and see what happens.
Thanks!

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