[arm-allstar] How to add clock battery?

Doug Crompton wa3dsp at gmail.com
Thu Dec 12 22:54:00 EST 2019


A HW clock is generally not necessary for anyone running Hamvoip code as a
simplex node as a loss of Internet and NTP would also mean a loss of any
meaningful public voip.  Private nodes or duplex (repeater) nodes could
benefit where there is either no Internet or a frequent loss of Internet.
Once a clock is set using NTP a loss of Internet would only be a problem if
it was very prolonged (time getting out of sync) or the Pi needed to be
rebooted.

Using I2C ArchLinux

A further note on this, to activate I2C on Archlinux Pi do the following -

In directory /etc/modules-load.d create file called i2c.conf with the
single line text content i2c-dev
In /boot/config.txt add the line - dtparam=i2c_arm=on
Then reboot

Running 'gpio i2cd' should show the clock chip if installed at address 68

If no I2C device is installed you should see the address table with no
errors.

Running lsmod you should see the following modules added (Pi4) -

i2c_bcm2835        16384  0
i2c_dev                16384  0

The Pishop is a good place to buy this board as well as Pi boards and other
Pi accessories.

https://www.pishop.us/product/ds3231-real-time-clock-module-for-raspberry-pi/

Some setup procedure but beware this is for Raspbien and would differ
slightly in Archlinux. Setup the
I2C bus as above for ArchLinux.

https://thepihut.com/blogs/raspberry-pi-tutorials/17209332-adding-a-real-time-clock-to-your-raspberry-pi


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*

On Thu, Dec 12, 2019 at 3:13 AM "dennis via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:

> Thank you very much David for the quick reply
>
> I'll have look the links you gave.
>
> 73
>
> Dennis
>
> On 12 December 2019 07:52:48 GMT, "David McGough via ARM-allstar" <
> arm-allstar at hamvoip.org> wrote:
> >
> >BTW, these modules are available from many sources try searching:
> >DS3231 raspberry pi
> >
> >There are hundreds of sellers on ebay, etc.
> >
> >
> >
> >On Thu, 12 Dec 2019, "David McGough via ARM-allstar" wrote:
> >
> >>
> >> Dennis,
> >>
> >> Take a look at these two posts. This is an inexpensive and very easy
> >RTC
> >> to use, I've got several now.
> >>
> >>
> >>
> >http://lists.hamvoip.org/pipermail/arm-allstar/2019-October/013327.html
> >>
> >>
> >http://lists.hamvoip.org/pipermail/arm-allstar/2019-October/013331.html
> >>
> >> 73, David KB4FXC
> >>
> >>
> >> On Thu, 12 Dec 2019, "dennis via ARM-allstar" wrote:
> >>
> >> > Hello fellows, I just wonder if you can help me how to add clock
> >backed by battery that still have the correct time on my hamvoip in
> >case the power or internet losses.
> >> >
> >> > Thank you in advance and merry Christmas.
> >> >
> >> > 73
> >> > Dennis - m0tfg
> >> > _______________________________________________
> >> >
> >> > ARM-allstar mailing list
> >> > ARM-allstar at hamvoip.org
> >> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >> >
> >> > Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> >> >
> >>
> >> _______________________________________________
> >>
> >> ARM-allstar mailing list
> >> ARM-allstar at hamvoip.org
> >> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >>
> >> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> >>
> >
> >_______________________________________________
> >
> >ARM-allstar mailing list
> >ARM-allstar at hamvoip.org
> >http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> >Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
>


More information about the ARM-allstar mailing list