View: 7337|Reply: 3

battery powered Orangepi 2G-IOT - ADC identify power unplugged

[Copy link]

5

threads

5

posts

31

credits

Novice

Rank: 1

credits
31
Published in 2017-7-28 15:59:09 | Show all floors |Read mode
Hi,

I am powering the orange pi 2G-IOT with a LiPo battery.
I would like to identify when the USB power (OTG) is unplugged and the board switches to battery supply.

I see in the schematics that sampling (voltage divider) of the USB power goes into ADC (analog to digital converter) in the RDA8810. this is line "AC_DIV_IN" in the schematic.
how can I read the ADC value? do you know of C/python code?

is there another way to detect USB power unplugging?

thank you!

0

threads

1

posts

8

credits

Novice

Rank: 1

credits
8
Published in 2017-9-18 20:27:59 | Show all floors
Coupled to the topic a question about what kind of battery (specs) and if the battery is charged when the 2G-IOT is connected to a charger/usb-port?

1

threads

5

posts

52

credits

Registered member

Rank: 2

credits
52
Published in 2018-4-8 00:18:51 | Show all floors
Hi, wich is the voltage that i need to provide for the battery power source..?
Thanks..

62

threads

653

posts

5206

credits

Administrator

Rank: 9Rank: 9Rank: 9

credits
5206
Published in 2018-4-8 15:50:27 | Show all floors
rje1974 replied at 2018-4-8 00:18
Hi, wich is the voltage that i need to provide for the battery power source..?
Thanks..

It should be 3.7V for battery supplying.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list