eolab:products:plant_pot_scale
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eolab:products:plant_pot_scale [2024/02/28 14:23] – [Power Consumption] henrik.schoofs | eolab:products:plant_pot_scale [2024/05/17 11:06] (current) – [First Prototype] henrik.schoofs | ||
---|---|---|---|
Line 3: | Line 3: | ||
Goal: Development of Wifi or BLE enabled scale to measure the weight of plant pots for an experiment of Anna-Lea. | Goal: Development of Wifi or BLE enabled scale to measure the weight of plant pots for an experiment of Anna-Lea. | ||
- | ===== Range Estimation ===== | + | | {{: |
+ | | Anna-Lea' | ||
+ | |||
+ | ===== Weight | ||
The intended pot size has $d = 20\, \mathrm{cm}$ diameter and a volume of $V = 7.5\, \mathrm{L}$. | The intended pot size has $d = 20\, \mathrm{cm}$ diameter and a volume of $V = 7.5\, \mathrm{L}$. | ||
Line 77: | Line 80: | ||
- | ==== First Prototype ==== | + | ===== First Prototype |
- | {{ : | + | {{ : |
- | {{ : | + | {{ : |
+ | {{ : | ||
Hardware: | Hardware: | ||
Line 98: | Line 101: | ||
To keep track of time, a ds3231 real time clock is used. It is programmed to send an alarm to the microcontroller every full hour. | To keep track of time, a ds3231 real time clock is used. It is programmed to send an alarm to the microcontroller every full hour. | ||
Once the alarm is received, the ESP wakes up from its deepsleep state and tries to connect to a wifi network. It then synchronizes the time of the rtc with an ntp server, reads the hx711 adc and sends the measurement to an mqtt broker. From there the data goes to a node red server and is then saved in an influx database. After sending, the microcontroller goes back to its deepsleep state, until its interrupted by the rtc again. | Once the alarm is received, the ESP wakes up from its deepsleep state and tries to connect to a wifi network. It then synchronizes the time of the rtc with an ntp server, reads the hx711 adc and sends the measurement to an mqtt broker. From there the data goes to a node red server and is then saved in an influx database. After sending, the microcontroller goes back to its deepsleep state, until its interrupted by the rtc again. | ||
+ | |{{ : | ||
+ | |Graph over a few days with varying weights| | ||
+ | In our laboratory with a relative stable temperature the reading fluctuated by around 2 grams. | ||
=== Hardware Setup === | === Hardware Setup === | ||
Line 110: | Line 116: | ||
=== Power Consumption === | === Power Consumption === | ||
- | {{ : | + | |
- | {{ : | + | |{{ : |
+ | |Current consumption while measuring and sending is around 80mA for 1.8 seconds| | ||
+ | |||
+ | |{{ : | ||
+ | |Current consumption while in deepsleep is around 9µA| | ||
+ | |||
+ | |||
+ | === Code === | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | === Next Steps === | ||
+ | |||
+ | * bigger and water-resistant plates for the scale | ||
+ | * small pcb (with battery monitoring) and water resistant case for the electronics | ||
+ | * clean up code |
eolab/products/plant_pot_scale.1709126633.txt.gz · Last modified: 2024/02/28 14:23 by henrik.schoofs