Buzzer
Strato Pi UPS has an on-board buzzer that can be controlled using GPIO20. Simply set
GPIO20 to high to emit a continuous sound, and back to low to stop. The buzzer is not
intended to emit sound indefinitely and could be damaged doing so.
Buzzer on continuously:
$
sudo strato beep on
Buzzer off:
$
sudo strato beep off
Buzzer on for 500 milliseconds:
$
sudo strato beep 500
Buzzer on for 500 milliseconds, followed by 100 milliseconds pause, repeated three times:
$
sudo strato beep 500 100 3
UPS
When an external lead-acid rechargeable battery is connected to the Strato Pi UPS board,
the Raspberry Pi will remain powered by the Strato Pi board when the main power supply
fails, as long as there is enough energy in the battery.
When power is available, the external rechargeable battery is slowly charged with a 30mA
current.
Battery operations status is visually notified with an on-board LED and can be checked
reading Raspberry Pi's GPIO26 pin.
After being powered off (see "Power cycle" below), the Strato Pi UPS board will supply
power to the Raspberry Pi only when the main power source is restored.
Starting from a power off condition, the Raspberry Pi will not receive power if only the
back-up battery is connected to the Strato Pi board.
See "Advanced configuration" below for alternative configurations.
To print “1” if Strato Pi is operating from the battery, or “0” if main power is present:
$
sudo strato battery; echo $?
Hardware watchdog
Strato Pi UPS implements a dedicated hardware watchdog circuit that can be used to
perform a full power cycle of the Raspberry Pi.
The watchdog is normally disabled. To enable it, set GPIO6 pin to high. While GPIO6 is
high, the Strato Pi controller will watch for state changes of the GPIO5 heartbeat pin. You
should ensure that GPIO5 flips its state between high and low faster than every 60
seconds.
22
Strato Pi UPS User Guide
Содержание SPBU30X
Страница 26: ...35C AMBIENT TEMPERATURE LOW CPU LOAD 35C AMBIENT TEMPERATURE HIGH CPU LOAD 25 Strato Pi UPS User Guide...
Страница 27: ...45C AMBIENT TEMPERATURE LOW CPU LOAD 45C AMBIENT TEMPERATURE HIGH CPU LOAD 26 Strato Pi UPS User Guide...
Страница 28: ...Block diagram STRATO PI UPS BLOCK DIAGRAM 27 Strato Pi UPS User Guide...
Страница 31: ...Dimensions DIMENSIONS mm 30 Strato Pi UPS User Guide...