- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page