FAD RTC Programmer - Arduino Uno/Sparkfun RedBoard
Posted: Sat Jan 15, 2022 12:36 am
How long does it normally take to program an RTC module easily with the current time or date?
With this App Developer project, the answer is within a second!
Programming RTC is not all the hardware does.
It will automatically update the RTC module (DS1307, DS3231/DS3232) with the correct time when the clocks change.
It does not even have to be powered up or on the day the clocks change!
As soon as the board is powered up (even if not connected to the PC) it will detect if the clocks have changed since it was powered down, then will update hours accordingly.
If you live in a county that the clocks don't change when UK clocks do, then at the flick of a switch on App Developer (or GND pin 12 for a sec on the hardware) then DST will be disabled.
Wiring is very simple if you have the Backpack LCD as with that and the RTC SDA is A4 and SCL is A5.
If you have a standard LCD then you will need to change the flowchart accordingly.
Attached are all the required files.
An image of the RTC working: A screenshot of the App developer programmer: as you can see the App developer shows both the RTC time and PC time.
Yes, I decided to base the looks on the time circuits of the Back To The Future Time machine.
Note the SetDay macro is set for Sat = 1.
It's not used within the firmware but set so you can use the RTC module within your own firmware.
I will be creating an article on this when I get the chance.
You don't need to have any component pack licences to be able to program using the App developer.
I have included xLoader, so you can use that to send the hex file to the Uno/RedBoard.
I will be creating a hex file with the standard LCD so even if you have not got the component's license, you can still have a working RTC programmer
With this App Developer project, the answer is within a second!
Programming RTC is not all the hardware does.
It will automatically update the RTC module (DS1307, DS3231/DS3232) with the correct time when the clocks change.
It does not even have to be powered up or on the day the clocks change!
As soon as the board is powered up (even if not connected to the PC) it will detect if the clocks have changed since it was powered down, then will update hours accordingly.
If you live in a county that the clocks don't change when UK clocks do, then at the flick of a switch on App Developer (or GND pin 12 for a sec on the hardware) then DST will be disabled.
Wiring is very simple if you have the Backpack LCD as with that and the RTC SDA is A4 and SCL is A5.
If you have a standard LCD then you will need to change the flowchart accordingly.
Attached are all the required files.
An image of the RTC working: A screenshot of the App developer programmer: as you can see the App developer shows both the RTC time and PC time.
Yes, I decided to base the looks on the time circuits of the Back To The Future Time machine.
Note the SetDay macro is set for Sat = 1.
It's not used within the firmware but set so you can use the RTC module within your own firmware.
I will be creating an article on this when I get the chance.
You don't need to have any component pack licences to be able to program using the App developer.
I have included xLoader, so you can use that to send the hex file to the Uno/RedBoard.
I will be creating a hex file with the standard LCD so even if you have not got the component's license, you can still have a working RTC programmer