[HOWTO] UPS PIco simple set-up step by step

Various usefully guides how to use or setup the UPS PIco

[HOWTO] UPS PIco simple set-up step by step

Postby Pimaster » Wed May 27, 2015 6:29 pm

Hi,
Please find here below a simple instruction how to make UPS PIco working in a simple steps

0. Unpack the UPS PIco
1. Make sure that all jumpers are on their place (4 green, 1 yellow)
2. Remove any powering from your Raspberry Pi.
3. If you like to use the included buzzer, you will need to solder it, and take care about polarity
4. Remove the seal from the buzzer top
5. If you have the Gold Plated Reset Pin, solder it following instructions manual listed here below. You can do it also later. It is not mandatory to have working UPS PIco.

http://www.pimodules.com/_pdf/_pico/PIco_fan_Kit_Assembly_Manual_V1.0.pdf

6. If you have PIco Fan Kit, assembly it following instructions manual listed here below. It can be installed later on also.

http://www.pimodules.com/_pdf/_pico/UPS_Pico%20Reset_Pin_Mounting_V1.0.pdf

7. Make sure that you have a good enough powering supply (recommended is 2A)
8. Then plug-in the UPS PIco on the top of the Raspberry Pi (Raspberry Pi should be not powered when plugging the PIco)
9. Enter Powering cable to the Raspberry Pi micro USB
10. You will see the UPS PIco reacting to the powering, the big Red and Blue LEDs will flash 10 times every second, and if you have buzzer installed will beep also every second. If you also have installed the PIco FAN it will be running during this start-up procedure
11. Plug-in the battery (300 mAh or 3000 mAh) to the battery connector on the Raspberry Pi. You can plug in the battery during big LEDs flashing

Now your hardware set-up is ready and running

The UPS PIco uses 2 GPIO pins for communication with the Raspberry Pi. There are the GPIO_22 and GPIO_27. One of them is used for the initiation of the File Safe Shutdown Process (called also FSSD) and the second one is used to generate the pulses train, that are recognized by the UPS PIco and based on them UPS PIco "knows" if the Raspberry Pi is running or not.

If the pulse train is properly recognized, the UPS LED will be blinking every second. Only when you see the UPS LED blinking your system is working properly and can support you with power backup. This will happen after software set-up.

You must now do some simple software set-up to have it working

Make sure that you have the following files, can be downloaded from the following locations

The picofssd.py
https://app.box.com/s/9b481pvpgdxgx58qqd7ty978p494y31z

The picofu.py (compatible and tested with Pi2)
https://app.box.com/s/4qc9ju2s84r7epxt9p6f77eoi8f4czfo

Reference sample of the rc.local
https://app.box.com/s/v2cyoxaepiitcj6f7lvrulw109bf4x4c

0. Read the User Guide

Short User Guide Updated
https://app.box.com/s/etpghc3yx2ojlluj6fczu0m0hwrnqw4m

1. Make sure that you have installed the python, and I2Ctools
2. Copy the picofssd.py to your home directory
3. Make the changes on the rc.local like in the reference example listed above
4. If you like, afterwords you can upload the latest version of firmware using the picofu.py, but not now
5. Restart the Raspberry Pi after referred software changes
6. When system starts-up, you should see the UPS LED blinking
7. If the LED is blinking and only then, you can test if the UPS PIco offer you power backup. To do it, just remove the PSU micro USB cable, you will have a beep, and the UPS LED will be blinking slower than before
8. After a 10- 20 seconds enter the cable again, you we hear again beep (shorter one) and within 5 seconds the UPS LED will start blinking fast, and after 2 seconds the CHG LED will be lighting
9. Read the manual or ask on the forum for other UPS PIco functionality
10. Relax, drink a coffee or a beer - your Raspberry Pi is now full protected from any power losses, or SD card corruption

When you will have better experience with the system, you can start uploading the newer version of firmware

BR PiM
Warmest Regards
PiM
---
Designing with Mentor Graphics PADS - www.pads.com
Please read and follow the PiForum rules
http://www.forum.pimodules.com/viewtopic.php?f=13&t=196
---
Pimaster
Site Admin
 
Posts: 1611
Joined: Fri Sep 14, 2012 7:50 am

Re: [HOWTO] UPS PIco simple set-up step by step

Postby bgreer5050 » Wed Sep 09, 2015 2:40 pm

The instructions are for a Pi with a linux OS. I am looking to use with a Pi with WIndows 10 IoT installed. Has anyone accomplished using this with Windows 10 IoT ? Any advice ?

Thanks
bgreer5050
 
Posts: 1
Joined: Wed Sep 09, 2015 2:38 pm

Re: [HOWTO] UPS PIco simple set-up step by step

Postby Pimaster » Wed Sep 09, 2015 4:44 pm

Not, yet.

We need to change the picofssd.py to do in C, and compile. Nothing difficult, but time is very restricted.
Assume the end of September we will be able to do it.
BR PiM
Warmest Regards
PiM
---
Designing with Mentor Graphics PADS - www.pads.com
Please read and follow the PiForum rules
http://www.forum.pimodules.com/viewtopic.php?f=13&t=196
---
Pimaster
Site Admin
 
Posts: 1611
Joined: Fri Sep 14, 2012 7:50 am

Re: [HOWTO] UPS PIco simple set-up step by step

Postby piguy45 » Tue Nov 08, 2016 11:05 am

How'd you go with Windows IoT conversion of the code?
piguy45
 
Posts: 5
Joined: Sat Nov 05, 2016 10:00 am

Re: [HOWTO] UPS PIco simple set-up step by step

Postby demetr1ce » Fri Jul 21, 2017 9:02 am

I have written a bare bones script in C#/.NET to get my PIco UPS running on my Raspberry Pi 3 running Windows IoT. It was adapted from https://github.com/modmypi/PiModules/bl ... s/picofssd and since I suck at Python, this is best I could do :) Hope it helps, cheers.

https://github.com/demetr1ce/PIcoFssd
demetr1ce
 
Posts: 2
Joined: Fri Jul 21, 2017 8:56 am


Return to [HOWTO] Short User Guides and Manuals relases

Who is online

Users browsing this forum: No registered users and 2 guests