background image

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 

 

 

Figure 41 Soldered one pin of the Bi-Stable Relay 

 

Solder  all  the  rest  of  Bi-Stable  Relay  very  carefully  to  avoid  any  short-cut  with  other  near 
placed components.

 

 

 

Figure 42 Completely Soldered Bi-Stable Relay

 

 

 

After completing of the soldering, cut the outstanding over the PCB pins (very carefully 

 PCB 

is very density!!!) 

Summary of Contents for UPS PIco HV3.0 HAT

Page 1: ...Plus PPoE Uninterruptible Power Supply with Peripherals and I2 C control Interface User Guide Designed for the Raspberry Pi 3 Compatible with Raspberry Pi 2 Pi Zero A B HAT Compliant Raspberry Pi is a...

Page 2: ...and Manufactured by PiModules and ModMyPi www pimodules com www modmypi com Document Revisions Version Date Modified Sections Comments na 06 11 2016 na First Preliminary Public Document Release 1 0 0...

Page 3: ...the Bi Stable Relay 47 Power Supply Unit Recommendations 52 SOFTWARE SETUP FOR UPS PICO HV30 STACK TOPEND PLUS 53 Installation of the Operating System Raspbian 53 Installation Procedure of Daemons an...

Page 4: ...ns 80 Example of use 82 UPS PICO HV3 0 HAT IR RECEIVER INTERFACE 83 UPS PICO HV3 0 HAT PROGRAMMABLE AUXILIARY 5V 750 MA AND 3 3V 150 MA INTERFACE 83 Example of use 83 UPS PICO HV3 0 SERIAL PORT S 85 E...

Page 5: ...Simple Raspberry Pi ON OFF Schedule executed 60 times for 1 minute every 2 minutes and repeated every day 6 SETTING UP THE ETR SAS 8 Setting Up of the 1st Example Simple Raspberry Pi ON OFF Schedule e...

Page 6: ...wer is back Initial Initial Single button System Shutdown Startup and ON OFF for Battery and Cable Only Version Plus Powered Applications Initial 0x30 Initial 15 03 2017 PWM FAN Control with automatic...

Page 7: ...conditions 1 Continuously Fast Falling Powering Edge Monitoring proprietary algorithm 2 GPIO 5V powering is unconditionally lower than 4 65V This will help when used lower quality PSUs that are givin...

Page 8: ...S232 is disabling available for user applications Usage is described in the manual in a proper section 0x24 24 016 15 01 2017 Corrected activated Battery Selection independent of the boot loader pre s...

Page 9: ...sed from the Olympic Score filtering as also software Low Pass Filter There are not rounded as also not converted to voltage Just raw data In order to ready the user need to write the 0xFF to the setA...

Page 10: ...ading 0x35 35 045 01 05 2017 Final I2C ISR Improvements and tested to be workable with new kernel 4 9 11 including sometimes I2C handler after Low Powering Mode sometimes not working properly 0x35 35...

Page 11: ...tion protecting Raspberry Pi System form improper usage but due to zero voltage drop to use all available energy from the Solar Panel in case of use The New UPS PIco HV3 0A is an all in one tool that...

Page 12: ...itional Terminals Blocks Add on PCB UPS PIco HV3 0A offers a professional I O connectivity for any industrial application including 12V level converter for both Serial Ports one of them must be select...

Page 13: ...face Finally the UPS PIco HV3 0A features an implemented Automatic Temperature Control PWM FAN controller and can be equipped with a micro fan kit which enables the use of the Raspberry Pi in extreme...

Page 14: ...PS PIco HV3 0 can be combined with additional already available parts There are 1 UPS PIco HV3 0 Fan Kit 2 UPS PIco HV3 0 Relay Kit 3 LiPO Battery 4000 mAh 4 LiPO Battery 8000 mAh 5 LiFePO4 Battery 40...

Page 15: ...different models all based on the same PCB 1 UPS PIco HV3 0 Stack 2 UPS PIco HV3 0 Stack Plus 3 UPS PIco HV3 0 Top End 4 UPS PIco HV3 0 PPoE future option not released yet 5 UPS PIco HV3 0 Top End Pl...

Page 16: ...0 Plus and PPoE No Additional External Power Input Required if Stack TopEnd is used Optional 4000 or 8000 mAh Battery for 8 16 Hours Run Time Not Included Optional 12000 mAh Battery for extremely long...

Page 17: ...ature I2 C PICo Interface for Control and Monitoring RS232 Raspberry Pi Interface for Control and Monitoring Double path XTEA Based Cryptography for User Software Protection 2 Level Watch dog Function...

Page 18: ...dmypi com Integrated ESD Protected 1 Wire Interface Programmable second RS232 interface 5V tolerant 12V RS232 interface via Terminals Blocks PCB Labeled J8 Raspberry Pi GPIO Pins for Easy Plug Play of...

Page 19: ...d 6e 6f I2 C Addresses 2 58 59 5a 5b 5c 5d 5e 5f I2C Addresses 3 69 6b Selectable use of Raspberry Pi RS232 TXD0 RXD0 OFF HiZ TXD0 RXD0 OFF HiZ TXD0 RXD0 OFF HiZ Selectable use of Raspberry Pi GPIO GP...

Page 20: ...uxiliary 5V and 3V3 Battery Backed Supply on PIco I O Pins Standard 5V 750 mA current and 3V3 continuous supplies on PIco I O Pin battery backed with possibility to continuous supply auxiliary devices...

Page 21: ...o Terminals Block Extension PCB Supplied separately 12 V RS232 converter attached to primary or secondary Serial Port Yes Optional with TB PCB Yes Optional with TB PCB Yes Optional with TB PCB Termina...

Page 22: ...sumption Yes based on System current consumption Yes based on System current consumption Secondary Serial Port based on software driver Yes future firmware option Yes future firmware option Yes future...

Page 23: ...S PIco HV3 0 HAT module 1 x 40 THT Header Stack or Top End 1 x Dual layer wide temperature adhesive tape used for battery mounting stuck on the bottom side of UPS PIco HV3 0 battery or left free in th...

Page 24: ...Therefore users should know that on each board some components are missing or replaced by another one The differences between Version TopEnd and Stack are in two points the THT connector does not cont...

Page 25: ...P3 Used for hardware reset of the Raspberry Pi each place is specified by the number therefore P0 means Raspberry Pi ZERO P2 means Raspberry Pi 2 P3 means Raspberry Pi 3 On Board Temperature Sensor 1...

Page 26: ...Raspberry Pi Hardware Reset UR UPS PIco HV3 0 hardware Reset FSSD Button Button F File Safe Shut Down Button detailed description is in next chapters User Application Buttons Buttons A B C Buttons use...

Page 27: ...0A HAT module is plug on the top of the Raspberry Pi micro computer It is using the GPIOs for interaction with it as also dedicated software installed on the Raspberry Pi called Daemons Only few GPIO...

Page 28: ...ed on their place on the UPS PIco HV3 0 Only if IR is soldered this GPIO18 is valid all other cases are HiZ ID_SC 28 marked Yellow Used for the HAT EEPROM Used for the HAT EEPROM I2C SDA GPIO02 Used a...

Page 29: ...llow below instructions Prepare your UPS PIco HV3 0 HAT and make sure that the black SMD 40 pins connector is available Figure 4 UPS PIco HV3 0 and 40 THT Stack Header Put your UPS PIco HV3 0 HAT upsi...

Page 30: ...essure Figure 6 UPS PIco HV3 0 passing the 40 Pins THT connector Press the THT 40 Pins connector on the plastic side to complete pass its pins trough until end of them reaches the bottom of the PCB Fi...

Page 31: ...ModMyPi www pimodules com www modmypi com the complete pins pass through always pressing only the SMD connector and not the PCB itself Figure 8 UPS PIco HV3 0 partially passed the 40 Pins THT connect...

Page 32: ...passed the 40 Pins THT connector side view Assembling the THT 40 pin Connector for the TopEnd Version is the same the only difference is that the top pins does not exist If you would like to install...

Page 33: ...le for the UPS PIco HV3 0 HAT is the FAN Kit This Kit contains everything what is needed to make it installed on the UPS PIco HV3 0 HAT module There are 1 x Ultra Low Noise DC FAN 1 x TO 90 Temperatur...

Page 34: ...www modmypi com Figure 12 2mm FAN connector placement Start by soldering the FAN 2mm connector to the UPS PIco HV3 0 HAT PCB Please make sure that before soldering of the 2mm connector the sounder ha...

Page 35: ...odules com www modmypi com Figure 14 2mm connector on the top side of PCB after soldering After soldering of the 2mm connector please cut the outstanding legs Figure 15 Temperature Sensor fitment plac...

Page 36: ...e that the spacers have been screwed on the Raspberry Pi and keep the right distance between UPS PIco HV3 0 HAT PCB and Raspberry Pi PCB Press little bit the sensor legs down to touch the Raspberry Pi...

Page 37: ...main parts Figure 18 Soldered Temperature Sensor Now it s time to add the fan Start by pressing the four studs through the fan mounting holes from the top of the UPS PIco HV3 0 HAT Do it very carefull...

Page 38: ...tic Tree Clips on the PCB Bottom side Add a spacer to each of the studs Finally add the fan and connect the FAN wire up The fan blows air towards the label on the FAN There are 2 ways to mount the FAN...

Page 39: ...dules and ModMyPi www pimodules com www modmypi com Figure 22 Plastic Tree Clips on the PCB Bottom side with 2mm spacers passed Figure 23 FAN placed on the UPS PIco HV3 0 PCB When placing the FAN on t...

Page 40: ...ou would like to use the buzzer you can solder it on now Ensure that this is done with the correct polarity Positive on the board should match the positive on the buzzer The soldering procedure is sam...

Page 41: ...Figure 26 Flip upside down the PCB and colder the pins then cut the outstanding legs If you would like to install the Gold Plated Reset Pin please do so now following the instructions below It is not...

Page 42: ...Button for Hardware Reset of Raspberry Pi Watch Dog Still Alive functionality Automatically Resetting Restarting of the Raspberry Pi when hung up Resetting Restarting of the Raspberry Pi when cable po...

Page 43: ...on as shown on the below picture Figure 28 Gold Plated Reset Pin on the place RPi3 Make sure to screw the poper spacers on the side where HDMI connector of the Raspberry Pi on the oposite side of the...

Page 44: ...MyPi www pimodules com www modmypi com Figure 29 Spacers screwed on their places Put the UPS PIco HV3 0 HAT on the Raspberry Pi and take care to center the head of the Gold Plated Reset Pin to the cen...

Page 45: ...r the Gold Plated Reset Pin on the top of the PCB only Take care to heat up properly the pin before you will add the tin After soldering it will look like in the picture below Make sure that the Gold...

Page 46: ...on the PIco Figure 34 Soldered Gold Plated Reset Pin is touching exactly the RUN pad Then to make Gold Plated Reset Pin internal spring working you need to re solder it by pressing down for about 1 5...

Page 47: ...m Figure 35 Heating and pressing of the Gold Plated Reset Pin You will make the Gold Plated Reset Pin ready Figure 36 Gold Plated Reset Pin properly soldered To test it make Raspberry Pi working and r...

Page 48: ...PS PIco HV3 0 HAT module User need to follow the below steps when assembling it to the UPS PIco HV3 0 HAT PCB Prepare the UPS PIco HV3 0 PCB Bi Stable Relay and 3 ways Terminal Block Figure 37 Ready f...

Page 49: ...e holes Figure 39 Put the Bi Stable Relay on the PCB Put the PCB with Relay to the opposite side and solder only one pin It is very important to solder only one pin as if you made a mistake it will be...

Page 50: ...w modmypi com Figure 41 Soldered one pin of the Bi Stable Relay Solder all the rest of Bi Stable Relay very carefully to avoid any short cut with other near placed components Figure 42 Completely Sold...

Page 51: ...d by PiModules and ModMyPi www pimodules com www modmypi com Figure 43 Cutting of the outstanding pion of the soldering Bi Stable Relay Prepare the 3 ways terminal block Make sure that cables holes ar...

Page 52: ...com Pass the Terminal Block through the holes Make sure that Terminal Blocks cables holes looks to the outside side Figure 45 Terminal Block on the proper side Figure 46 Soldered Terminal Blocks Sold...

Page 53: ...r for more advanced applications 5V 3 0A PSU is preferred This will ensure that there is enough current to recharge the PIco s battery Low quality PSUs or PSUs with bad quality of supply cables cause...

Page 54: ...are updates installation this operation need to have installed UPS PIco HV3 0 HAT hardware Installation of the Operating System Raspbian Please download and proceed with installation of the latest NOO...

Page 55: ...pip install jinja2 sudo pip install xmltodict Obviously after python pip has been installed 6 Clone Raspberry Pi daemons and email broadcasting system from the GitHub using the following command sudo...

Page 56: ...emons can be started and stopped in the usual way for SystemD sudo systemctl start picofssd service sudo systemctl stop picofssd service Important Notices 1 Both PIco packages must be installed even i...

Page 57: ...following items in the file and add what is missing i2c bcm2708 i2c dev rtc ds1307 3 Edit by running the following line sudo nano boot config txt 4 and add the following to this file enable_uart 1 dt...

Page 58: ...s done run sudo hwclock w 13 to write the time and another sudo hwclock r 13 to read the time That s it Next time you boot the time will automatically be synced from the RTC module Automatic Installa...

Page 59: ...ing of some dedicated commands or manually by pressing of dedicated key sequence The bootloader is equipped with additional protection mechanism called watch dog and if within 32 seconds from invoking...

Page 60: ...loader which allows users to update the unit s firmware The firmware can be uploaded using a dedicated python script called 9600_picofuHV3 0 py It is mandatory to have previously installed python and...

Page 61: ...rmware update or the firmware you wish to use When firmware starts the upload procedure the Orange User LED will have lit and then when firmware starts uploading the Blue User LED will lit and UPS LED...

Page 62: ...h Not Stopped the Daemon Service can cause an unexpected system shutdown however without card corruption Please use the below command to stop the FSSD service sudo systemctl stop picofssd service The...

Page 63: ...ous state Please follow below steps to do that Run sudo nano boot config txt and REMOVE this line dtoverlay pi3 disable bt Run sudo systemctl enable hciuart Run sudo systemctl enable Re add this line...

Page 64: ...plugged unplugged also when system is running cable powered however we recommend to plug it from the beginning and apply power to the Cable Power Inputs They can be the Raspberry Pi micro USB or the E...

Page 65: ...rough the I2C interface This Interface is described in detail in another chapter It is called Peripherals I2C Control Interface the PICo Interface and practically allows user to change most of system...

Page 66: ...t This is the most used and normal type of System Start up It happens when System is Cable Power or FSSD button is pressed after Safe Shutdown of the system and UPS PIco HV3 0 HAT This start up is cal...

Page 67: ...restarted with cold start using the last stored setup in the EEPROM It will remain powered the UPS PIco HV3 0 HAT even if Raspberry Pi is not powered and continuously monitoring the power conditions 4...

Page 68: ...ore is the core firmware State Machine that is handling the whole system behaviors The Power Cycling feature is handling the System Shutdown Start up as also battery charging The following scenarios h...

Page 69: ...ent address area in their application In addition the integrated Hardware RTC may be not used and the address of the 0x68 that is assigned to it will be used by another external RTC provided by user T...

Page 70: ...ister number 0x00 pico_state The writing codes are the following DEFAULT 0xA0 NO_RTC 0xA1 ALTERNATE 0xA2 Example of use System is in DEFAULT addresses sudo i2cset y 1 0x6b 0x00 0xA1 Set the System to...

Page 71: ...is STA timer Writing of 0x01 0xfe cause start of down counting every second of this STA timer until it reaches the 0x00 when the Raspberry Pi will be hardware Reset Writing of 0x00 cause immediate and...

Page 72: ...ufactured by PiModules and ModMyPi www pimodules com www modmypi com Auxiliary 5V 750mA and 3 3V 150mA interface IR Receiver Interface Programmable RS232 Interface User Selectable PIco HV3 0 I2C addre...

Page 73: ...PIco RPi is booting or shutting down Blinking every 400 ms for 400 ms System PIco RPi is running on cable powering after booting time Blinking every 1200 ms for 400 ms System PIco RPi is running on b...

Page 74: ...udo i2cset y 1 0x6b 0x0A 0x01 for ON the Green LED sudo i2cset y 1 0x6b 0x0A 0x00 for OFF the Green LED sudo i2cset y 1 0x6b 0x0b 0x01 for ON the Blue LED sudo i2cset y 1 0x6b 0x0b 0x00 for OFF the Bl...

Page 75: ...on procedure by the system Resetting the PIco with Not Stopped the Daemon Service can cause an unexpected system safe shutdown however without card corruption Button Description Usage Additional Funct...

Page 76: ...HV3 0 HAT system again In the battery powered System can be used as ON OFF files safe button When used with UR button invokes the bootloader light the Red User LED The bootloader can be invoked also...

Page 77: ...esult is loaded to a proper system variable and can be read by user The F button is a digital interrupt driven button and his value can not be read by the user Each User Key and FSSD Key buttons has a...

Page 78: ...imilar approach should be followed with other keys Above picture show how external key buttons need to be connected It is not needed to connect all of them The key register holds the latest value of p...

Page 79: ...sound when generated The maximum duration is 255 x 10 ms 2 55 seconds Additionally it is possible to deactivate it permanently by setting the bmode register to 0x00 The default value is active 0x0D bm...

Page 80: ...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...

Page 81: ...re little bit more complicated than the usual ones however user not need to care about that as electrical drivers are assembled on and offered with each UPS PIco HV3 0 HAT PCB Each Bi Stable Relay doe...

Page 82: ...ts Operate at nominal voltage Maximum 6 ms Contacts Release at nominal voltage Maximum 4 ms Due to construction of UPS PIco HV3 0 PCB we do not recommend to use Integrated Bi Stable Relay for switchin...

Page 83: ...o i2cset y 1 0x6B 0x0c 0x00 should Reset the Bi Stable Relay sudo i2cset y 1 0x6B 0x0c 0x01 should Set the Bi Stable Relay Each time when Bi Stable Relay is changing his state a characteristic tick is...

Page 84: ...the final voltage is about 4 85V instead of the 5 0V The 3 3V 150mA is only protected with LDO embedded over current protection These Auxiliary and 3 3V 150mA are addressed to supply devices that nee...

Page 85: ...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...

Page 86: ...HV3 0 by default is set OFF and Raspberry Pi Serial port can be used for any other applications If it is needed it can be set ON as also the set the data rate Setting the data rate sets it for both U...

Page 87: ...is higher than fttemp threshold OFF when lower Default value is set to 0x02 Automatic ON OFF When written 0x02 to this register data are stored in the internal EEPROM So even if UPS PIco HV3 0 will b...

Page 88: ...N ON OFF sudo i2cset y 1 0x6b 0x13 100 Set the FAN speed to 100 sudo i2cset y 1 0x6b 0x12 0x01 Set the FAN ON sudo i2cset y 1 0x6b 0x12 0x00 Set the FAN OFF Example of use Automatic FAN ON OFF sudo i2...

Page 89: ...nd not the capacity of the battery Declaration of the battery chemistry is needed due to different threshold voltages and slightly different charging algorithm It is mandatory to have declared a prope...

Page 90: ...tomers have default declared the LiFePO4 in their systems but usual the default battery chemistry is LiPO UPS PIco HV3 0 HAT Measuring and Monitoring System The UPS PIco HV3 0 offer to the user an ext...

Page 91: ...t A D converter 0 Level A D converter 1 Level A D converter 2 Level Key pressed described in the User Applications Hardware Interfaces Embedded NTC temperature measured on PIco PCB TO 92 Sensor Temper...

Page 92: ...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 Battery Level...

Page 93: ...for the user if use Terminal Block PCB or additional external resistor to use two of them as pre scaled of 0 10V 0 20V or 0 30V These two A D converters are named aEXT1 and aEXT2 Due to electrical re...

Page 94: ...ble it via a proper command and read the raw data directly from the related register All A D readings have internal reference of 2 048V and are filtered by the firmware with Olympic Score and Low Pass...

Page 95: ...settings are not unlocked yet in current firmware version Any combination of data provided on above table is allowed The register setA_D is 8 bit The 4th MSB bits are responsible for the AEXT1level pr...

Page 96: ...10th of mV in BCD format If added an extra resistor can be used as pre scaled to 10 20 or 30V 0x18 aEXT2level Word Mirror Read Means value of the second A D converter pre scaled to 5 2V Higher voltag...

Page 97: ...Print Date 18 08 2017 Designed and Manufactured by PiModules and ModMyPi www pimodules com www modmypi com Embedded NTC temperature TO 92 Sensor Temperature Integrated Charger Status PCB versions Boo...

Page 98: ...time and if one of them is selected the second is deselected and vice versa The Register responsible for the Scheduler selection is located in the 0x6b Registers Set 0x6B UPS PIco 0x19 Time Scheduler...

Page 99: ...e beginning first second of internal RTC counted minute even if the internal RTC is not set it is always running Below picture explain the logic behind of this Basic Scheduler Figure 50 Basic Schedule...

Page 100: ...Raspberry Pi is running user will see the decreased value as time is passed 0x6B UPS PIco 0x1B BS_repetition_time in minutes This register defines how long after start of the Raspberry Pi Action will...

Page 101: ...cheduler Action Duration Time in minutes Allowed values are 0x01 0xfe Default is 0x01 0x1B BS_repetition_time Byte Common R W Basic Scheduler Action Repetition Time in minutes Allowed values are 0x01...

Page 102: ...shutdown BS_multipier 0xff This will be repeated forever BS_ RUN 0x01 When user decide just activate the Basic Scheduler The data entering should looks like below it important to follow the below orde...

Page 103: ...wn BS_multipier 0x64 100 This will be repeated 100 times BS_ RUN 0x01 When user decide just activate the Basic Scheduler The data entering should looks like below it important to follow the below orde...

Page 104: ...the Raspberry PI without switching it ON just activate the Auxiliary 5V 750mA or Bi Stable Relay switching Combination of all ETR SAS produce in the result a very complicated state machine able to im...

Page 105: ...ction Repetition Time could be 0 Action Multiplier Defines how many times Action will be repeated within the same Sequence Sequence Repetition Time One Schedule contains multiple Sequences That could...

Page 106: ...com www modmypi com Template for ETR SAS preparation To simplify preparation of user born ETR SAS there is provided a template where user can easy enter draw their own schedule and the simple program...

Page 107: ...Figure 51 Graphical Presentation of ETR SAS definitions...

Page 108: ...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 Figure 52 Template for ETR SAS user preparation...

Page 109: ...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 Figure 53 ETR SAS Definitions Dependencies...

Page 110: ...frame It is not possible to change any related to ETR SAS register value when SAS RUN is active To do so you need to deactivate the SAS RUN first 0x6B UPS PIco 0x18 Next_Action_Rtime Register This reg...

Page 111: ...f ETR SAS Events Stamp This set of registers contains all defined Events that can be used for Actions Triggering ETR SAS Working Examples Please check below settings to understand exactly and properly...

Page 112: ...er SAS_number 0x00 means it will use for that Schedule the SAS0 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...

Page 113: ...ltiplier 0x01 Action Multiplier 01 means it will happen 1 time within the same Sequence Sequence Repetition Time 24 means this above described sequence will be repeated every day every 24 hours 0x6e E...

Page 114: ...R 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...

Page 115: ...berry Pi in the 1st Example Action Repetition Time 00 means it will be not repeated within the same sequence any value is allowed if Action Multiplier 0x01 Action Multiplier 01 means it will happen 1...

Page 116: ...g or any other application 0x6B UPS PIco 0x16 SAS Selection Register SAS_number 0x00 means it will use for that Schedule the SAS0 not use this with above examples 0x6B UPS PIco 0x17 SAS RUN Register S...

Page 117: ...ted after 2 minutes from starting time of the earlier one Action Multiplier 60 means it will happen 60 times within the same Sequence Sequence Repetition Time 24 means this above described sequence wi...

Page 118: ...ed sudo apt get install minicom Activate the Serial Port in the UPS PIco HV3 0A HAT i e to 38400 bps sudo i2cset y 1 0x6b 0x02 0x04 Start second SSH session or terminal and on the second SSH run the m...

Page 119: ...he proper System Time Scheduler For the case of the ETR SAS current examples the following should be done sudo i2cset y 1 0x6b 0x19 0x01 to select ETR SAS Before user start programming or reading anyt...

Page 120: ...e Common R W Starting Minute of hour in BCD 2 digits 0 59 i e 22 0x02 hour Byte Common R W Starting Hour of the Day in BCD 2 digits 0 23 i e 22 0x03 mday Byte Common R W Starting Day of the Month in B...

Page 121: ...tering the improper Month Date wrong data will be not accepted sudo i2cset y 1 0x6c 0x03 0x20 for starting month date in BCD 10 Enter Hour for start hour must be the same with actual or higher and not...

Page 122: ...t Action beginning Default value is 00 no repetition 0x03 Action_Multiplier byte Common R W Defines how many times the Action will be repeated within the same Sequence 0 255 Default value is 0 Action...

Page 123: ...the Saquence sudo i2cset y 1 0x6d 0x04 24 repeated every 24 hours 0x6e ETR SAS Actions Stamp The third ETR SAS registers set is the Actions Stamp located at 0x6e Current firmware implementation conta...

Page 124: ...tions Stamp Acording to specification of the 1st Example need to set below values Action RPi_PON 0x01 means that Action of this Scheduler will be Raspberry Pi ON and after Action Duration Time OFF The...

Page 125: ...duler will be activated so will be executed Sequence conatin 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...

Page 126: ...from 0x00 up to 0x59 sudo i2cset y 1 0x6c 0x01 0x59 for starting minute in BCD 7 Use this simple command line without any python script to check the entered and stored data at any time User can write...

Page 127: ...3 60 repeated 60 times 4 Enter Sequence_Repetition_Time to define Repeated Time of the Saquence sudo i2cset y 1 0x6d 0x04 24 repeated every 24 hours 0x6e ETR SAS Actions Stamp The third ETR SAS regist...

Page 128: ...The following procedure needs to be followed Press and hold the UR button Continue to hold the UR button and press and hold the C button Release the UR button but keep holding the C button Release aft...

Page 129: ...ther applications 12 I2 C sets to DEFAULT where used I2C addresses are 0x68 0x69 0x6A 0x6B 0x6C 0x6D 0x6E 0x6F 13 Battery Type sets to default version of the one stored in the bootloader LiPO 14 The E...

Page 130: ...ible and easy The core concept of the UPS PIco HV3 0 HAT interface is that all peripheral device control and data exchange between it and Raspberry Pi variables are common for the I2C interface as als...

Page 131: ...n be used as pre scaled to 10 20 or 30V 0x18 aEXT2level Word Mirror Read Means value of the second A D converter pre scaled to 5 2V Higher voltage could be supplied with an external resistor divider R...

Page 132: ...the main loop of the firmware Reading two times of this variable must return a different value with interval longer than 1 ms if not means that system hangs up and need to be reset if not restarted by...

Page 133: ...isters Direct Access Specification Address Name Size Type R W Explanation 0x00 seconds Byte Mirror Read seconds in BCD 0x01 minutes Byte Mirror Read minutes in BCD 0x02 hours Byte Mirror Read hours in...

Page 134: ...hole registers file to alternate address This option release the 0x68 address for another RTC for Raspberry Pi if needed or use it with this address of 0x58 This movement of the registers file frees t...

Page 135: ...minute of Battery Running Default Value is 0 and the highest Value is 0xFE If user will enter i e 2 the Battery Running time will be 60 seconds 2 x 60 seconds 180 seconds After that time system will b...

Page 136: ...sta_timer is set again to 0xff disabled 0x06 enable5V Byte Common R W Defines usage of the Auxiliary 5V 750mA 0x00 Auxiliary 5V and 3 3V are not battery backed up 0x01 Auxiliary 5V and 3 3V are batter...

Page 137: ...mmon R W Duration of sound in 10th of ms 10 100 ms 0x11 fmode Byte Common R W Integrated Fan Running Mode Read Anytime Return actual fmode value Write 0x00 Unconditional Disable the FAN with selected...

Page 138: ...onnected to the hardware and controlled by it By writing the 0x00 to LEDOFF disable the LEDs Default is 0x01 means LED ON 0x16 SAS_number Byte Common R W Define the current ETR SAS that is programmed...

Page 139: ...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...

Page 140: ...W Starting Year in BCD 2 digits 0 99 i e 16 0x06 error Byte Mirror Read ETR SAS errors 0x6d Actions Running Time Stamp Address Name Size Type R W Explanation 0x00 error Byte Mirror Read ETR SAS errors...

Page 141: ...Deactivate 0x00 Default 0x00 Write 0x01 to have this Action Active and switch Auxiliary 5V 750mA and 3V3 Powering ON 0x02 BR_Set Byte Common R W Bi Stable Relay Set Activate 0x01 Deactivate 0x00 Defau...

Page 142: ...spberry Pi 3 Compatible with Raspberry Pi 2 Pi Zero A B HAT Compliant Raspberry Pi is a trademark of the Raspberry Pi Foundation Introduction The UPS PIco HV3 0 Terminal Blocks PCB is an advanced Term...

Page 143: ...Raspberry Pi is not powered 12V RS232 Interface Level Converter connectable to the Raspberry Pi Primary Serial Port or Independent Secondary Serial Port offered by UPS PIco HV3 0A with Terminal Block...

Page 144: ...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...

Page 145: ...r is an op amp circuit which has a voltage gain of 1 This means that the op amp does not provide any amplification to the signal The reason it is called a voltage follower is because the output voltag...

Reviews: