Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:odroid-ups3 [2016/04/20 17:10] joy.cho [ODROID-C1/C1+/C2] |
en:odroid-ups3 [2016/05/13 12:50] (current) odroid [Specification] |
||
---|---|---|---|
Line 9: | Line 9: | ||
{{http://www.hardkernel.com/main/_Files/prdt/2016/201604/201604191444388644.jpg}} | {{http://www.hardkernel.com/main/_Files/prdt/2016/201604/201604191444388644.jpg}} | ||
+ | |||
====== Specification ====== | ====== Specification ====== | ||
Line 33: | Line 34: | ||
PCB Layout(DWG):{{:en:ups3:ups3_board_rev0.1_mech.zip|}} | PCB Layout(DWG):{{:en:ups3:ups3_board_rev0.1_mech.zip|}} | ||
+ | PCB Pattern(PNG):{{:en:ups3: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 | No Load Output voltage | Output voltage at the Load | VBAT| | ||
+ | |2A | 25sec | 4.97V | 4.65V | 4.14 V| | ||
+ | |1.8A | 140s | ::: | 4.69V | 4.12 V| | ||
+ | |1.6A | 450s | ::: | 4.71 | 4.05V | | ||
+ | |1.4A | 810s | ::: | 4.73V | 3.98V | | ||
+ | |1.2A | 1470s | ::: | 4.81V | 3.95V | | ||
+ | |||
+ | If your C2 takes 800mA and USB devices take 850mA, the UPS3 can supply the power to your system around 3~4 minutes at least.\\ | ||
+ | It seems to be fine to shutdown the system safely. | ||
====== LED Indicators ====== | ====== LED Indicators ====== | ||
Line 88: | Line 102: | ||
The BAT_OK and AC_OK signals are used in the below simple shell script which runs in the background via crontab. | The BAT_OK and AC_OK signals are used in the below simple shell script which runs in the background via crontab. | ||
- | <WRAP left round important 90%> | + | <WRAP left round important 50%> |
Before using UPS3 on ODROID-C2, please check u-boot version. \\ | Before using UPS3 on ODROID-C2, please check u-boot version. \\ | ||
- | If the version of yours is the one before Mar 18 2016, update boot loader. | + | If the version of yours is the one before Mar 18 2016, update boot loader. \\ |
+ | You can find the guide how to check and update U-Boot in the end part of this wiki page. \\ | ||
+ | [ How to check and update U-Boot on ODROID-C2 ] | ||
</WRAP> | </WRAP> | ||
- | === Check U-Boot Version === | ||
- | |||
- | If you have a USB-UART console, you can easily check the u-boot version using 'ver' on u-boot stage. \\ | ||
- | |||
- | <code> | ||
- | Hit [Enter] key twice quickly during u-boot loading and enter 'ver' or 'version'. | ||
- | |||
- | odroidc2# version | ||
- | U-Boot 2015.01-00089-gdfb8216 (Apr 09 2016 - 06:20:43) | ||
- | </code> | ||
- | |||
- | Or you can check it after kernel booting on userspace using a simple shell script. | ||
- | <file sh getUbootVer.sh> | ||
- | #!/bin/sh | ||
- | dd if=/dev/mmcblk0 of=/tmp/temp.bin bs=512 skip=97 count=1334 status=none | ||
- | grep -a -r -E -o ".{0,0}U-Boot 2015.01.{0,50}" /tmp/temp.bin | grep -a "(" | ||
- | rm /tmp/temp.bin | ||
- | </file> | ||
- | |||
- | <code> | ||
- | root@odroid64:~# vi getUbootVer.sh | ||
- | root@odroid64:~# sudo chmod a+x getUbootVer.sh | ||
- | root@odroid64:/home/odroid# ./getUbootVer.sh | ||
- | U-Boot 2015.01-00089-gdfb8216 (Apr 09 2016 - 06:20:43) | ||
- | </code> | ||
- | |||
- | === Update U-Boot === | ||
- | If your U-Boot version is not the latest one, you can update it using apt-get command. | ||
- | <code> | ||
- | sudo apt-get install u-boot | ||
- | </code> | ||
==== Auto shutdown Script ==== | ==== Auto shutdown Script ==== | ||
Line 352: | Line 337: | ||
[ 88.211703] Restarting system. | [ 88.211703] Restarting system. | ||
</code> | </code> | ||
+ | |||
+ | ===== How to check and update U-Boot on ODROID-C2 ===== | ||
+ | ==== Linux ==== | ||
+ | == Check U-Boot Version == | ||
+ | If you have a USB-UART console, you can easily check the u-boot version using 'version' on u-boot stage. \\ | ||
+ | |||
+ | <code> | ||
+ | Hit [Enter] key twice quickly during u-boot loading and enter 'ver' or 'version'. | ||
+ | |||
+ | odroidc2# version | ||
+ | U-Boot 2015.01-00089-gdfb8216 (Apr 09 2016 - 06:20:43) | ||
+ | </code> | ||
+ | |||
+ | Or you can check it after kernel booting on userspace using a simple shell script. | ||
+ | <file sh getUbootVer.sh> | ||
+ | #!/bin/sh | ||
+ | # Sample shell script to check U-Boot version on Linux | ||
+ | dd if=/dev/mmcblk0 of=/tmp/temp.bin bs=512 skip=97 count=1334 status=none | ||
+ | grep -a -r -E -o ".{0,0}U-Boot 2015.01.{0,50}" /tmp/temp.bin | grep -a "(" | ||
+ | rm /tmp/temp.bin | ||
+ | </file> | ||
+ | |||
+ | <code> | ||
+ | root@odroid64:~# vi getUbootVer.sh | ||
+ | root@odroid64:~# sudo chmod a+x getUbootVer.sh | ||
+ | root@odroid64:/home/odroid# ./getUbootVer.sh | ||
+ | U-Boot 2015.01-00089-gdfb8216 (Apr 09 2016 - 06:20:43) | ||
+ | </code> | ||
+ | |||
+ | == Update U-Boot == | ||
+ | If your U-Boot version is not the latest one, you can update it using apt-get command. | ||
+ | <code> | ||
+ | sudo apt-get install u-boot | ||
+ | </code> | ||
+ | |||
+ | ==== Android ==== | ||
+ | == Check U-Boot Version == | ||
+ | If you have a USB-UART console, you can easily check the u-boot version using 'ver' on u-boot stage as described in the aforementioned Linux case. \\ | ||
+ | Or you can check it after kernel booting on userspace using the following simple shell script. | ||
+ | <file sh getUbootVer.sh> | ||
+ | #!/bin/sh | ||
+ | # Sample shell script to check U-Boot version on Android | ||
+ | /bin/dd if=/dev/block/mmcblk0 of=/data/temp.bin bs=512 skip=97 count=1334 | ||
+ | grep -a -r -E -o ".{0,0}U-Boot 2015.01.{0,50}" /data/temp.bin | grep -a "(" | ||
+ | rm /data/temp.bin | ||
+ | </file> | ||
+ | |||
+ | <code> | ||
+ | (run Terminal Emulator) | ||
+ | u0_a48@odroidc2:/ $ su | ||
+ | root@odroidc2:/ # cd /data/ | ||
+ | root@odroidc2:/data # vi getUbootVer.sh | ||
+ | root@odroidc2:/data # chmod 755 getUbootVer.sh | ||
+ | root@odroidc2:/data # ./getUbootVer.sh | ||
+ | 1334+0 records in | ||
+ | 1334+0 records out | ||
+ | 683008 bytes transferred in 0.014 secs (48786285 bytes/sec) | ||
+ | /data/temp.bin:U-Boot 2015.01-00089-gdfb8216 (Apr 09 2016 - 06:20:43) | ||
+ | root@odroidc2:/data # | ||
+ | </code> | ||
+ | |||
+ | == Update U-Boot == | ||
+ | If your U-Boot version is not the latest one, you can update it using Android update package. \\ | ||
+ | http://odroid.com/dokuwiki/doku.php?id=en:c2_release_android | ||
+ | |||
===== Tip for servo or motor driving application ===== | ===== Tip for servo or motor driving application ===== |