esp8266 data logger stand alone

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
moetaz
Posts: 39
Joined: Sun Oct 31, 2021 11:33 am

esp8266 data logger stand alone

Post by moetaz » Tue Nov 02, 2021 2:52 pm

Hello
i had build Esp8266 stand alone Access point data logger

that can produce chart and tables without any connection to internet

the device take 6000 recorded with time interval 15 min

now i need to
how to calculate the batter capacity
to make this device work for 60 days

i suggest to make the power supply from Lithium coin Battery CR2032 3V-210mAh

need yours advice

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: esp8266 data logger stand alone

Post by Roberthh » Tue Nov 02, 2021 5:06 pm

The battery you will need depends on many factors, which you did not mentions.
The total charge the device takes is current * on_time.
So you say that the device should run for 60 days and take a sample every 15 minutes.
- Does the esp8277 run continously or is it switched off between sampling.
- If switches off, how long does the sampling take?
Examples: The sampling takes 1 minute, then the device is off for 14 minutes. That add to a total on-time of 96 hours in 60 days. So, if your esp8226 consumes 30mA in average, the total capacity is 2400 mAh. In addition, the battery must be able to supply the peak current, which is ~200mA for the ESP8266. A CR2032 coin cell cannot do that. The standard current of that battery is 0.2 mA, which is 1000 times less of what you need.

moetaz
Posts: 39
Joined: Sun Oct 31, 2021 11:33 am

Re: esp8266 data logger stand alone

Post by moetaz » Tue Nov 02, 2021 7:35 pm

in the 14 minute the device doesn't take any sample or reading from sensor

but the access point will be working from day 1 till 60

also what your suggestion

and your suggestion to manage power consumption
also there is one extra factor the average temperature for the device will be 0 - 6 C degree

what your suggestion????

moetaz
Posts: 39
Joined: Sun Oct 31, 2021 11:33 am

Re: esp8266 data logger stand alone

Post by moetaz » Tue Nov 02, 2021 7:44 pm

what about the
battery 12v - 23 amp
"Energizer A23 12 Volt Alkaline Battery "
its capacity 55 mAh

and we add voltage regulator

honestly need suggestion and advices

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: esp8266 data logger stand alone

Post by Roberthh » Tue Nov 02, 2021 8:10 pm

Ok. So the ESP8266 stays active. If it is like the one I have here, it consumes about 25 mA when idling. So the total energy is 36000 mAh or 36Ah. For that, you need a huge battery, like a USB power bank.

The Energizer A23 12 Volt Alkaline Battery is a small battery, used for remote controls. No capacity, small current delivery, rated at 0,6 mA. A regulator would just consume more energy.

moetaz
Posts: 39
Joined: Sun Oct 31, 2021 11:33 am

Re: esp8266 data logger stand alone

Post by moetaz » Tue Nov 02, 2021 8:23 pm

possible to explain to me the calculation

how you do this calculation

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: esp8266 data logger stand alone

Post by Roberthh » Tue Nov 02, 2021 8:32 pm

current * time = capacity
25mA * (24 * 60)h = 36000 mAh

moetaz
Posts: 39
Joined: Sun Oct 31, 2021 11:33 am

Re: esp8266 data logger stand alone

Post by moetaz » Tue Nov 02, 2021 8:45 pm

what about deep sleep mode

will have any effect here

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: esp8266 data logger stand alone

Post by davef » Tue Nov 02, 2021 8:54 pm

Do you really need the access point running 24/7? Could you cope with being able to get the data off the remote say every hour or ?

moetaz
Posts: 39
Joined: Sun Oct 31, 2021 11:33 am

Re: esp8266 data logger stand alone

Post by moetaz » Tue Nov 02, 2021 8:55 pm

Deep-sleep. f you want to use an external power supply and save the most energy possible, go with the deep-sleep mode! The ESP8266 power consumption reduces in theory to 20µA * 3.3V = 66µW. Your external battery with 1000mAh will last a lot longer

Post Reply