MicroPython Script to View ESP32/ESP8266 Hardware Info

Last Updated on July 3, 2025

To develop robust Embedded System, IoT device we need to know about all the specifications of main microcontroller chip, because limited resources like Memory, Operating Frequency, Flash free space., may bring troubles while deploying firmware into it.




Either you develop simple or complex project using microcontroller, just analyze its hardware info before and after development, by this way you can utilize and plan resources inside microcontroller.

Here is the Quick MicroPython Script to View ESP32/ESP8266 Hardware Info. It will give result of memory size and available size, CPU frequency, Flash size, PSRAM and MAC address etc. Checking all these details before jump into project development is very useful, especially when you are developing resource heavy applications like image processing, Wi-Fi streaming, or storing large amounts of sensor data. This quick diagnostic script helps ensure you are using the right board with enough memory and capabilities, and also helps avoid confusion when switching between different ESP modules and development boards. It is also a handy way to confirm whether features like PSRAM are truly available on your module, which is often a point of confusion about ESP chips.

Just Connect ESP32 or ESP8266 development board with computer using USB cable and then open Thonny IDE to paste the following MicroPython script and run to view the hardware info result. If you are new to use Thonny IDE and ESP32 read here to get started. You can use this script to view hardware info of Raspberry pi pico board also.

MicroPython Script for Hardware Info

Expected output in Shell

If you are working with multiple ESP development boards and microcontrollers, it’s always better to keep this script ready. Just upload it and run before starting any serious work, especially when dealing with limited resource of boards. This small step can save a lot of trouble later.




Leave a Reply

Your email address will not be published. Required fields are marked *