Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 8781|Reply: 5

Orange PI PC RTC Battery or I2C RTC

[Copy link]

2

Threads

3

Posts

20

Credits

Novice

Rank: 1

Credits
20
Post time 2016-2-5 23:15:55 | Show all posts |Read mode
I have an Orange PI PC. Can I connect a battery so the internal RTC will keep time when disconnected?
If not, can the RasClock I2C PCF2127 module be used?
I'm using OrangePI-PC_Ubuntu_Vivid_Mate.img

12

Threads

99

Posts

375

Credits

Intermediate member

Rank: 3Rank: 3

Credits
375
Post time 2016-2-15 21:04:51 | Show all posts
I doubt Orange has any RTC, for sure not in separate chip. You would need to keep power on entire H3. Probably some DT1307 solutions from Arduino would be any chance. I hope there is kernel module for this module.

2

Threads

94

Posts

519

Credits

Senior member

Rank: 4

Credits
519
Post time 2016-2-19 14:08:55 | Show all posts
Allwinner H3 SoC has got a Internal RTC and a 32Khz crystal is also provided in all OPi Boards and RTC ticking correctly when power is applied. But the problem is the RTC power line is not isolated properly in order to have it ticking when power is applied. So if you apply power thru rtc pad in the PCB the RTC will keep ticking but the power consumption is way more that whatever is actually expected depleting the battery quickly. So if you power the rtc using a big battery then theoretically it is possible to keep the rtc working.

VCC_RTC Max voltage is 3.6 volt. so a 3 volt cell or 2 1.5v AA should be an easy way to power the RTC.

Otherwise it is better to use a cheap i2c RTC and update the system time while boot using startup script  or systemd unit or something.

3

Threads

163

Posts

6793

Credits

Forum patriarch

Rank: 8Rank: 8

Credits
6793
Post time 2016-11-13 05:23:55 | Show all posts
I am looking at a 'tiny rtc i2c module' with DS1307. On it are connections: BAT, GND, VCC, SDA, SCL, DA and SQ
As far as I understand the pins can be connected to the OPI PC as follows:
OPI PC -- tiny rtc module
Pin 6 ----- GND
Pin 4 ----- VCC
Pin 3 ----- SDA
Pin 5 ----- SCL
BAT, DS and SQ normally not used.
If I would want to monitor the battery voltage, to which pin would I connect BAT?
And if I find a DS18B20 to solder on this board, where would I connect DS to?
That if the pinlayout of the OrangePI PC is 100% the same as raspberry pi 3.
Please click on reply when answering direct to me. That way I get a notification ;)

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
                                  Benjamin Franklin 1755

25

Threads

58

Posts

970

Credits

Senior member

Rank: 4

Credits
970
Post time 2020-2-21 01:20:17 | Show all posts
Edited by dmx512 at 2020-2-20 18:21
jeevasv replied at 2016-2-19 07:08
Allwinner H3 SoC has got a Internal RTC and a 32Khz crystal is also provided in all OPi Boards and R ...
@jeevasv

When checking the Orange Pi Zero schematich V1.1, there is no 32KHz crystal shown. When I do read the time register (baremetal, not Linux), then the RTC is running too fast.

Can you confirm that the internal should run fine on the Orange Pi Zero. I do not have any Linux image, so if you can make a dump of the RTC registers, that would be must appriciated.

Thanks, Arjan

25

Threads

58

Posts

970

Credits

Senior member

Rank: 4

Credits
970
Post time 2020-2-22 01:48:47 | Show all posts
jeevasv replied at 2016-2-19 07:08
Allwinner H3 SoC has got a Internal RTC and a 32Khz crystal is also provided in all OPi Boards and R ...
Allwinner H3 SoC has got a Internal RTC and a 32Khz crystal is also provided in all OPi Boards and RTC ticking correctly when power is applied.


There seems to be no crystal, the RTC is ticking too fast -> https://forum.armbian.com/topic/ ... t&comment=95832
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-6-3 08:16 GMT+8 , Processed in 0.030057 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list