Video, deep sleep power consumption in the sparkfun ESP 32 thing. In this video, we will first measure the deep sleep power consumption of the sparkfun ESP 32 thing. Then, we will discuss the various reasons why the sparkfun ESP 32 thing is not a good option for deep state projects. And finally, we will conclude the course. The ESP 32 sparkfun thing is used in this course as it is ideal for instruction purposes. Before we measure or discuss the power consumption of the sparkfun ESP 32 thing.
Download the ESP 32 data sheet given in the resources section and go to Page Number 20 which comes under 3.7 RTC and low power management section. The section explains about the different power modes, sleep patterns and expected power consumption during different power modes. When you look At the power consumption table, it's clear that the expected power consumption during deep sleep is anywhere from between 10 micro amperes to 0.15 milliampere. When the boat is in normal mode, that is, when it is in modern sleep mode, the expected power consumption as around three milli amperes to 20 milli amperes based on the speed of the CPU, thus we know what to expect. So, shall we start measuring the current consumption in order to measure the power consumption of the sparkfun ESP 32 thing we have to insert the measuring device here it has a digital multimeter in between the power source and the board.
It has just like a pressure gouge inserted in a pipe along with the flow of the water. When using a multimeter to measure current, the only way it can be used to detect the level of current flowing is to break into the circuit So that the current passes through the meter. In our case, we will connect the multimeter probes in between the positive terminal of the battery and the bad pin of the board. To make the measurement process simple, I have designed a simple PCB prototype abode. We can mount the sparkfun ESP 32 board easily. We can also easily connect the battery to using the terminal block connectors.
For ease of measurement, I have sold the two main headers in between the positive terminal and a V bat pin of the board. First let us upload a normal blink sketch to see normal power consumption. Now connect the battery and the boat on to the prototype board. Set the multimeter to the appropriate expected current range and place the two probes on the tube main header pins. You may see a current value anywhere between 35 mil amperes to 70 milli amperes. Now, upload the timer wake up deep sleep sketch from the deep sleep examples and reconnect everything on the prototype Bode.
Now, you can observe that during the five second interval, when the sparkfun ESP 32 thing goes to deep sleep, the power consumption is anywhere between two milli amperes to three milli amperes. So, when you compare the observed results were the expected results, you can conclude that the values are nowhere near the rated power consumption in the data sheet. So, why is this happening that the board manufacturer cheat you not necessarily see, the truth is that the ESP 32 chip itself is only consuming around the rated deep sleep power consumption. The sparkfun ESP 32 thing has many other components that consume a lot of power. For example, The red power LED takes anywhere between 1.4 milliampere hours to two milli amperes of current, which is the biggest cause of this current drop. The sparkfun ESP 32 thing includes a battery management chip named MCP 73831.
Checking out its datasheet reveals that it takes around 25 to 50 micro amperes of current during the idle state. Furthermore, there is a design flaw in the sparkfun ESP 32 thing that does not allow the SPI flash memory to go into standby mode. This is because of a missing pull up resistor for the chip select pin of the SPI flash memory. This is why the sparkfun ESP 32 thing is not a good option for deep sleep projects. The best solution is to get the ESP 32 chip independently and program it but for this you will need separate programming tools The next best solution is to use an ESP 32 Development Board specifically made to be deep sleep compatible. Summary.
In this video, we have covered the following topics deep sleep power consumption measurement for the sparkfun ESP 32 thing, reasons to not choose sparkfun ESP 32 thing for deep sleep applications. Section summary. In this section we have covered the following topics. What are the sleep modes in a sparkfun ESP 32 thing implementing deep sleep in the sparkfun ESP 32 thing implementing external wakeup sources for deep sleep in a sparkfun ESP 32 thing. implementing an O led NTP clock with deep sleep using sparkfun ESP 32 thing. Working with a ul PE core processor in the Arduino ID implementing you will be coprocessor wakeup from deep Sleep in the ESP 32.
Understanding that you will pay coprocessor assembly code in the ESP 32. Deep Sleep power consumption in the sparkfun ESP 32 thing. Congratulations on successfully completing the advanced ESP 32 cores remake Ademi. In this course we cover the following topics. One, a deeper insight into the ESP 32 features to or the and programming in ESP 30 233 arctos on the ESP 32 for deep sleep in the ESP 32. And with that we come to the very end of this course and see you in our next course.
And don't forget, I have put in considerable effort to make this course useful to you. Please leave a detailed feedback of this course. This will motivate me to bring more such courses to you the learner and make it me you the student always comes first. We are in business to serve you. Good luck.