Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9881 Discussions

Edison Read DCIN Pin

KMitc3
Novice
1,492 Views

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
183 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
184 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.

VIvan7
New Contributor III
183 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