Tutorial 1 (ION board): Implementing 3 states of the ION board – IDLE, DISCHARGE, and CHARGE mode.
Preconfiguration:
Hardware Setup:
- Plug the ION shield on the arduino.
- Connect the 5V supply on the microUSB port on the ION-shield.
- Connect the arduino to your PC and download/open the Arduino IDE.
Software setup:
- Open your git client (For ex. GitBash) & Download/clone the code from github
You may also go this link and click on “Clone or download”, download the .zip file in the desired location & extract the contents.
- Open the folder MakerMax_ion and open the Arduino sketch.
- Now we will go over some basic tutorials that will help you understand how the code works and help you interact more efficiently with your ION board.
Tutorial 1: Changing Modes.
The ION board comes with three pre-configured modes. These are:
- Charging
- Discharging
- Idle
In this tutorial we will show you how to switch between these three modes.
- You will need to goto function “mode_change(uint8_t mode)”
- Press SW1 and SW2 simultaneously to switch between the 3 modes.
- After reaching the desired mode release both the switches at the same time.
- Notice the Charging or the discharging current on the OLED display.
- We have set a median value of 500mA for both Charge and discharge on startup.
You may change these startup values by configuring these variables. - It is advisable not to increase the current value more than 1.15A i.e 1150mA.
- IDLE mode – In this mode, the cell is neither charging, nor discharging. This is the default state of the board on startup. Other than putting the cell in idle, this mode can also be used for running tests for characterising the capacity loss over time.
CHARGE mode – In this mode, we are charging the lithium ion cell by providing it a charging current.
DISCHARGE mode – In this mode, we are discharging the lithium ion cell by providing it a discharging current
To learn more on how the State of Charge (SOC) algorithm & various other things work with practical examples check out our courses makermax.ca/courses