Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
Go to the source code of this file.
Functions | |
void | asACR01B10D (boards_config_t *config) |
The ACR01B10D is also known as the Crownstone Built-in One. More... | |
void asACR01B10D | ( | boards_config_t * | config | ) |
The ACR01B10D is also known as the Crownstone Built-in One.
It comes with version v20 or the v25, but they are similar from a board configuration perspective.
The PWM enable pin might not be connected on the v20, but it is fine to be set nevertheless.
Reference voltage
Measure current
Measure voltage
TODO: Explain how it relates to: RESULT = (V(P) – V(N)) * (GAIN/REFERENCE) * 2^(RESOLUTION - m)
Temperature is set according to T_0 = 25 (room temperature) R_0 = 10000 (from datasheet, 10k at 25 degrees Celcius) B_ntc = 3434 K (from datasheet of NCP15XH103J03RC at 25-85 degrees Celcius) B_ntc = 3380 K (if we assume it to stay cold at for 25-50 degrees Celcius) B_ntc = 3455 K (if we assume it to become hot at 25-100 degrees Celcius) R_18 = 18000 R_ntc = R_0 * exp(B_ntc * (1/(T+273.15) - 1/(T_0+273.15))) V_temp = 3.3 * R_ntc/(R_22+R_ntc) See https://en.wikipedia.org/wiki/Thermistor#B_or_%CE%B2_parameter_equation.
We want to trigger between 76 < T < 82 degrees Celcius.
T | R_ntc | V_temp | B_ntc |
---|---|---|---|
25 | 10000 | 1.32 |
| 76 | 1859 | 0.3090 | 3434 | <- TODO: should be the used value | 82 | 1575 | 0.2655 | 3434 | <- TODO: should be the used value | 90 | 1256 | 0.2153 | 3455 |
Hence, 0.3135 < V_temp < 0.3639 in an inverted fashion (higher voltage means cooler).
Extras