UPS PIco HV3.0A Firmware Code 040 Print Date 18.08.2017
Designed and Manufactured by PiModules and ModMyPi
www.pimodules.com www.modmypi.com
are ready. Enjoy your new UPS PIco installed and protecting your system. For
furthermore advanced usage you need to follow the next chapters.
System Functionality and Features
The
UPS PIco HV3.0 HAT
core functionality is to provide powering battery back-up and
protect the Raspberry Pi® system from micro SD card corruption if power loss occurs
during writing to micro SD card.
However, due to implementation of enhanced battery powering system it can be used
for any kind of Battery or Cable Powered Application.
The
UPS PIco HV3.0 HAT
is plugged on top of the Raspberry Pi® and it is continually
monitoring the GPIO 5V Pins. The proprietary implemented algorithm analyzes the
powering status
on these GPIO’s
and recognizes when cable powering is going to be
lost. If so, then within 250 uS applies the Battery Back-Up power and when cable
power returns release it. The
UPS PIco HV3.0 HAT
powering analyzer check the
stability of the cable powering and only if it is stable for more than 3 seconds release
the battery power Back-up returning to Cable powering
All functionality of the
UPS PIco HV3.0 HAT
can be monitored or changed/forced via
enhanced set of System Variables (System Registers) accessed through the I
2
C
interface. This Interface is described in detail in another chapter. It is called
P
eripherals
I
2
C
Co
ntrol
I
nterface -
the
PICo Interface
-
and practically allows user to change most
of system parameters via command line (if SSH or Terminal is used) or via any language
interface (Python, C, etc.). Some of the System Parameters can be also monitored or
changed via Raspberry Pi® using minicom®
by using of the Raspberry Pi® Serial Port (if
it is released for other applications) or again higher-level language interfaces.
The
PICo Interface
is occupying pre-defined (with possibility to change their location)
addresses on the I
2
C space. By default, they are
0x68
,
0x69
,
0x6A
,
0x6B
,
0x6C
,
0x6D
,
0x6E
,
0x6F
. In next chapters will be analyzed how to use of these System Registers.
There are specified in the Table 7 UPS PIco HV3.0 HAT I2C addresses.
The installed software for interaction with the Raspberry Pi
® (Daemons)
, is using the
GPIOs GPIO_GEN27
(sending pulse train to the Raspberry Pi® and initiating the Safe
Shutdown) and GPIO_GEN22 (replying by
the Raspberry PI® to
UPS PIco HV3.0 HAT
).
These GPIOs are used to send and receive pulse train to/from the Raspberry Pi. They
are also used to initiate the shutdown procedure when/if it is needed. The Daemons
are monitoring these GPIOs and fire-up and interrupt on the Raspberry Pi
®
side. This
approach is very flexible and does guarantee that interaction even if huge files are
copied and/or Raspberry Pi
®
is ultra-busy with other tasks. It is not allowed to use
these GPIOs for any other
Raspberry Pi®
functionality.