Skip to content

striris/FlexiCharge-Charge-station-plus

 
 

Repository files navigation

FlexiCharge-Charge-station-plus

Raspberry Pi Touchscreen Setup

According to the Picture below.

GND is black wire to the third pin down on the right-hand side. 5V is red wire to the second pin down on the right. SCL is yellow wire to the third pin down on the left-hand side. SDA is green wire to the second pin down on the left-hand side.

To connect the white ribbon cable supplied, connect one end to the controller board, make sure that this end has the blue tab facing down, towards the board (the opposite end, the end not being attached to the controller board, should have the blue tab facing up, so you can see it. Picture below.

Capture

PysimpleGUI

1- The used library is pysimpleGUI so you need to install the following commands on the terminal.

pip3 install pysimplegui
pip3 install pillow

2- You need to install the following command on the termina to use the qr code generator.

pip3 install qrcode

3- You need to install the following command on the termina to use the websockets

pip3 install websockets

How to run the program:

To run the program, open PowerShell (for Windows) or Terminal (for Linux) and navigate to FlexiCharge-Charge-station-plus -> ChargeStation and enter python3 state-machine.py

What should happen?

  1. A start-up screen will first be shown.
  2. Then, if the connection was successfully established, a QR-code and an ID-number will show up. Otherwise an error message will show up if the ChargePoint wasn’t able to connect to the server.
  3. Connect to the charger via the app and the charger should ask you to follow the instructions in the app.
  4. Go through the payment in the app, then the charger should start charging.
  5. The user continue to charge until it's fully charged, the screen will display 100% and the price should be shown in 5 seconds. If the user cancel the charging, the charger will go back to the QR-code/ID-number screen.

Good to know:

"images.py" include all images from zeplin(think about the path of the images if you get error), "StateHandler" include Enum for all the states, and "state-machine" include the main code and state-machine.

Development Requirements:

Python 3.9
Visual Studio Code

About

forked for setting up workflow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%