Before you start:
-
In the folder FINAL you can find two python scripts bms_reader.py and i2c_display.py.
-
Both python files needs to be started with two different ssh-connections via the terminal of your computer.
-
If you want to quit both files, a keyboard input is necessary. Use ctrl + c to quit.
-
Raspberry Pi name: test@bp1 and bp2@bp2
-
Raspberry Pi password: batteryproject
Explanation bms_reader.py:
-
When you start the bms_reader.py, every fifteen seconds a new json file is generated.
-
Json file contains: soc, voltage, current, temperature and capacity.
-
All json files have an individual Unix timestamp in their file name.
-
Json file name example: battery_data_{timestamp}.json.
-
They're all saved in the folder: battery_data_json.
Explanation i2c_display.py:
-
When you start the i2c_display.py, it checks if a new json file arrived in the folder.
-
If a new file is found, it extracts the battery data from the json file.
-
And is then visualized on the I2C-display.
-
Open this folder:
cd Desktop/team-bms
This folder contains:
-
folder: battery_data_json (includes all generated json files)
-
python file: bms_reader.py
-
-
Start the python script:
python3 bms_reader.py
-
Open this folder:
cd lcd
This folder contains:
-
display drivers
-
python file: i2c_display.py
-
-
Start the python script:
python3 i2c_display.py
-
2x Raspberry Pi 5 Berrybase
-
2x LORA-HAT for Raspberry Pi Waveshare
-
I2C-Display for Raspberry Pi AZ-delivery
-
Logic Level Converter for I2C-Display Amazon
-
Daly Smart BMS 3S 12V 30A Amazon
-
3x 18650 Li-Ion battery cell Akkushop
-
Bracket for 18650 Li-Ion battery cell Amazon
-
Breadboard Amazon
-
Jumper Wire Amazon
- Wire the three Li-Ion battery cells to the Daly-Smart-BMS:
For more information check this website: Daly
-
Connect the Daly-Smart-BMS with the enclosed UART-USB-A cable to Raspberry Pi.
-
Connect the I2C-display to Raspberry Pi with the help of this Pinout:
For more information check this website: Tutorials-RaspberryPi
• Python Module for Daly-Smart-BMS:
pip install dalybms
For more information check this website: PyPi
• GitHub Repository for I2C-Display drivers:
git clone https://github.com/the-raspberry-pi-guy/lcd.git
Important: i2c_display.py needs to be saved in this folder, so that drivers are working correctly.
For more information check this website: GitHub