Smart Energy Meter Using ESP32 & PZEM004T V3.0 - Flashing ESP32 With Tasmota

by AmruthKumarSala in Circuits > Microcontrollers

107 Views, 0 Favorites, 0 Comments

Smart Energy Meter Using ESP32 & PZEM004T V3.0 - Flashing ESP32 With Tasmota

SmartEnergyMeterUsingESP32AndTasmota.png
ESP32 Pinout Diagram.png
logo-blue.png
IMG_20250211_205058.jpg
IMG_20250211_212247.jpg
IMG_20250211_211745.jpg
IMG_20250211_211823.jpg
IMG_20250211_212038.jpg
IMG_20250211_212002.jpg

This article is the first of several that will be published soon. The main aim is to build a "Smart Energy Monitoring Solution for Electrical Appliances/Loads" using the ESP32 Development Board and Tasmota. 

I would suggest all readers have their notes on a book. It will help a long way. The action plan written in the book has to be the first step.

Supplies

IMG_20250212_084113.jpg
IMG_20250212_084043.jpg
IMG_20250212_083959.jpg
IMG_20250212_084018.jpg
USB-MicroPlugConnector.jpg
  1. A Laptop (or) a PC with MS Windows (or) CentOS (or) any Operating System of the user's choice
  2. ESP32 Development Board
  3. Micro USB Cable

Preparing ESP32 to Install Tasmota

IMG_20250212_091556.jpg
002.png
001.png

The following steps should help the reader prepare the ESP32 Development board to install Tasmota.

  1. Connect ESP32 to Laptop/PC
  2. Identify the COM port to which the ESP32 is connected
  3. Open an Internet Browser of your choice and browse https://tasmota.github.io/docs/
  4. Select "Web Installer"

Proceed with the next steps.

Tasmota Web Installer Steps. How to Handle "Error & Installation Failure" Messages

003.png
004.png
005.png
006.png
007.png
008.png
009.png
010.png
011.png
012.png
IMG_20250212_082331.jpg
013.png
014.png
015.png

On selection of "Web Installer", the reader of this article should be able to view the following screens:

  1. "Install Tasmota" screen. The browser navigates to https://tasmota.github.io/install/
  2. Pan down the same page to see a "Connect" button. Select it to move further.
  3. It is not time to connect to your serial port (COM5 in this case. Please note that the port number may be different in your case.
  4. Select the listed ("CP2102 USB to UART Bridge Controller (COM5) - Paired" in this case) and hit "Connect".
  5. You may encounter an error (Serial Port is not ready). Close any other application using it and try again.
  6. Repeat the steps in S.No. 2 & 3. If everything goes well, you will be prompted to "INSTALL TASMOTA (ENGLISH)"
  7. You will also be prompted to "Erase device: Do you want to erase the device before installing Tasmota (English)? All data on the device will be lost." A word of caution: If you have any other code on your ESP32, it is better to back it up before proceeding.
  8. "Confirm Installation - Do you want to install Tasmota (English)? All data on the device will be erased." will be the next screen. Hit "INSTALL" to proceed further.
  9. You may also come across "Installation Failed - Failed to initialize. Try resetting your device or holding the BOOT button while clicking INSTALL". Hit "BACK" to resolve any issues and proceed further. In my case, I just left the board without holding the BOOT button. I hit the "BACK" button and continued the installation (process explained in previous steps) by holding the "BOOT" button on ESP32.

How Simple Is Tasmota Installation? & Basic Configuration

016.png
017.png
018.png
019.png
020.png
021.png
022.png
023.png
024.png
025.png
026.png
027.png
028.png
029.png
030.png
031.png
032.png
033.png
034.png

The installation is simple. You will come across the following steps:

  1. You will receive a message "Installing - This will take 2 minutes. Keep this page visible to prevent slow down".
  2. On successful completion, "Installation Complete" appears. Hit "NEXT" to continue.
  3. On completion of the installation, you are suggested to configure Wi-Fi. Proceed with the next steps by entering the network SSID and password for your home/office Wi-Fi router. In my case the Network SSID is "Smaragdine 2G".
  4. On successful connection to Wi-Fi, the Tasmota web interface will throw a message "Device Connected to the network". You may proceed by selecting "VISIT DEVICE".
  5. "The connection to 192.168.29.195 is not secure" > Hit on "Continue to site" to continue. You will be redirected to the Tasmota Home Screen.

Note: While you move the cursor over "VISIT DEVICE", you can observe an IP address in the bottom left corner of your web page. You will be taken to this IP address by selecting "VISIT DEVICE". In my case, my home router has allocated an IP address: 192.168.29.195.

Readers of this article are suggested to take help from the screenshots provided in this section to understand the Tasmota environment.

Note: An ESP32 is a microcontroller chip with a built-in 2.4 GHz Wi-Fi radio. It can connect to wireless networks operating on the 2.4 GHz frequency band. ESP32 is designed to work with standard 2.4 GHz Wi-Fi networks commonly used in most homes and devices.

Support a Good Cause!

PhonePeQR_Union Bank Of India - 48260.png
5c5ee68c-9f88-4b25-994e-042a47c9377b_GooglePay_QR.png

I wish to publish more important and useful projects (For Undergraduates and Graduates of different disciplines) on this platform. I incur heavy expenses to purchase different microcontrollers, electronic items, tools, and miscellaneous items required for practically performing these experiments, and explaining them step-by-step on different online platforms.

There is no obligation. If the readers feel my articles are important and good, please express your support in all the forms you can.

Please keep yourselves tuned to my next articles.

Readers can WhatsApp me at +91 9398472594 for any questions.