An IoT Mastery Project guide series
Upload and test the new project
In this article, I’ll show you how to upload a PlatformIO project to your ESP32 board and test it.
In the previous article, I showed you how to create a new PlatformIO project, configure it, and add some simple working code.
In this article, I’ll show you how to upload it to your ESP32 board and test it.
Now is a good time to connect the ESP32 board to the computer.
I'm using my custom ESP32 dev kit breakout board here to make things easier and avoid jumper wires.
I have connected the BME280 via one of the I2C headers.
I am not using the TFT screen in this experiment, so I've placed my gadget with the TFT screen down.
Click on the upload button (the one with the right arrow), to do the upload.
You may need to press and hold the button marked “BOOT” or “OOI” on your ESP32 board if you are having trouble starting the upload.
The firmware should upload without any issues. When the process is complete, you will see the “SUCCESS” message in the monitor.
The board will reset automatically after the upload is complete. successful
To see the output from the sensor, turn on the Serial monitor. Click on this power plug button (1).
You can see the text, coming from the program running on the gadget, scrolling in the serial monitor.
This concludes successfully this first iteration of our process to convert the project from Arduino IDE to PlatformIO.
What we have now is a project that is configured, and contains two simple functions on which we will build on in the remainder of this project.
This project consists of code in a single file.
In the next couple of articles, I’ll show you how to set up the Git repository, and how to split our program into multiple files.
Ready for some serious learning?
A new learning adventure awaits you.
Create an application that will stretch your existing knowledge and skills.
ESP32 Unleashed is a project course
This course is perfect for people familiar with the ESP32, especially graduates of ESP32 For Busy People.
It is a guided project, designed to teach you how to use modern tools to create modern embedded applications based on the ESP32.
Just click on the big red button to learn more.
Jump to another article
1: Why use PlatformIO to program the ESP32?
2: How to install PlatformIO and MS Code (Mac OS)
3: How to install PlatformIO and MS Code (Windows 10)
4: Set up an ESP32 project in PlatformIO
5: Upload and test the new project
6: Create the Git repository
7: Split the program into two files
8: Test the multi-file project
9: How to use Git version control