2 Replies Latest reply on Nov 23, 2015 11:05 AM by Vincenze

    Edison Read DCIN Pin

    Keith.M

      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. Re: Edison Read DCIN Pin
          DiegoV_Intel

          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.

          • 2. Re: Edison Read DCIN Pin
            Vincenze

            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.