If you are considering to battery power your device, it is good to know how long your sensor can run. This week I checked out my wemos' power consumption. I used an arduino mega to power my wemo since I do not have an external 5v power supply. I loaded a code which simply sends a mqtt message every 5 seconds. The average current is 0.073A as seen in the photo below.
Let's calculate the duration of the life of our sensor. The batteries I know are around 2600mAh. So,
Time can last = 2600mAh / 73mA
= 35.616 hours
Note: This measurement is when the wemo is awake all the time. To optimise the battery life, you should sleep the wemo when it is not sensing data or sending data.
No comments:
Post a Comment