{"id":41512,"date":"2020-08-03T18:27:53","date_gmt":"2020-08-03T11:27:53","guid":{"rendered":"https:\/\/deepquest.code511.com\/blog\/?p=41512"},"modified":"2020-08-03T18:27:56","modified_gmt":"2020-08-03T11:27:56","slug":"setup-ugeek-ups3-hat-on-raspberry","status":"publish","type":"post","link":"https:\/\/deepquest.code511.com\/blog\/2020\/08\/setup-ugeek-ups3-hat-on-raspberry\/","title":{"rendered":"Setup UGEEK UPS3 HAT on Raspberry"},"content":{"rendered":"\n<p>Ugeek UPS3\u00a0hat allows to power a raspberry 4B 3B+ 3b with battery that you must be above 2500mAh. The git code is requires 2 dependencies to be installed manually otherwise the power led will not be activated.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>The main advantage is the support of Quick Charge QC3 5V\/9V\/12V, refilling your battery very fast.<br><br>Once the hat is installed, power you raspberry and ssh. We will first install the missing dependencies:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install scons\nsudo apt-get install python-pip (usually already installed)\nsudo apt install python-smbus\n\ngit clone https:\/\/github.com\/u-geek\/SmartUPSV3.git --depth 1\ncd SmartUPSV3\/\nsudo .\/install.sh (setup the options led brightness, autorun, safe shutdown etc... then apply settings)\n\nsudo systemctl daemon-reload<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Now check the the status of the UPS3:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo python status.py\n\nReading status...\n         Count:  1\n         Input:  Connected\n  ChargeStatus:  Charging\nBatteryVoltage:  4.00 V\n           SOC:  21 %<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/deepquest.code511.com\/blog\/wp-content\/uploads\/2020\/08\/photo_2020-08-03_18-06-56-1024x576.jpg\" alt=\"\" class=\"wp-image-41513\" srcset=\"https:\/\/deepquest.code511.com\/blog\/wp-content\/uploads\/2020\/08\/photo_2020-08-03_18-06-56-1024x576.jpg 1024w, https:\/\/deepquest.code511.com\/blog\/wp-content\/uploads\/2020\/08\/photo_2020-08-03_18-06-56-300x169.jpg 300w, https:\/\/deepquest.code511.com\/blog\/wp-content\/uploads\/2020\/08\/photo_2020-08-03_18-06-56-768x432.jpg 768w, https:\/\/deepquest.code511.com\/blog\/wp-content\/uploads\/2020\/08\/photo_2020-08-03_18-06-56.jpg 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Blue: charging<br>Green: using the battery<br>Side button allows to start or stop the device<\/figcaption><\/figure><\/div>\n\n\n\n<p>The logs are located here:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/var\/log\/smartups.log\n<\/code><\/pre>\n\n\n\n<p>You can click the link bellow to their official store.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.aliexpress.com\/item\/4001225380527.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/ae01.alicdn.com\/kf\/H3b3b17f6e9814ebab3c57fa47d5a5633R\/UGEEK-UPS-3-HAT-for-Raspberry-4B-3B-3B-Support-Quick-Charge-QC3-5V-9V-12V.jpg_960x960.jpg\" alt=\"\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Setup UGEEK UPS3 HAT on Raspberry.<\/p>\n","protected":false},"author":1,"featured_media":41513,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2909],"tags":[2912,2913,2910,2911],"class_list":["post-41512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry","tag-qc3","tag-raspberry","tag-ugeek","tag-ups3"],"jetpack_featured_media_url":"https:\/\/deepquest.code511.com\/blog\/wp-content\/uploads\/2020\/08\/photo_2020-08-03_18-06-56.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4bBYZ-aNy","_links":{"self":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/41512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/comments?post=41512"}],"version-history":[{"count":4,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/41512\/revisions"}],"predecessor-version":[{"id":41517,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/41512\/revisions\/41517"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/media\/41513"}],"wp:attachment":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/media?parent=41512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/categories?post=41512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/tags?post=41512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}