Guide · Arduino and ESP32

Arduino and ESP32 – Learning Guide

Arduino and ESP32 are platforms for learning electronics and programming microcontrollers. Arduino is simple and ideal for getting started, while the ESP32 adds Wi-Fi, Bluetooth, more memory and higher speed.

Programs are written in a language similar to C/C++, in the Arduino IDE environment.

  • Primary and secondary school
  • Electronics
  • Examples in C/C++
Safety: do not power motors and pumps directly from a pin of the board – use a driver or a relay and a separate power supply.

Some lessons linked below are available only in Serbian for now. They are marked (SR).

1 Beginner level

The first programs: LED, button, sound, display and simple sensors – first on the Arduino, then on the ESP32.

Arduino

ESP32

2 Intermediate level: motors and sensors

A DC motor, a relay and a pump, a servo motor on the ESP32, an accelerometer, a gyroscope and a magnetometer.

Arduino

ESP32

3 Projects and the review test

Several parts in one device: watering the garden, a barrier and radar, a smart classroom – and a knowledge check at the end.

Arduino

ESP32

Knowledge check

4 Networks and the Internet of Things

The ESP32 can connect to Wi-Fi and send data.

Internet of Things (IoT)

How connected devices exchange data.

Open lesson →
Coming soon

ESP32 and a Wi-Fi web server

Showing sensor values on a web page made by the ESP32.

Coming soon

I2C and SPI communication

Connecting displays and sensors over buses.

✎ A short example

Reading an analog sensor on pin A0 and printing it to the Serial Monitor.

int value = 0;

void setup() {
    Serial.begin(9600);   // start serial communication
}

void loop() {
    value = analogRead(A0);   // value from 0 to 1023
    Serial.println(value);
    delay(500);               // pause of half a second
}