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

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 2331|Reply: 3

using the ADC in OrangePi 2G-IOT

[Copy link]

5

Threads

5

Posts

31

Credits

Novice

Rank: 1

Credits
31
Post time 2017-7-28 20:36:10 | Show all posts |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
Post time 2017-9-11 18:58:14 From the mobile phone | Show all posts
Have you solved this problen? Thanks

5

Threads

13

Posts

67

Credits

Registered member

Rank: 2

Credits
67
Post time 2020-3-26 23:03:13 | Show all posts
Oh, an analog input by ADC, that would be great. I'm also interested in an solution!

0

Threads

25

Posts

66

Credits

Registered member

Rank: 2

Credits
66
Post time 2020-3-31 11:29:12 | Show all posts
Subway Surfers - You have brought up a very superb points , regards for the post.
You have to log in before you can reply Login | Register

Points Rules

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

2020-5-31 18:11 GMT+8 , Processed in 0.030893 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list