Power - Main Power Supply

The power module allows to control the power of the different SBC subsystems.

Methods

class Power_Module

The Power_Module class manages the SBC power module.
It can turn on/off some of the SBC peripherals.

When the class is instantiated, the USB Hub is powered ON by default, the rest of the peripherals are powered OFF.
GPS1 module is always powered ON, to power it OFF you will need to do it via UBX command.

Example to turn ON the XBEE sockets, wait 1 seconds and turn it off:

>>> import sbc
>>> import time
>>> pm = sbc.Power_Module()
>>> pm.xbee_on()
>>> time.sleep(1)
>>> pm.xbee_off()
hub_on()

Sets USB Hub power ON.

gps2and3_on()

Sets GPS2 and GPS3 power ON. Note that GPS1 is always ON and that GPS3 is optional.

xbee_on()

Sets both XBEE sockets A and B power ON.

gsm_on()

Sets GSM module power ON. Notice that the soldered GSM module is optional.

hub_off()

Sets USB Hub power OFF.

gps2and3_off()

Sets GPS2 and GPS3 power OFF. Note that GPS1 is always ON and that GPS3 is optional.

xbee_off()

Sets both XBEE sockets A and B power OFF.

gsm_off()

Sets GSM module power OFF. Notice that the soldered GSM module is optional.

enable_all()

Sets all peripherals power ON.

disable_all()

Sets all peripherals power OFF.