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
Definition of the 2
nd
Example - Simple Bi-Stable Relay ON/OFF Schedule executed 1 time for
3 minutes and repeated every day.
We need to start up - set ON - the Bi-stable Relay at 09:59 (date for the first-time start-up is
20
th
August 2017). The Bi-stable Relay will run for 3 minutes starting up one minute before the
Raspberry Pi® on Example 1
st
(executing their tasks), then 1 minute after will be OFF. Next day
the above Sequence (that has only one Action) will be repeated. If both Schedules will be
activated then i.e. powering can be supplied to external device, Raspberry Pi® then will be
activated and when task is finished, Raspberry Pi and then (after one minute) the external
device will be deactivated.
Please check below settings to understand exactly and properly the meaning of the
ETR SAS
vocabulary. Involved Registers and programmed values for this example are the following:
0x6A -> UPS PIco Hardware RTC Registers Direct Access
Not needed. Can be used just for monitoring or any other application.
0x6B -> UPS PIco 0x16 SAS Selection Register
SAS_number
= 0x01;
means it will use for that Schedule the SAS1
0x6B -> UPS PIco 0x17 SAS RUN Register
SAS_RUN
= 0x00;
during programming phase and then must be set to
0x01 to make
ETR SAS
running
0x6B -> UPS PIco 0x19 Time Scheduler Selector
Time_Scheduler_Selector
= 0x01;
This register is used to select the System Time
Scheduler. Two values are possible 0x00 (default
value)
–
which means
Basic Scheduler
,
or 0x01
–
which means
Event Triggered RTC Based System
Actions Scheduler
. Setting of it is necessary to select
the proper System Time Scheduler.
0x6c -> ETR SAS Start Time Stamp Registers
Active
= 0x01;
means that this Sequence is active when Scheduler
will be activated (so will be executed). Sequence
contains one or more Actions.
Year
= 0x17;
means it will start at Year 2017
Month
= 0x08;
means it will start at August
Mday
= 0x20;
means it will start at 20
th
of declared above month
(August)