02Lesson
Robotics Lab: ESP32 DevKit V1 Lesson and Pinout
Select a board in Robotics Lab to see its specifications, pin functions and component guide.
Board overview
Robotics Lab board guide · DOIT · Espressif chip · 2016
A development board built around the ESP-WROOM-32 module: a dual-core processor, Wi-Fi and Bluetooth on a board the size of a finger. You can program it from the Arduino IDE or in MicroPython, and it costs about as much as a couple of sensors. Perfect when your robot needs to talk to a phone or the internet.
- Clock
- 240 MHz
- Flash
- 4 MB
- RAM
- 520 KB
- GPIO pins
- 25
- Logic level
- 3.3 V
- Price
- ≈ $5
Specs
Compare the electrical specs with other Robotics Lab boards. See the hardware references.
- Module
- ESP-WROOM-32 (ESP32-D0WDQ6 chip)
- Processor
- 2 × Xtensa LX6 cores, up to 240 MHz
- RAM
- 520 KB
- Flash memory
- 4 MB
- Wi-Fi
- 802.11 b/g/n, 2.4 GHz
- Bluetooth
- 4.2 Classic + BLE
- Logic level
- 3.3 V (inputs are not 5 V tolerant)
- Pins
- 30, of which 25 are GPIO
- ADC
- 12-bit, 15 inputs
- DAC
- 2 × 8-bit (GPIO25, GPIO26)
- USB
- Micro-USB, CP2102 bridge
- Size
- 51.5 × 28.3 mm
What’s on the board
14 parts match the numbered labels in Robotics Lab. Click one and the camera flies to it.
Strengths and pitfalls
Use these trade-offs when choosing a board in Robotics Lab.
Strengths
- Wi-Fi and Bluetooth are already on board — no extra modules needed
- Two 240 MHz cores and 520 KB of RAM: tens of times more powerful than an Arduino Uno
- PWM on almost any pin, 2 DACs, touch inputs, several UART, I²C and SPI buses
- Works with the Arduino IDE, MicroPython and ESP-IDF
Watch out
- 3.3 V logic: feed a 5 V signal (for example the ECHO pin of an HC-SR04) only through a voltage divider or a level shifter — otherwise the pin will be damaged.
- GPIO34, 35, 36 (VP) and 39 (VN) are inputs only and have no internal pull-up or pull-down resistors.
- ADC2 inputs (D2, D4, D12–D15, D25–D27) cannot be read with analogRead while Wi-Fi is on. Use D32–D35, VP and VN for sensors.
- Strapping pins D2, D5, D12 and D15 affect start-up: if a sensor pulls D12 high at power-on, the board will not boot.
- Power motors and servos from a separate supply: a pin can only give about 20–40 mA, and the 3.3 V regulator is busy feeding the Wi-Fi radio.
Pins
Learn which pins to use on the Robotics Lab workbench.
Power
VIN is the 5 V input (USB 5 V also comes out here). 3V3 is the regulator output for sensors. GND is ground — there are two. Do not feed power into 3V3 and USB at the same time.
Input-only pins
VP (GPIO36), VN (GPIO39), D34 and D35 can only read a signal and have no pull-ups. They are also the best analog inputs: they keep working while Wi-Fi is on.
Analog pins
12-bit ADC: analogRead returns 0…4095. ADC1 (VP, VN, D32–D35) always works, ADC2 only without Wi-Fi. D25 and D26 are true analog outputs (DAC).
Default buses
I²C: SDA = D21, SCL = D22. SPI (VSPI): MOSI = D23, MISO = D19, SCK = D18, SS = D5. UART2: RX2 = GPIO16, TX2 = GPIO17. TX0/RX0 are used by USB.
Strapping pins
D2, D5, D12, D15 (and GPIO0 under the BOOT button) are sampled at power-on to choose the boot mode. You can use them, but external circuits must not pull them at start-up.
Hover over a pin in the Robotics Lab viewer to see its name and function.
- Power
- Ground
- Digital
- Analog
- Buses: UART, I²C, SPI
- Control: RESET, EN, BOOT
- Not connected
First code
Try the Robotics Lab starter example on your physical board.
// The built-in blue LED of the DevKit V1 is connected to GPIO2const int LED = 2;void setup() { Serial.begin(115200); // serial monitor speed: 115200 baud pinMode(LED, OUTPUT); // the pin works as an output}void loop() { digitalWrite(LED, HIGH); // LED on (3.3 V on the pin) Serial.println("Hello from ESP32!"); delay(500); // wait half a second digitalWrite(LED, LOW); // LED off delay(500);}
Where it shines
Use the Robotics Lab workbench to plan the wiring for a project.
- A robot driven from a smartphone over Bluetooth or Wi-Fi
- A rover with its own control web page: the board acts as an access point
- A weather station that sends data to the internet
- Smart home: relays, sensors and notifications on your phone
- A wireless remote for a robot using the ESP-NOW protocol
Board background
See how this hardware fits into the Robotics Lab board collection.
The ESP32 radio handles both Wi-Fi and Bluetooth through the same antenna — the chip switches between them very quickly.
In deep sleep the ESP32 chip itself draws only about 10 µA and wakes up on a timer. This board draws more, because the power LED and the regulator stay on.
The chip has a built-in Hall sensor: it can feel a magnet held close to the metal shield.
Practice with this board
Try the same board in these Robotics Lab activities.
- Inspect the Robotics Lab 3D model to locate a component or connector.
- Try the Robotics Lab component quiz to check what you remember.
- Open the Robotics Lab workbench to simulate your wiring.
Sources
Manufacturer and hardware project documentation.
- Espressif ESP32-WROOM-32 datasheet
Module specifications, wireless features and module pins. The carrier board’s header layout can vary.