DeepSleep milage?
Posted: Sat Dec 13, 2014 2:25 pm
Hello, all.
I made a short script for measuring DS18S20 temperature, sending it to TCP port 8888 of my laptop and entering deep sleep for 30 seconds.
Everything is fine, except...
I pluged the device to 3.4V power source throuch 2.5ohm resistor (4x10ohm in parallel, smallest I had at home).
I am measuring voltage on such resistors.
I have just a crappy multimeter (costed $17 2 years ago).
The smallest range I can measure is 200mV.
When running the device, the voltage is from 80mV to 170mV - which translates to 32 to 70mA.
However, when entering the deep sleep, the voltage is funny - sometimes it is just 0.1mV - translating to 40uA - just great.
But, sometimes, the voltage during deep sleep stays at 1.6mV - that means 640uA - 16 times the original value.
And sometimes, with no apparent reason, the voltage stays as 2.6mV - 1.04mA.
Of course, my code includes setting the 1-wire line to high impedance input, instead of output, to avoid powering the DS sensor during sleep.
It runs a cycle as described, last 5 measurements are:
1.7mV
1.7mV
3.7mV
0.1mV
2.1mV
I cannot explain the results.
Can anyone else share their experience?
I made a short script for measuring DS18S20 temperature, sending it to TCP port 8888 of my laptop and entering deep sleep for 30 seconds.
Everything is fine, except...
I pluged the device to 3.4V power source throuch 2.5ohm resistor (4x10ohm in parallel, smallest I had at home).
I am measuring voltage on such resistors.
I have just a crappy multimeter (costed $17 2 years ago).
The smallest range I can measure is 200mV.
When running the device, the voltage is from 80mV to 170mV - which translates to 32 to 70mA.
However, when entering the deep sleep, the voltage is funny - sometimes it is just 0.1mV - translating to 40uA - just great.
But, sometimes, the voltage during deep sleep stays at 1.6mV - that means 640uA - 16 times the original value.
And sometimes, with no apparent reason, the voltage stays as 2.6mV - 1.04mA.
Of course, my code includes setting the 1-wire line to high impedance input, instead of output, to avoid powering the DS sensor during sleep.
It runs a cycle as described, last 5 measurements are:
1.7mV
1.7mV
3.7mV
0.1mV
2.1mV
I cannot explain the results.
Can anyone else share their experience?