Skip to content

Latest commit

 

History

History
27 lines (26 loc) · 1.44 KB

Batteries.md

File metadata and controls

27 lines (26 loc) · 1.44 KB

Measuring battery voltages

The motor controller runs on 48V, so we're using 4 parallell packs of 4x 12V batteries in series.
For the sake of battery health, I like to keep an eye on the voltage of each battery seperately.
To accomplish this, we're using 4 of these voltage hats for raspberry pi. Voltage hat These can among other things read 4 voltages.
Each of them have their own Raspberry Pi Zero W, which have this config:

  • Connected to boat WiFi
  • SSH enabled
  • Password changed
  • Hostname like batterypack1, batterypack2, etc
  • Docker and docker-compose installed
    • curl -fsSL https://get.docker.com -o get-docker.sh
    • sudo sh get-docker.sh
    • sudo usermod -aG docker pi
    • sudo apt install python3-pip libffi-dev -y
    • sudo pip3 install docker-compose
    • sudo nano /lib/systemd/system/docker.service
  • A small Flask webserver running on docker. See BatteryServer.py.