User Tools

Site Tools


proiecte:environment-monitoring

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
proiecte:environment-monitoring [2018/06/07 16:33]
cristian.cocioaba [Nodes power consumption]
proiecte:environment-monitoring [2018/06/07 16:37] (current)
cristian.cocioaba headers
Line 60: Line 60:
  
 ===== Gathering data ===== ===== Gathering data =====
-=== Temperature and humidity ===+==== Temperature and humidity ====
  
 <code cpp> <code cpp>
Line 79: Line 79:
 </code> </code>
  
-=== Battery ===+==== Battery ====
 <code cpp> <code cpp>
 typedef float sensor_battery_t; typedef float sensor_battery_t;
Line 85: Line 85:
  
 ===== Usage === ===== Usage ===
-=== Software serial example on Sparrow ===+==== Software serial example on Sparrow ====
 <code cpp> <code cpp>
 #include <SoftwareSerial.h> #include <SoftwareSerial.h>
Line 134: Line 134:
 Although both protocols operate at 2.4 GHz frequency, 802.15.4 is low-speed and low-rate and ATmega128RFA1 has Ultra Low Power consumption as we can see below. Although both protocols operate at 2.4 GHz frequency, 802.15.4 is low-speed and low-rate and ATmega128RFA1 has Ultra Low Power consumption as we can see below.
  
-== ATmega128RFA1 power consumption ==+=== ATmega128RFA1 power consumption ===
  
-{{ :proiecte:atmega128rfa1_power_consumption.png?500 |}}+{{:proiecte:atmega128rfa1_power_consumption.png?500|}}
  
-== ESP8266 power consumption when radio is on ==+=== ESP8266 power consumption when radio is on ===
  
 In contrast, ESP8266 has more processing power and together with the power required by the bandwidth and data rate of Wi-Fi, it utilizes almost 10 times more energy, as we can see below. In contrast, ESP8266 has more processing power and together with the power required by the bandwidth and data rate of Wi-Fi, it utilizes almost 10 times more energy, as we can see below.
  
-{{ :proiecte:esp-power-consumption_radio.png?500 |}}+{{:proiecte:esp-power-consumption_radio.png?500|}}
  
 The ESP8266 microcontroller provides 3 configurable sleep modes, which can be configured as required by each application: The ESP8266 microcontroller provides 3 configurable sleep modes, which can be configured as required by each application:
Line 149: Line 149:
 • Deep-sleep • Deep-sleep
  
-{{ :proiecte:esp-sleep-times.png?500 |}}+{{:proiecte:esp-sleep-times.png?500|}}
  
 ===== ESP8266 measured power consumption ===== ===== ESP8266 measured power consumption =====
Line 163: Line 163:
 The final power peak is the HTTP request, which varies between 90mA to 200mA. The final power peak is the HTTP request, which varies between 90mA to 200mA.
  
-{{ :proiecte:screenshot_11.png?500 |}}+{{:proiecte:screenshot_11.png?500|}}
  
 The average current consumption for the ESP when running this test program in different states can be seen in the table below: The average current consumption for the ESP when running this test program in different states can be seen in the table below:
  
-{{ :proiecte:esp-measured-power-consumption.png?500 |}}+{{:proiecte:esp-measured-power-consumption.png?500|}}
  
 There were also peeks of power randomly occurring during data transmission, which varies from 100mA to even 300 mA. Either there was an error at the measurements, or the ESP needed to send a stronger signal. The maximum length of these peaks was around 0.05 seconds.  There were also peeks of power randomly occurring during data transmission, which varies from 100mA to even 300 mA. Either there was an error at the measurements, or the ESP needed to send a stronger signal. The maximum length of these peaks was around 0.05 seconds. 
Line 185: Line 185:
  
 This a good improvement over the previous consumption when running continuously, but it can still be improved. This a good improvement over the previous consumption when running continuously, but it can still be improved.
 +
 ===== Optimizing power consumption ===== ===== Optimizing power consumption =====
  
Line 222: Line 223:
 As we can see in the figure below, the first peak was eliminated, and the connection time was reduced. As we can see in the figure below, the first peak was eliminated, and the connection time was reduced.
  
-{{ :proiecte:screenshot_15.png?500 |}}+{{:proiecte:screenshot_15.png?500|}}
  
 The total power consumption for a cycle is now down to: The total power consumption for a cycle is now down to:
proiecte/environment-monitoring.1528378415.txt.gz · Last modified: 2018/06/07 16:33 by cristian.cocioaba