-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Battery Thermistor Data & Heater Control #196
Comments
Trace all |
Seems like PWM is still set since Either:
|
We should remove old telem from telem packets (allowing us to increase frequency later or gain margin). Rn, this appears to be: |
Seems like ADC might somehow be using 2.8V Vref, despite VeRef+ being wired to 3.3V. Maybe cfg'd to be using an internal reference in MCTL? Or, maybe not ... MSP430FR5994 User Guide shows only internal 1V2, 1V5, 2V5, or external references. RC6 data logs show 2V5 ADC reading as Update: |
Probably should replace charge information (deprecated) in heartbeat with thermal info. |
Plugged a 5k resistor (i.e. 25C or 298K) into RT port. Heating status changed to |
NOTE: Open circuit on |
Heater power level settings work now HOWEVER, if the power level is set to 10% (only level tested below 20%), the voltage measured won't go back up unless the power level is set to at least 70%. (that is, if you set the power level that low then want to go back up to some intermediate value, you must first set it to >=70%). The PWM waveforms never looked weird in this case though, so it's quite possible this was just a quirk of the cheap |
Some features still need to be impl. |
Note: voltage ADC readings are probably off but therm are not b/c therm uses strong (~10k) pull-up; whereas, voltage sensors use weak (>~100k) dividers which means the implicit ~~30k pull-up in the MSP430 ADC will have a greater influence on the results. |
NOTE: During RC7 we discovered that the ADC reference voltage in the conversion table used to generate GSW's thermistor lookup table was wrong. Fixing this made the BattRT thermistor readings accurate to 0.09ºC at ambient. |
All major concerns here are closed. Spawning some lower priority lingering issues then closing this one:
|
Key issues fixed. All child issues have been broken out. This can now be closed. |
A review of logs from RC6 shows that the reading reported for the battery thermistor is always
0b1
or0b0
, even when reported in different packet types. This suggests that it's unable to read that thermistor (possibly a fault). Since we won't get an opportunity to test this prior to the pre-TVAC upload, a robust set of heater control patches that can resolve all possible causes needs to be built.This includes:
FIxes Required:
The text was updated successfully, but these errors were encountered: