Contains example definitions of NiMH battery specifications.
Definition in file NIMHspecs.h.
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | BAT_CELL_NUMBER 3 |
| Number of cells in battery. | |
| #define | BAT_CURRENT_HYST 3 |
| Charge current hysteresis, in mA. | |
| #define | BAT_CURRENT_PREQUAL 150 |
| Constant charge current, in mA, during prequalification mode. | |
| #define | BAT_TEMPERATURE_MAX 50 |
| Maximum cell temperature (Celsius). | |
| #define | BAT_TEMPERATURE_MIN 5 |
| Minimum Cell temperature (Celsius). | |
| #define | BAT_TIME_PREQUAL 2 |
| Maximum time for prequalification, in minutes. | |
| #define | BAT_VOLTAGE_DROP (CELL_VOLTAGE_DROP * BAT_CELL_NUMBER) |
| Voltage drop, in mV, when full charge is achieved. | |
| #define | BAT_VOLTAGE_HYST 10 |
| Charge voltage hysteresis, in mV. | |
| #define | BAT_VOLTAGE_LOW (CELL_VOLTAGE_LOW * BAT_CELL_NUMBER) |
| Minimum voltage, in mV, to consider battery charged. | |
| #define | BAT_VOLTAGE_MAX |
| Maximum battery voltage, in mV. | |
| #define | BAT_VOLTAGE_MIN (CELL_VOLTAGE_MIN * BAT_CELL_NUMBER) |
| Minimum voltage, in mV, to consider battery safe to charge. | |
| #define | BAT_VOLTAGE_PREQUAL (CELL_VOLTAGE_PREQUAL * BAT_CELL_NUMBER) |
| Charge voltage to achieve, in mV, during prequalification mode. | |
| #define | CELL_VOLTAGE_DROP 15 |
| Cell voltage drop when full charge is achieved. | |
| #define | CELL_VOLTAGE_LOW 1350 |
| Minimum voltage to consider cell charged at, in mV. | |
| #define | CELL_VOLTAGE_MAX 1600 |
| Maximum charge voltage for cell, in mV. | |
| #define | CELL_VOLTAGE_MIN 800 |
| Minimum voltage to start charging at, in mV. | |
| #define | CELL_VOLTAGE_PREQUAL 1000 |
| Target voltage during prequalification, in mV. | |
| #define | CELL_VOLTAGE_SAFETY 0 |
| Buffer for unmatched batteries. | |
| #define BAT_CELL_NUMBER 3 |
| #define BAT_CURRENT_HYST 3 |
Charge current hysteresis, in mA.
Definition at line 87 of file NIMHspecs.h.
Referenced by ConstantCurrent().
| #define BAT_CURRENT_PREQUAL 150 |
Constant charge current, in mA, during prequalification mode.
Definition at line 84 of file NIMHspecs.h.
| #define BAT_TEMPERATURE_MAX 50 |
Maximum cell temperature (Celsius).
Definition at line 74 of file NIMHspecs.h.
Referenced by Charge().
| #define BAT_TEMPERATURE_MIN 5 |
Minimum Cell temperature (Celsius).
Definition at line 77 of file NIMHspecs.h.
Referenced by Charge().
| #define BAT_TIME_PREQUAL 2 |
Maximum time for prequalification, in minutes.
Definition at line 80 of file NIMHspecs.h.
Referenced by Charge().
| #define BAT_VOLTAGE_DROP (CELL_VOLTAGE_DROP * BAT_CELL_NUMBER) |
Voltage drop, in mV, when full charge is achieved.
Definition at line 103 of file NIMHspecs.h.
Referenced by Charge().
| #define BAT_VOLTAGE_HYST 10 |
Charge voltage hysteresis, in mV.
Definition at line 90 of file NIMHspecs.h.
Referenced by ConstantVoltage().
| #define BAT_VOLTAGE_LOW (CELL_VOLTAGE_LOW * BAT_CELL_NUMBER) |
Minimum voltage, in mV, to consider battery charged.
Definition at line 97 of file NIMHspecs.h.
Referenced by BatteryStatusRefresh().
| #define BAT_VOLTAGE_MAX |
Value:
(CELL_VOLTAGE_MAX * BAT_CELL_NUMBER) - \ ((BAT_CELL_NUMBER - 1) * CELL_VOLTAGE_SAFETY)
Definition at line 93 of file NIMHspecs.h.
Referenced by Charge().
| #define BAT_VOLTAGE_MIN (CELL_VOLTAGE_MIN * BAT_CELL_NUMBER) |
Minimum voltage, in mV, to consider battery safe to charge.
Definition at line 100 of file NIMHspecs.h.
Referenced by BatteryStatusRefresh().
| #define BAT_VOLTAGE_PREQUAL (CELL_VOLTAGE_PREQUAL * BAT_CELL_NUMBER) |
Charge voltage to achieve, in mV, during prequalification mode.
Definition at line 106 of file NIMHspecs.h.
Referenced by Charge().
| #define CELL_VOLTAGE_DROP 15 |
| #define CELL_VOLTAGE_LOW 1350 |
| #define CELL_VOLTAGE_MAX 1600 |
| #define CELL_VOLTAGE_MIN 800 |
| #define CELL_VOLTAGE_PREQUAL 1000 |
| #define CELL_VOLTAGE_SAFETY 0 |
Buffer for unmatched batteries.
If we are charging a multicell battery and the cells aren't matched, we may risk overcharging at least one. Therefore, we may subtract this constant per additional cell in battery to allow for a "buffer".
If this is changed to something higher than (CELL_VOLTAGE_MAX - CELL_VOLTAGE_LOW), and the number of cells is great enough, the limit BAT_VOLTAGE_LOW will become higher than BAT_VOLTAGE_MAX. This will cause the charger to keep trying to charge, but instantly finishing because the battery voltage is already at max.
Definition at line 36 of file NIMHspecs.h.
1.5.2