Hello, We have a Controllino Maxi Automation and we power it at 24V.
However our PC can also "see" this Controllino in Windows Device Manager even when the mains power is OFF and it is only being powered over USB (5V). This causes us problems because our software is sending commands to the Controllino that wont have any effect when power is only 5V.
But we don't currently know how the device is powered. Is there any way to detect if the Controllino is only being powered over a USB cable? TIA
Assuming 24V is DC, you can use a voltage divider from the 24V to an analogue or digital input and check that input. If it's not DC, you can rectify and smooth it to DC first.
Just looking at the LEDs on the controllino the 12V and 24V are red/oranage when controllino is powered over USB. When powered at 24V the 24V led goes green. This is probably a stupid suggestion but is there no way to read the colour of the LEDS using C code?
You will have to look at the schematic of the controlino how the 24V indicator LED is controlled. I doubt that the 24V indicator LED is directly connected to one of the processor inputs so there is no way to read it directly.