Skip to content

Commit

Permalink
Update config.h - Dyson V15 debug
Browse files Browse the repository at this point in the history
- updated CHARGE PIN to PA01
- minimized Low Temp limits as 2xRTD pins unknown
  • Loading branch information
Gucioo authored Jan 19, 2024
1 parent d74c4f3 commit 9872510
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions V10_BMS/src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
// Pin definitions
#define LED_FILTER PIN_PA01
#define LED_BLOCKED PIN_PA00
#define LED_ERR PIN_PA19
#define LED_ERR PIN_PA19 // Works on V15, showing ERR

//Battery charge/discharge indicators
#define LED_BAT_LO PIN_PA25
#define LED_BAT_MED PIN_PA24
#define LED_BAT_HI PIN_PA18

//- seems to go to Q3 on the charger inlet side of things, push it high to accept a charge
#define ENABLE_CHARGE_PIN PIN_PA02
//#define ENABLE_CHARGE_PIN PIN_PA02 // For V10
#define ENABLE_CHARGE_PIN PIN_PA01 // For V15 & V11 charging confirmed

//PA28 appears to be ALERT pin from the BQ7693
#define BQ7693_ALERT_PIN PIN_PA28
Expand All @@ -42,13 +43,17 @@

//18650 cell temperature limits from Molicell datasheet.
#define MAX_PACK_TEMPERATURE 60 //'C - if pack temperature greater than this, no charge/discharge allowed.
#define MIN_PACK_CHARGE_TEMP 0 //'C - if less than this, no charge.
#define MIN_PACK_DISCHARGE_TEMP -40 //'C - if less than this, no discharge
//#define MIN_PACK_CHARGE_TEMP 0 //'C - if less than this, no charge.
//#define MIN_PACK_DISCHARGE_TEMP -40 //'C - if less than this, no discharge
#define MIN_PACK_CHARGE_TEMP -300 //'C - if less than this, no charge.
#define MIN_PACK_DISCHARGE_TEMP -400 //'C - if less than this, no discharge
// Limits disabled, as V15 & V11 have 2xRTDs, now unknown where are assigned, therefore even max temp doesnt work
// Do not charge battery when hot and not supervised! This is for Debug only for V15, battery pack outputs 24V

#define IDLE_TIME 60 * 15 // Idle time in seconds. Pack will go into SHIP/deep sleep mode if nothing happens in this duration

#define FULL_CHARGE_PAUSE_COUNT 10 //Once a cell reaches max charge volts, pause for 30 seconds and retry, this many times.

//#define SERIAL_DEBUG 1 //Serial debug via the spare USART on the programming pins header

#endif /* CONFIG_H_ */
#endif /* CONFIG_H_ */

0 comments on commit 9872510

Please sign in to comment.