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 

 

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

 

 

 

Solder Terminal Block Pins and cut the outstanding legs over the PCB, be very careful with 
other components placed near to them (SMD Resistors).

 

 

Содержание UPS PIco HV3.0 HAT

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 107: ...Figure 51 Graphical Presentation of ETR SAS definitions...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: