mirror of
https://github.com/PiSugar/PiSugar.git
synced 2026-11-29 11:26:35 -05:00
Updated PiSugar (markdown)
parent
ad6fee5eb7
commit
a9748e9572
2 changed files with 83 additions and 5 deletions
|
|
@ -1,5 +0,0 @@
|
|||
<p align="center">
|
||||
<img width="320" src="https://raw.githubusercontent.com/JdaieLin/PiSugar/master/logo.jpg">
|
||||
</p>
|
||||
|
||||
Welcome to the PiSugar wiki!
|
||||
83
PiSugar2.md
Normal file
83
PiSugar2.md
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
<p align="center">
|
||||
<img width="320" src="https://raw.githubusercontent.com/JdaieLin/PiSugar/master/logo.jpg">
|
||||
</p>
|
||||
|
||||
PiSugar2 is designed for pi-zeros. Compatible with all pi0 series(pi0,pi0w,pi0wh), with/without GPIO headers.
|
||||
|
||||
Based on PiSugar1, we added UPS, RTC and I2C features on this version.
|
||||
|
||||
#### Note: make sure you are not running any PHAT or other program occupying i2c address 0x75 and 0x32. Writing unexpected data into this two address will cause damage.
|
||||
|
||||
## Hardware Installation
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
<img width="320" src="http://cdn.pisugar.com/img/pisugar2-install.jpeg?imageView2/0/w/500">
|
||||
</p>
|
||||
|
||||
|
||||
1. Turn the power switch to off
|
||||
2. Attach pi-zero's back to the pin side of PiSugar2
|
||||
3. Tighten the four screws (M2.5) from the pi-side
|
||||
4. Turn on the power switch and enjoy!
|
||||
|
||||
## Software Installation
|
||||
|
||||
Run the following script on your pi:
|
||||
|
||||
```
|
||||
curl http://cdn.pisugar.com/release/Pisugar-power-manager.sh | sudo sh
|
||||
```
|
||||
After finished, you can manage the battery by visiting http://\<your raspberry ip\>:8421 in your browser.
|
||||
|
||||
<p>
|
||||
<img width="600" src="http://cdn.pisugar.com/pisugar2/images/ui.png?imageView2/0/w/800">
|
||||
</p>
|
||||
|
||||
PiSugar Power Manager is develop in Rust and Vue2.0, with high performace (less than 2% pi0 cpu) and exquisite designed webUI.
|
||||
|
||||
## API
|
||||
|
||||
With the software installed, you can also get battery data via udp/uds/websocket in your own way, for example:
|
||||
|
||||
```
|
||||
echo "get battery" | nc -q 0 /tmp/pisugar-server.sock
|
||||
echo "get battery" | nc -U -q 0 127.0.0.1 8423
|
||||
```
|
||||
|
||||
For more details, please refer to: https://github.com/PiSugar/pisugar-power-manager-rs#unix-domain-socket--webscoket--tcp
|
||||
|
||||
## Charging
|
||||
|
||||
Please use PiSugar's USB port for charging. If you use pi0's USB port it won't charge PiSugar, and PiSugar will turn off automatically since the external power is enough for pi0 to run.
|
||||
|
||||
You can get the charging status from webUI or api. Please note that it's calculated by software, based on whether the battery level is increasing. So when it's 100% then you can't tell if it's connecting to external USB power.
|
||||
|
||||
## Schedule Wake Up
|
||||
|
||||
If you use schedule wake up function, please keep the power switch ON. The battery will turn off as the pi shutdown. The RTC will wake up the battery and the pi at the time you set.
|
||||
|
||||
## 3D Printed Case
|
||||
|
||||
We are developing 3D models based on the PiSugar1. Except the shell part, the other parts will remain the same will PiSugar1, as well as the phat lids.
|
||||
|
||||
You can get PiSugar2 shell model here: https://github.com/PiSugar/PiSugar/tree/master/model2
|
||||
|
||||
Other basic components: https://github.com/PiSugar/PiSugar/tree/master/model1
|
||||
|
||||
Lids for PHATs: https://github.com/PiSugar/pisugar-case-pihat-cap
|
||||
|
||||
## Extensible
|
||||
|
||||
PiSugar2 has some solder pads for developers to debug or add other functions.
|
||||
|
||||
* I2C pads: SDA and SCL, bridge to pi0's i2c-1
|
||||
* 5V Input (Qi): for 5V wireless charging or solar charging
|
||||
* 5V Output: other usages
|
||||
|
||||
<p>
|
||||
<img width="600" src="http://cdn.pisugar.com/img/pisugar2-detail.jpg?imageView2/0/w/1000">
|
||||
</p>
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue