AVR MCU based thermometer and hygrometer with e-ink display
| .github/ workflows | 2 years ago | ||
| thermidity-avr | 2 years ago | ||
| thermidity-freecad | 2 years ago | ||
| thermidity-kicad | 2 years ago | ||
| .gitignore | 2 years ago | ||
| LICENSE | 2 years ago | ||
| README.md | 2 years ago | ||
AVR MCU based battery powered thermometer and hygrometer with e-ink display
(work in progress).
Focus is on stable, accurate measurements and low power consumption.
And of course on a nice, simple display.
The project is based on avrink and uses the following components:
AD conversion is done with 16x oversampling, yielding 12-bit virtual resolution with the 10-bit ADC, provided the signal contains some noise.
Each time measurements were taken, a moving average is updated which is used to calculate and display temperature, humidity and battery voltage.
A precision thermistor and precision low-voltage humidity sensor are used:
| Component | Accuracy |
|---|---|
| Thermistor | ¹±0.1°C |
| HIH-5030 | ±3%RH |
¹Series resistor 0.1% tolerance
Estimated average power consumption is about 220µA, hopefully giving an operating time of at least 7 months with 3 AAA batteries (1200 mAh).
The consumption of each component is about:
| Component | Data Sheet | Measured |
|---|---|---|
| ATmega328P | ¹4.2µA | <17µA |
| Thermistor | N/A | 24µA |
| HIH-5030 | ²200µA | 211µA |
| V-Divider | N/A | 2µA |
| 23K640 | 1µA | - |
| Display | ³1µA | - |
¹VCC = 3V
²VCC = 3.3V
³VCC = 3V (deep sleep mode)
Between taking measurements, the MCU is set to power-down sleep mode with the watchdog used as wake-up source. Additionally, the thermistor and humidity sensor are powered off and between display updates, the display is set to deep sleep mode. Power consumption (measured) then is about 19µA at 3.8V for MCU and display including SRAM.
When measuring temperature, humidity and battery voltage in ADC noise reduction mode, consumption should be somewhere around 2mA for 6ms, plus a brief MCU awake period for updating the moving average with measured values. Before measuring, the sensors are powered on and given 100ms to settle, consuming about 240µA.
When updating the display, consumption is at around 6mA for about 3 seconds. Before that, the MCU has to calculate and format the average measurements and buffer the frame in SRAM.
When no measurement has changed, the display is not updated to extend its lifetime and to save power.
The clock of unused modules TWI, all three timers and USART is switched off to reduce power consumption.