User Tools

Site Tools


eolab:products:plant_pot_scale

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eolab:products:plant_pot_scale [2024/02/28 14:25] – [Power Consumption] henrik.schoofseolab: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 =====+| {{:eolab:products:img_5570.jpeg?direct&500|}} | 
 +| Anna-Lea's Irrigation Experiment in the Greenhouse on Campus Kleve. | 
 + 
 +===== Weight Range Estimation =====
  
 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 =====
  
  
-{{ :eolab:products:img_20240227_145802.jpg?800 |}} +{{ :eolab:products:img_20240227_145802.jpg?600 |}} 
-{{ :eolab:products:img_20240228_135045.jpg?800 |}} +{{ :eolab:products:img_20240228_135045.jpg?600 |}} 
 +{{ :eolab:products:img_20240510_160420.jpg?600 |}}
  
 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. 
 +|{{ :eolab:products:screenshot_from_2024-02-28_14-14-05.png?800 |}}|
 +|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: + 
-{{ :eolab:products:screenshot_from_2024-02-28_14-18-35.png?800 | current consumption while measuring and sending}} +|{{ :eolab:products:screenshot_from_2024-02-28_14-18-35.png?800 | current consumption while measuring and sending}}| 
-Current consumption while in deepsleep is around 9µA: +|Current consumption while measuring and sending is around 80mA for 1.8 seconds| 
-{{ :eolab:products:screenshot_from_2024-02-28_14-18-13.png?800 | current consumption while sleeping}}+ 
 +|{{ :eolab:products:screenshot_from_2024-02-28_14-18-13.png?800 | current consumption while sleeping}}
 +|Current consumption while in deepsleep is around 9µA| 
 + 
 + 
 +=== Code === 
 + 
 +[[https://github.com/hschoofs/IoT-Scale]]   
 + 
 +[[https://weather.eolab.de/grafana/public-dashboards/811b59f2dbd74ef4a00d4d77dfb7fc93?orgId=1|Dashboard]] 
 +=== 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.1709126743.txt.gz · Last modified: 2024/02/28 14:25 by henrik.schoofs