UUGear Zero2Go Omini User manual

Copyright © 2018 UUGear s.r.o. All rights reserved.
Zero2Go Omini
Wide Input Range, Multi-Channel Power supply for Raspberry Pi
User Manual (revision 1.01)

Copyright © 2018 UUGear s.r.o. All rights reserved.
Table of Content
Product Overview.............................................................................................. 1
What is in the Package?.................................................................................... 3
Zero2Go Omini Specifications........................................................................... 4
Software Installation.......................................................................................... 5
Software Update/Uninstallation.......................................................................... 6
Mounting Zero2Go on Raspberry Pi Zero.......................................................... 7
Mounting Zero2Go on Other Raspberry Pi Models............................................ 8
Connecting Power Supplies............................................................................. 10
Software Usage................................................................................................11
1. Set Default State.............................................................................. 12
2. Set Blinking Interval ......................................................................... 12
3. Set Power Cut Delay........................................................................ 12
4. Set Low Voltage Threshold............................................................... 12
5. Set Recovery Voltage Threshold...................................................... 13
6. Set Step-Down Engine Always-On................................................... 13
7. Exit................................................................................................... 14
Ghost Voltage.................................................................................................. 14
Work as Uninterruptible Power Supply (UPS).................................................. 15
Hardware Hackings......................................................................................... 15
1. Interface with different Power Supplies ............................................ 15
2. Change the Pin Used by Zero2Go Omini ......................................... 17
3. Modify and Upload Firmware............................................................ 18
Zero2Go Omini Log Files................................................................................. 19
Frequently Asked Questions (FAQ) ................................................................. 20
1. What I2C Address is Used by Zero2Go Omini? ................................ 20
2. What I2C Registers Are Provided by Zero2Go Omini?...................... 20
3. What GPIO Pins Are Used by Zero2Go Omini?................................ 23
4. Is Zero2Go Omini Compatible with “Other Hardware”? .................... 24

Copyright © 2018 UUGear s.r.o. All rights reserved.
5. How to Understand the Color of LED on Zero2Go Omini? ............... 24
Revision History............................................................................................... 26

1
Product Overview
Zero2Go is a Raspberry Pi Zero sized (or pHAT shape) extension board that can work
as wide input range power supply for Raspberry Pi. Zero2Go Omini is the second
member in the Zero2Go family.
Zero2Go Omini supports all Raspberry Pi models that has the 40-pin GPIO header,
including A+, B+, 2B, 3B, 3B+, Zero and Zero W.
The main features of Zero2Go Omini include:
Three separated input channels (each accepts 3.5~28V DC).
Auto step-up or step-down to output 5V for powering Raspberry Pi.
Auto switch input channel (one with highest voltage takes the priority).
Gracefully turn on/off Raspberry Pi with single tap on the button.
Fully cuts power for Raspberry Pi and all its USB peripherals after shutdown.
Long hold the button to force power cut, when OS loses response.
Monitor the input voltage on each channel (via software).
Shutdown Raspberry Pi when input voltage below preset threshold.
Recover Raspberry Pi when input voltage exceed preset threshold.
Zero2Go has quite wide input range (3.5V~28V), so it is convenient to power your
Raspberry Pi with power bank, Li-Po battery pack, solar panel, car battery or different
kinds of power adapters etc. You can also configure it as a UPS.

2
The board size of Zero2Go is exactly the same with Raspberry Pi Zero (W), and can
be mounted on Raspberry Pi Zero or other Raspberry Pi models that have 40-pin
header.
How does it work? Please see below the simplified diagram. It demonstrates the main
functionalities of Zero2Go Omini and can help you to understand how it works.
Three input channels (A, B and C) are merged as Vin with 3 schottky diodes. The
comparator will compare Vin with an internal reference and decide whether to use
step-up or step-down engine. When Vin is lower than 5.5V, the step-up engine will be
used; When Vin is 5.5V or higher, the step-down engine will be used instead. The
outputs of both engines are also merged with 2 schottky diodes.
The voltage on each input channel can be measured by ADC (analog-to-digital
converter) and the result can be queried via I2C interface.
Zero2Go Omini also has built-in low-voltage protection, which can gracefully
shutdown your Raspberry Pi when input voltage is too low. This feature can be
enabled via Zero2Go Omini Console. Please read Software Usage chapter for more
information.

3
The picture below shows how Zero2Go Omini looks like:
1) Micro USB connector for input channelA
2) XH2.54-2P connector for input channel B
3) Universal wire connector for input channel C.
4) Tact button to turn on/off Raspberry Pi.
5) Three-color LED (red, green, blue) as action indicator.
6) 2x20-pin header (connects to Raspberry Pi).
What is in the Package?
Each Zero2Go Omini package contains:
Zero2Go Omini board x 1
M2.5 x 10mm plastic screw x 4
4mm spacer x 4
M2.5 plastic nut x 4

4
Zero2Go Omini Specifications
Dimension:
65mm x 30mm x 7.7mm
Weight
12g (net weight)
Mainly Used Chips
MCU: ATtiny841 (datasheet)
DC-DC Bulk: MP4462 (datasheet)
DC-DC Boost: SDB628 (datasheet)
LED Indicator
Three-color LED (red, green and blue)
Interface
Micro USB female connector for input channel A.
XH2.54-2P connector for input channel B.
Universal wire connector for input channel C.
20x2 header (h=2mm) for connecting Raspberry Pi.
Input
Three separated channels (A, B, and C)
All accept DC 3.5V~28V (5.5~7.0V is not recommended
as the DC-DC converter needs more dropout to work well)
Output
Output 5V (±5%), maximum 2A
Efficiency
Up to 87% @ Step-Up mode
Up to 82% @ Step-Down mode
Standby Current
~0.13mA @ Vin=3.5V
~0.36mA @ Vin=12V
~0.87mA @ Vin=28V
Operating Temperature
-30℃~80℃(-22F~176F)
Storage Temperature
-40℃~85℃(-40F~185F)
Humidity
0~80%RH, no condensing

5
Software Installation
We strongly recommend to install the software before physically mount Zero2Go
Omini on your Raspberry Pi.
You will need to have your Raspberry Pi connected to the Internet. The installation
will be very simple if you run our installing script. The wiringPi utility is required by
the software so the script will install it for you, if you haven’t done so before.
First step is to run this command in your home directory:
If your Raspberry Pi has internet connection, it will immediately download the script
from our website, and you will then see the “installZero2Go.sh”script in your home
directory. You can then run it with sudo:
Please notice that sudo is necessary to run this script, because it will copy file to the
/etc/init.d/ directory as well. This script will automatically do these tasks in sequence:
1. Enable I2C on your Raspberry Pi
2. Install i2c-tools, if it is not installed yet
3. Configure Bluetooth to use mini-UART
4. Install wiringPi, if it is not installed yet
5. Install Zero2Go programs, if they are not installed yet
You can also manually install these packages and make those configurations, if you
prefer to. After the installation, please remember to reboot your Raspberry Pi.
You will see a new “zero2go”directory, and it contains 2 runnable files:
pi@raspberrypi ~ $ wget http://www.uugear.com/repo/Zero2GoOmini/installZero2Go.sh
pi@raspberrypi ~ $ sudo sh installZero2Go.sh
pi@raspberrypi ~ $ cd zer2go
pi@raspberrypi ~ /zero2go $ ls
daemon.sh init.sh utilities.sh zero2go.sh

6
Although the daemon.sh is runnable, you should not run it manually. The installing
script has registered it into /etc/init.d and it will run automatically after the boot.
The zero2go.sh is the software that allows you to monitor the working status of
Zero2Go and make configuration interactively. Please see the “Software Usage”
chapter for more information.
Now the software has been installed, and you will need to physically mount Zero2Go
Omini on your Raspberry Pi.
Software Update/Uninstallation
If you want to update the software to newer version, you don’t have to uninstall it
first. Just remove or rename your “zero2go” directory and repeat the installing
process, then you are all set.
If you prefer to completely remove the software, besides removing the “zero2go”
directory, you should also remove the “/etc/init.d/zero2go_daemon” file. There are
some dependencies (such as wiringPi, i2c-tools etc.), who are installed during the
software installation. In the majority of cases you don’t have to remove them, but if
you wish, you can check the content of “installZero2Go.sh”script and do the reverse.
pi@raspberrypi ~ $ mv zero2go zero2go.bak
pi@raspberrypi ~ $ wget http://www.uugear.com/repo/Zero2GoOmini/installZero2Go.sh
pi@raspberrypi ~ $ sudo sh installZero2Go.sh

7
Mounting Zero2Go on Raspberry Pi Zero
If you want to use Zero2Go Omini on Raspberry Pi Zero (V1.2, V1.3 or W), you will
need to solder the 20x2 pin male header (not included in the package) on it first, or
you can buy one with the header pre-soldered.
You can simply mount Zero2Go Omini on your Raspberry P Zero’s 40-pin header,
and it can work immediately. However, if you wish, you can use the plastic screws,
spacers and nuts (included in the package) to tightly mount Zero2Go Omini on your
Raspberry Pi Zero. Please make sure NOT to put Zero2Go up side down, the 40 pins
should connect to the female header via the holes underneath, as shown in figure
below.

8
Mounting Zero2Go on Other Raspberry Pi Models
Other Raspberry Pi models (A+, B+, 2B and 3B) have the 40 pin header pre-soldered
already, so it is possible to directly mount Zero2Go Omini over them. However,
because of the existence of display connector, you may not be able to firmly connect
them.
In order to make reliable connection, we suggest to use a stacking pin header (not
included in the package).
The 40 extra long pins on stacking header should reach the female header via the
holes on the back of Zero2Go Omini. You can then place a steel ruler (or something

9
similar) between the two rows of pins and push Zero2Go Omini until it reaches the
plastic of the stacking header, as shown in figure below:
If you want to take off the stacking header from Zero2Go Omini, the proper way is to
put your Zero2Go Omini upside down, and let the 40 pins contact a flat surface (e.g.
the desktop), hold the two edges and press the board down. That way the stacking
header will be taken off safely. See the figure below:

10
Connecting Power Supplies
Zero2Go Omini has 3 separated input channels, and you can connect multiple power
supplies at the same time (one power supply per channel).
If multiple power supplies present, the one with highest voltage will take effect. If that
power supply is turned off, the one with second highest voltage will take its place.
The diagram below explains how this happens:
In Zero2Go Omini, these diodes (D1, D2 and D3) are high current schottky diodes.
Thanks to them, the input channels are separated, and they all have reverse polarity
protection.
Each input channel can accept 3.5V~28V DC. If there is at least one input channel has
enough voltage, you will see the LED indicator blinking in red, which means it is
standing by.
Remarks: when connecting power supply with rather high voltage (> 12V), please
turn off the power supply until the reliable connection has been made. Otherwise the
inrush current could damage the hardware!

11
After your Raspberry Pi is up, you can run the software and monitor the voltages on
these three input channels. Please read Software Usage chapter to learn more.
It is possible to configure Zero2Go Omini as an Uninterruptible Power Supply (UPS),
please read the Work as Uninterruptible Power Supply (UPS) chapter for more
details.
Software Usage
You can run the zero2go.sh bash script to launch the Zero2Go Omini console:
The Zero2Go Omini console looks like this:
In the “Status” area you can read the current voltage of each input channel, and know
what the current working mode is (step-up or step-down). The whole interface will be
refreshed for every 5 seconds.
In the “Menu” area you can make some configurations on your Zero2Go Omini.
pi@raspberrypi ~/zero2go $ ./zero2go.sh
ZERO2GO OMINI CONSOLE
V1.00 by UUGear s.r.o.
Status
Channel-A: 4.75V Channel-B: 0.40V Channel-C: 0.40V
Working Mode: Step-Up
Menu
1. Set default state when power is connected: [Default Off]
2. Set blinking interval when standing by: [4 Seconds]
3. Set delay between shutdown and cutting power: [5.0 Seconds]
4. Set low voltage threshold: [Disabled]
5. Set recovery voltage threshold: [Disabled]
6. Set step-down engine always-on: [No]
7. Exit
Enter your choice (1~7)

12
1. Set Default State
By default, your Zero2Go will not turn on your Raspberry Pi when power supply is
connected, and you will need to tap on the button to boot your Raspberry Pi. This
means “Default Off”.
If you change it to “Default On”, Raspberry Pi will be turned on automatically when
power supply is connected. A typical use case is that you wish Raspberry Pi to get
back to work after a power failure.
2. Set Blinking Interval
Zero2Go is in “stand by” state when power supply is connected, and Raspberry Pi is
not turned on yet. In this state the LED will blink in red color with a fixed interval,
whose default value is 4 seconds (blink once per 4 seconds).
Here you can choose 1, 2, 4 or 8 seconds. Since Zero2Go uses watchdog timer to
wake itself up and blink the LED, this interval can not be set to other values due to the
limitation of watchdog timer.
3. Set Power Cut Delay
After the operational system has been shut down, the TXD pin on Raspberry Pi will
go to LOW state, and Zero2Go will wait for a few seconds and then cut the power for
Raspberry Pi.
Here you can choose the delay between system shutdown and the power cutting. The
default value is 5.0 seconds, and you can choose any value from 0.0 to 8.0 seconds
(numbers with one decimal digit are supported).
4. Set Low Voltage Threshold
Zero2Go Omini allows you to specify a voltage threshold, that when all input voltages
are below this threshold, Zero2Go will suggest Raspberry Pi to shutdown (by pulling
down GPIO-4 for a moment).
This threshold is disabled by default. Here you can specify 2.0~25.0 volts as the
threshold (numbers with one decimal digit are supported). You can disable this
threshold again by inputting 0 here.

13
5. Set Recovery Voltage Threshold
Here you can also specify a voltage threshold, that when any of input voltage exceeds
this threshold, Zero2Go will turn on your Raspberry Pi. This behavior will happen
only when your Raspberry Pi was shut down due to the low voltage (see the “Set Low
Voltage Threshold” section above). If low voltage threshold is disabled, configuration
of this recovery voltage threshold will be ignored.
This threshold is disabled by default. Here you can specify 2.0~25.0 volts as the
threshold (numbers with one decimal digit are supported). You can disable this
threshold again by inputting 0 here.
It is recommended to configure this threshold to a value higher than the “low voltage
threshold”. Otherwise you may encounter “shutdown - startup” infinite loop. For
example, assume you are using a single-cell Li-Po battery to power Zero2Go. If you
configure the low voltage threshold to 3.0V, you can configure the recovery voltage
threshold to 4.2V. So the system will shutdown when the battery is running out, and
get back to work when the battery gets fully charged.
6. Set Step-Down Engine Always-On
Zero2Go Omini uses two DC-DC converting engines at the same time: one for
step-up (boost) and one for step-down (bulk).
Usually only one engine is activated at a time. When input voltages are all below
5.5V, the step-up engine is on; When any input voltage exceeds 5.5V, the step-down
engine will be activated, while the step-up engine will be off.
However, starting an engine will take some time and switching between engines may
cause the interrupt of output voltage. For example, assume the input voltage from
3.7V drops to 7.4V, the step-up engine will be turned off and the step-down engine
will be on. The output voltage will be lost when step-up engine is off, while the
step-down engine has not been initialized yet, thus the output voltage will be
interrupted. If Raspberry Pi is running, it will lose the power for a moment and most
probably will be rebooted.
That’s why we have this configuration here, which allows you to turn the step-down
engine always-on, so it can start working in no time. Don’t worry, turning step-down
engine always-on only cost a small current (about 0.1mA) because the step-down
engine is still disabled when input voltages are lower than 5.5V.
You may ask, why there is no option to turn the step-up engine always-on? It is
because the step-up engine does not isolate the input and output (they are coupled via
an inductor), so the voltage will reach the output as long as the step-up engine is

14
enabled, and should not cause Raspberry Pi to reboot. So there is no need to turn
step-up engine always-on.
7. Exit
Choose this option to quit the Zero2Go Omini console. This will not affect the
daemon.sh running in the background, which will continue running and monitor the
state of GPIO-4 pin.
Ghost Voltage
If you leave any input channel floating (not connecting to any power supply), you
may see it has voltage too (in Zero2Go Omini Console). It is normal, because the
schottky diode for isolating each channel has a reverse leaking current, which could
be up to 0.5mA. That reverse current will generate a “ghost voltage” on the voltage
divider network, which the ADC (Analog to Digital Converter) on Zero2Go Omini
can detect.
Usually you don’t need to worry about it, and the ghost voltage only gets displayed
and will not bring any harm.
If you don’t want to see the ghost voltage, you may short the floating input to ground,
or remove the schottky diode, given that channel will never be used.

15
Work as Uninterruptible Power Supply (UPS)
Zero2Go Omini can be easily configured as an uninterruptible power supply (UPS)
for Raspberry Pi.
You will need at least two power supplies. For example, you connect a 3.7V Li-Po
battery pack and a 18V wall adapter to Zero2Go Omini.
Then you can make these configurations in Zero2Go Omini Console:
Set low voltage threshold to 3.2V
Set recovery voltage threshold to 4.2V
Set step-down engine always-on
Now your Zero2Go Omini becomes a UPS with strategies below:
1. If electric power supply is normal, the 18V from wall adapter will be used
2. When electric power supply fails, the 3.7V Li-Po battery pack will be used
3. When the voltage of battery goes below 3.2V, shutdown Raspberry Pi.
4. When the battery is fully charged (back to 4.2V), restarts Raspberry Pi.
5. When the power failure is recovered, uses the 18V from wall adapter.
Hardware Hackings
Zero2Go Omini’s hardware is quite hack-able. However, please understand that once
you make any hacking on your Zero2Go Omini, you will lose the warranty. So
please think twice before going further.
1. Interface with different Power Supplies
There are 3 input channels on Zero2Go Omini, and each of them has different
interface. Channel A uses a micro USB connector; Channel B uses an XH2.54-2P

16
connector; Channel C uses a universal wire connector and can connect DuPont wires
or any power wire.
If your power supply has different interface, for example, a barrel shaped plug, you
can prepare a barrel jack with two leads, and solder its leads to the pads on Zero2Go
Omini’s bottom surface.
You can solder the two leads on any channel (they all support 3.5~28V input):
The same idea can be used to interface any kind of power supply.

17
2. Change the Pin Used by Zero2Go Omini
Zero2Go Omini uses GPIO-4 (BCM naming) as SWITCH signal and GPIO-17 (BCM
naming) as System-Up signal. You can learn more details here.
The SWITCH signal is in HIGH state by default, and it goes LOW when you press
the button on Zero2Go Omini, then it goes back to HIGH when you release the
button. The System-Up signal is in LOW state by default, and it goes HIGH for 0.5
second after booting your Raspberry Pi.
You can change the pins used by Zero2Go Omini. What you need to do is to cut the
thin copper track on the back and wire the signal pad to new pin accordingly.
For example, if you want to use GPIO-27 (BCM naming) as SWITCH signal, you cut
the copper track between Switch and GPIO-4, and then wire the “Switch” pad to
GPIO-27, as shown in picture below:
You will also need to modify the daemon.sh file to adapt this change. Just change the
“HALT_PIN” variable to 27:
You can also change the pin used for System-Up signal as well. Just cut the copper
track between System-Up and GPIO-17, and then wire the System-Up pad to the new
pin. You will also need to change the “SYSUP_PIN” variable in daemon.sh file.
7# halt by GPIO-4 GPIO-27 (BCM naming)
8readonly HALT_PIN=4 HALT_PIN=27
9
10 # pull up GPIO-17 (BCM naming) to indicate system is up
11 readonly SYSUP_PIN =17
Other manuals for Zero2Go Omini
1
Table of contents
Other UUGear Power Supply manuals
Popular Power Supply manuals by other brands

National Instruments
National Instruments FieldPoint FP-PS-4 operating instructions

YOSHINO
YOSHINO B330 SST quick start guide

CCR
CCR 400 manual

Teletype
Teletype Dataspeed 40PSU101 DISASSEMBLY/REASSEMBLY AND PARTS

True blue power
True blue power TS6 Installation manual and operating instructions

BE QUIET!
BE QUIET! Pure Power 9 user manual