Download Print this page

HARDKERNEL ODROID-UPS3 Manual

Hide thumbs Also See for ODROID-UPS3:

Advertisement

Quick Links

2020/11/09 14:28
Introduction
The ODROID-UPS3 (Uninterrupted Power Supply) device is designed specifically for the ODROID-
C1,C1+ and ODROID-C2.
It is equipped with a rechargeable Lithium-Polymer Battery, Charger IC and 5Volt Boost DCDC.
When the AC power source is removed, the UPS3 keeps supplying the power to the ODROID boards
with the battery.
There is a digital output pin to send the battery low-level warning to the ODROID to trigger the
shutdown process.
It will significantly reduce the risk of data loss by sudden power loss.
When the AC power source becomes available again, the UPS3 will supply power to the ODROID again
automatically.
Because of LiPo chemical
characteristics, Battery Level can go
little high when the load is quite light.
If your device reboot after shutdown,
you should add a more delay after low
battery alarm.
ODROID Wiki - http://wiki.odroid.com/
1/10
Introduction

Advertisement

loading

Summary of Contents for HARDKERNEL ODROID-UPS3

  • Page 1 1/10 Introduction Introduction The ODROID-UPS3 (Uninterrupted Power Supply) device is designed specifically for the ODROID- C1,C1+ and ODROID-C2. It is equipped with a rechargeable Lithium-Polymer Battery, Charger IC and 5Volt Boost DCDC. When the AC power source is removed, the UPS3 keeps supplying the power to the ODROID boards with the battery.
  • Page 2: Specification

    ODROID-C2 Estimated Running Time with typical load of about 3 hours when fully charged 500mA @ 5V Schematic: ODROID-UPS3 for C series Layout(DWG):ups3_board_rev0.1_mech.zip Pattern(PNG):ups3.zip When the battery was fully charged(VBAT=4.2V), we performed the load test with UPS3. Time to power-off at the Load Current Time to power-off...
  • Page 3: Led Indicators

    2020/11/09 14:28 3/10 Introduction LED Indicators BLUE LED(D1) Illuminated when power is connected and battery is charged OFF when charger is idle: Battery is fully charged Power is not connected or shutdown Rapidly blinking when power is connected but battery is not connected Power Status Indicator &...
  • Page 4 Last update: 2020/10/21 accessory:power_supply_battery:odroid-ups3 http://wiki.odroid.com/accessory/power_supply_battery/odroid-ups3 07:03 Ensure that slide switch SW1 is to the left to enable power output. Even when SW1 is off, the charging function keeps working. Assemble guide Assemble as the UPS3 as shown in Figure. Pin assignment to configure SW There are three signals to control auto shutdown and wake-up based on battery status.
  • Page 5 2020/11/09 14:28 5/10 Introduction AC_OK : The AC_OK pin is high when the AC source is available. BAT_OK : The BAT_OK pin is high when the battery voltage is higher than 3.7V. POWER_LATCH : This pin must be high to supply 5V to the load. AC_OK BAT_OK POWER_LATCH Pin GPIO Pin GPIO Pin...
  • Page 6 Last update: 2020/10/21 accessory:power_supply_battery:odroid-ups3 http://wiki.odroid.com/accessory/power_supply_battery/odroid-ups3 07:03 gpio_setvalue() echo > "$SYSFS_GPIO_DIR/gpio$1/direction" echo > "$SYSFS_GPIO_DIR/gpio$1/value" test $MODEL "ODROIDC" then AC_OK_GPIO=88 BAT_OK_GPIO=116 LATCH_GPIO=115 gpio_export $LATCH_GPIO gpio_setvalue $LATCH_GPIO elif test $MODEL "ODROID-C2" then AC_OK_GPIO=247 BAT_OK_GPIO=239 LATCH_GPIO=225 gpio_export $LATCH_GPIO gpio_setvalue $LATCH_GPIO else AC_OK_GPIO=199 BAT_OK_GPIO=200 gpio_export...
  • Page 7 2020/11/09 14:28 7/10 Introduction Cron setup This can be set up by running crontab. sudo crontab This example script will run ups3.sh script every 2 minutes. # m h dom mon dow command * * * * /home/odroid/ups3.sh To confirm that cron works with ups3.sh, check the syslog. $ tail /var/log/syslog 04:53:01 odroid64 CRON[1824]:...
  • Page 8 Last update: 2020/10/21 accessory:power_supply_battery:odroid-ups3 http://wiki.odroid.com/accessory/power_supply_battery/odroid-ups3 07:03 On Android, you need to register the monitoring script, ups3.sh in android init rc. Auto shutdown Script Here is an example script for Android and the default path is /system/bin/ups3.sh. #!/bin/sh SYSFS_GPIO_DIR="/sys/class/gpio" retval="" gpio_export() "$SYSFS_GPIO_DIR/gpio$1"...
  • Page 9 2020/11/09 14:28 9/10 Introduction lowVoltageCount=$(( lowVoltageCount+1 $lowVoltageCount then echo "power off" am start android.intent.action.ACTION_REQUEST_SHUTDOWN --ez KEY_CONFIRM true activity-clear-task else echo "battery is good" MODEL=`getprop ro.product.board` echo $MODEL `echo $MODEL grep "odroidc2"` then AC_OK_GPIO=247 BAT_OK_GPIO=239 LATCH_GPIO=225 gpio_export $LATCH_GPIO gpio_setvalue $LATCH_GPIO elif `echo $MODEL grep...
  • Page 10 Last update: 2020/10/21 accessory:power_supply_battery:odroid-ups3 http://wiki.odroid.com/accessory/power_supply_battery/odroid-ups3 07:03 C1/C1+ : /init.odroid.board.rc C2 : /init.odroid2.board.rc shell@odroidc2:/ $ su root@odroidc2:/ # mount -o rw,remount / 298.823337] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) root@odroidc2:/ # vi /init.odroidc2.board.rc service ups /system/bin/ups3.sh class core user root group root...