Programming the ESP32 — Barduino

This article is part of: embedded-programming.

We have been asked to assemble a Barduino few hours before the lab lockdown due to the coronavirus, in order to be able to experiment with it later at home.

Barduino 2.0 started as a project to have a ESP32 fabacademy compatible board to help the students develope their work on top of it. This board was designed by Eduardo Chamorro Martin with the help of Josep Marti and Oscar Gonzalez in Fab Lab Barcelona 2020.

Barduino 2.0, Gitlab


To use that board with PlatformIO, pio init a new project specifically for the ESP32 chip.

$ pio project init --board esp32-devkitlipo

This command generates the platformio.ini files with the desired values.

platform = espressif32
board = esp32-devkitlipo
framework = arduino



Then, as we can see on the datasheet, the ID of the programmable test LED is 13. We can use it to test if our board and our configuration work properly.

Programmer slider switch

Also, there is a Programmer Slider Switch that changes the behaviour of the chip and tells it wheter it's in programming mode or execution mode. Obviously, we have to turn it to the left, the programming mode, before uploading our program.

Using PIN 13, as seen above.


 int led_in = 13;

 void setup() {
   pinMode(led_in, OUTPUT);

 void loop() {
   digitalWrite(led_in, HIGH);
   digitalWrite(led_in, LOW);

Turn the programming slider switch to the right, in execution mode, press the reset button and the test LED should blink. Olé.

Created 21/03/2020

Updated 21/03/2020