Community
cancel
Showing results for 
Search instead for 
Did you mean: 
KMitc3
Novice
1,407 Views

Edison Read DCIN Pin

Jump to solution

Is it possable to read if VSYS is connected to DCIN in C++?

I'm working on a project where I want to know if the Edison is being powered by USB or a battery, and the easiest way seems to check if the DCIN pin is powered.

1 Solution
Diego_V_Intel
Employee
98 Views

Hello Keith.M,

It's not possible to check the DCIN power status through software. Anyhow, in the Arduino Expansion Board and the Mini-Breakout Board, the DCIN pin is tied to VSYS. So, regardless of the method you use to power the Edison module, the VSYS should be powered and consequently the DCIN too.

Regards,

Diego.

View solution in original post

2 Replies
Diego_V_Intel
Employee
99 Views

Hello Keith.M,

It's not possible to check the DCIN power status through software. Anyhow, in the Arduino Expansion Board and the Mini-Breakout Board, the DCIN pin is tied to VSYS. So, regardless of the method you use to power the Edison module, the VSYS should be powered and consequently the DCIN too.

Regards,

Diego.

View solution in original post

VIvan7
New Contributor III
98 Views

You have to use a battery-charging chip anyway.

Some of them have an output signal indicating that USB power is connected to the power input pin.

Here is the POK signal on Maxim chips.

Power-OK Monitor. POK is an open- drain output that pulls low when a valid charging source is detected at IN.

 

 

Otherwise, there was a program that could get the current charge level and voltage of the connected battery. When the level is below 100%, it is powered by the battery.
Reply