Learn how to program the ESP32 and ESP8266 with MicroPython, a re-implementation of Python 3 programming language targeted for microcontrollers. This is one of the easiest ways to program your ESP32/ESP8266 boards!
We are currently running an early Black Friday Deal on our MicroPython eBook. You can grab it with a 23% discount during the next few days (the discount ends when the timer below hits zero).
What’s inside the eBook?
The “MicroPython Programming with ESP32 and ESP8266” is an eBook with 6 Modules and 360 pages long. Continue reading this page for a detailed Table of Contents…
The eBook covers MicroPython with a practical approach:
- Teaches you the fundamental concepts of MicroPython without going too deep into a lot of theoretical concepts
- Explains the meaning of each line of code, so that you’re able to write your own scripts later on
- Shows a faster and easier way to program the ESP32 and ESP8266 boards for IoT applications
- Is suitable for those new to electronics and programming that want to build projects with real-world applications
We also provide all the resources to build the projects: downloadable code, schematics, and parts list.
Additionally, you get access to our private Forum and Facebook group to ask questions and interact with other members.
What You’ll Learn
- Program the ESP32/ESP8266 in MicroPython
- Flash ESP32/ESP8266 with MicroPython firmware
- Getting Started with Thonny IDE
- Control the ESP32/ESP8266 GPIOs and use its functionalities
- Learn how to use interrupts, timers, and deep sleep
- Understand sensors and basic electronics
- Build web servers to publish sensor data and control GPIOs
- Send HTTP requests to third-party services
- Use MQTT to communicate between boards
- Communicate with other platforms using MQTT
- Control DC motors, addressable RGB LED strips, and OLED displays
- Set the ESP32 as a BLE Central Device that holds data that you can read
Module #1: Getting Started with MicroPython on ESP32 and ESP8266
- Introducing MicroPython
- Introducing the ESP8266 Board
- Introducing the ESP32 Board
- Installing Thonny IDE
- Installing MicroPython Firmware
- Running Your First Program
Module #2: MicroPython Programming Basics
- Basic MicroPython Syntax
- Functions in MicroPython
- Classes, Objects, and Modules
- String Formatting
Module #3: Interacting with GPIOs
- Blinking an LED
- Digital Inputs and Digital Outputs
- Analog Inputs
- PWM – Pulse Width Modulation
- ESP32 Touch Pins
- Interrupts
- Timers
- Timer Interrupts
- Deep Sleep and Wake Up Sources
Module #4: Web Servers and HTTP Clients
- Web Server Introduction
- “Hello, World!” Web Server
- Web Server – Control Outputs
- Web Server with Slider Switch
- Web Server – Display Temperature and Humidity Readings
- Send Sensor Readings via Email
- Getting Data using an API (OpenWeatherMap)
Module #5: MQTT Communication Protocol
- Introducing MQTT
- Installing Mosquitto MQTT Broker on a Raspberry Pi
- MQTT – Establishing a Two-way Communication
- Installing Node-RED and Node-RED Dashboard on a Raspberry Pi
- MQTT – Connect ESP32/ESP8266 to Node-RED
Module #6: Other Components: OLED, DC Motor, WS2812B RGB LED Strip
- Display data on OLED Display
- Control a DC Motor
- Control an Addressable RGB LED Strip
Module #7: Bluetooth Low Energy
- Introducing Bluetooth with the ESP32
- The ESP32 as a BLE Central Device
Invitation to Join our Private Forum!
This eBook comes with an opportunity to join our private Forum of like-minded people where you can ask questions about the eBook or other related subjects. You’ll get direct help from Rui and Sara or from other active members of the community.
Who is this eBook for?
For those who want to quickly learn to program microcontrollers (ESP32 and ESP8266) without the burden of having to learn more “complex/advanced” programming languages like C/C++ used in Arduino IDE. MicroPython is suitable for complete beginners when it comes to programming microcontrollers.
If you’re used to program with Arduino programming language, you’ll learn an easier way to program your boards. Additionally, you’ll learn Python fundamental concepts that can be useful in other application fields. By using a high-level programming language, you can make complex programs with just a few lines of code.
With MicroPython, making IoT applications for ESP32 and ESP8266 has never been easier.
Download the eBook
- 2nd Edition Released – June 17, 2024
- 7 Modules (360 pages PDF eBook)
- Source Code
- Schematic Diagrams
- Parts List
- Unlimited Updates
- Exclusive access to a Private Forum
- Access to our Facebook group
- English language
- Created by Rui Santos and Sara Santos
GET THE EBOOK | $35 $27 USD »
Click here to get the eBook | $35 $27 USD
We are currently running an early Black Friday Deal on our MicroPython eBook. You can grab it with a 23% discount during the next few days (the discount ends when the timer below hits zero).
Note: after your purchase, you receive an email with a username and password that you use to access the members area and download the PDF eBook.
Have questions? Email me at https://randomnerdtutorials.com/support anytime for any reason.
You won’t regret it. My 60 day money back guarantee backs up every word in this message. Proceed with confidence. See you inside,
-Rui Santos
Frequently Asked Questions
Meet the Authors
See what others are saying
Hi Rui, I was pleased to receive your email regarding MicroPython on ESP32. I am sure many of your readers are asking should I use MicroPython instead of Arduino? My answer: use both(…). Your courses are so good, we use them at the commercial level, not just the hobbyist level. Thanks for the good work.
Mitch Sonian
I have been doing your courses on ESP8266, ESP32, and Home automation, and they are really excellent. It seems that you have taken lots of efforts to make and explain even very difficult topics in a very simple and easy to understand way. Congratulations for your valuable work.
Dattatraya Apte
Thank you Rui for everything you’ve done for ESP8266 projecteers. You and your site have been my “go-to” for a few years whenever I need advice or some detail of a component.
DWilliams
Hi, I love your eBooks and courses – everything has worked perfectly. I have lots of new ideas. Thanks!
John Benson
This is one of the best sites on the net, period. I recently purchased your course (Learn ESP32 with Arduino IDE) and I can’t say enough about it. It simply let me bypass hours of aggravation. Clear instruction and great example code. Thanks again.
Jay W.
Hello Sir. You are such an inspiring person. I really appreciate the effort you put into your projects. Because of RNT I have successfully built my first DHT11 circuit with my new ESP32 and I am very proud of it.
Bhavish Dussoye
AS SEEN ON…