ESP32 How to start using this device
|
Setup
|
Basic architecture
|
Purely Optional SPI (for SD card)
|
✅ Parts List
(click image to locate the correct model)
|
InstallationHow to get this running simply and quicklyConnect the board as a serial port of your PC via a regular USB cable Unpack and install the serial driver for this board, using the CH3400 chip serial driver [ Source]
It will need these parameters in its platformio.ini
|
|
; PlatformIO Project Configuration File
; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags ; Library options: dependencies, extra library storages ; Advanced options: extra scripting ; ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html [env:fm-devkit] platform = espressif32 board = fm-devkit framework = arduino monitor_speed = 115200 upload_port = COM8 |
ESP32D Pin mapping
(click table for installable program guide code)
|
Notes:
Pins VP (GPIO36), VN (GPIO39), D34 (GPIO34), D35 (GPIO35), D32, and D33 are ADC-capable input-only pins. They cannot be used as digital outputs. Pins like D25 and D26 have DAC (digital-to-analog converter) capability. Pins labelled TXD/RXD correspond to the UART serial pins. Pins like D2 (GPIO2) often have an onboard LED on some ESP32 boards. EN is not a GPIO pin; it's the enable (reset) pin. Summary usage: Use the GPIO numbers in code, e.g., digitalRead(34) or digitalWrite(2, HIGH). Do not to use input-only ADC pins as outputs. You can use most of the pins for PWM, SPI, I2C, UART, or digital IO as shown. max GPIO output 12 ma per pin, Use resistors when driving LEDs (eg. 220-330 Ohms). max total 120 ma Input consumption ~50 ľA typical No pin tolerates < 0 V or > 3.6 V |
|
Sample program [click on it to access raw code]
Save it as main.cpp for your project Enter your ssid and password Build and upload The light will flash till wifi is connected In the monitor [ctrl+Alt+s] your IP is shown In the browser enter HTTP://<IP>/status |