View: 7810|Reply: 3

using the ADC in OrangePi 2G-IOT

[Copy link]

5

threads

5

posts

31

credits

Novice

Rank: 1

credits
31
Published in 2017-7-28 20:36:10 | Show all floors |Read mode
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?


thanks!

6

threads

70

posts

370

credits

Intermediate member

Rank: 3Rank: 3

credits
370
Published in 2017-9-11 18:58:14 from mobile | Show all floors
Have you solved this problen? Thanks

8

threads

19

posts

118

credits

Registered member

Rank: 2

credits
118
Published in 2020-3-26 23:03:13 | Show all floors
Oh, an analog input by ADC, that would be great. I'm also interested in an solution!

0

threads

12

posts

66

credits

Registered member

Rank: 2

credits
66
Published in 2020-3-31 11:29:12 | Show all floors
Subway Surfers - You have brought up a very superb points , regards for the post.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list