A custom battery charger using a dc programmable power supply (FCCT 400-40-I from supplier.ind.br)
- implement modbus communication with the power supply
- implement custom waveform generation
- implement voltage and current measurements
- implement capacity and energy computations
- transfer
states
to a json config file - transfer
charge_program
to the json config file - add the json config file as an argument from command line
- implement a configuration for verbosity as an argument from command line
- implement the
TCP IP
andPORT
as an argument from command line and in the json confg file - implement a csv log to a file (which the name sould be passed as an argument from command line)
- implement a report to txt file
- callibrate voltage and current setpoint
- callibrate voltage and current measurements
- test with a battery
- integrate an Arduino Uno with temperature + smoke sensors
- implement a relay + fuse + connectors + buzzer PCB as a shield for the Arduino Uno
-
supplier.py
as a library
pyModbusTCP == 0.1.7
- install dependencies
To test without a power supply:
- configure
SERVER_HOST
string aslocalhost
- run
sudo ./dumb_modus_server.py
- run
./battery_carger.py
To test with a power supply:
- Turn your power supply on and configure its ethernet address
- configure
SERVER_HOST
string to the power supply ethernet address - connect resistors to the power supply output
- plug your oscilloscope
- run
./battery_carger.py