3.3 Introduction of ArduinoBlocks.com and ESP32 boards
A. Learning Objectives
- Use ArduinoBlocks.com to program a Wemos D1 board.
- Use onboard LED of D1 board for output. Optional: Use buzzer for output
- Use a multimeter to measure digital output voltage.
B. Notes
B1. Introduction to Arduinoblock.comIMPORTANT NOTE:
The Arduinoblocks connector must be run at the background for program uploading.
B2. Introduction to ESP32
Description
Wemos D1 R32 is ESP32 Based WiFi/Bluetooth Board in Arduino UNO form factor. The UNO form factor lets you use existing Arduino Shields with ESP32 Wireless CPU. All I/O pins are 3.3V.
The ESP32 chip integrates a dual-core processor with 448 KByte ROM, 520 KByte SRAM, 16 KByte SRAM in RTC, 802.11 b/g/n/e/I Wi-Fi, Bluetooth v4.2 BR/EDR & BLE, clocks & Times, abundant peripheral Interfaces and security mechanism.
Software can be developed using many different platforms, including Arduino. It is designed for Generic low power IoT sensor hub, loggers, video steaming for camera, Wi-Fi & Bluetooth enabled devices, Home automation and mesh network applications, aimed at makers, hardware engineers, software engineers and solution provides.
The ESP32 is the most integrated solution for Wi-Fi + Bluetooth applications in the industry with less than 10 external components. ESP32 integrates the antenna switch, RF balun, power amplifier, low noise receive amplifier, filters, and power management modules. As such, the entire solution occupies minimal Printed Circuit Board (PCB) area.
Features
- Standard UNO size and headers
- CPU and Memory: Xtensa® 32-bit LX6 Dua-core processor, up to 600 DMIPS
- 4 MByte SPI Flash
- 448 KByte ROM
- 520 KByte SRAM
- Compact size of 68mm x 53mm x 3.1mm (±0.2mm)
- Supply Voltage: DC 5V to 12V
Technical Specifications
WiFi
- 802.11 b/g/n/e/i
- 802.11 n (2.4 GHz), up to 150 Mbps
- 802.11 e: QoS for wireless multimedia technology.
- WMM-PS, UAPSD
- MPDU and A-MSDU aggregation
- Block ACK
- Fragmentation and Defragmentation
- Automatic Beacon monitoring/scanning
- 802.11 i security features: pre-authentication and TSN
- Wi-Fi Protected Access (WPA)/WPA2/WPA2-Enterprise/Wi-Fi Protected Setup (WPS)
- Infrastructure BSS Station mode/SoftAP mode
- Wi-Fi Direct (P2P), P2P Discovery, P2P Group Owner mode and P2P Power Management
- UMA compliant and certified
- Antenna diversity and selection
Bluetooth
- Compliant with Bluetooth v4.2 BR/EDR and BLE specification
- Class-1, class-2 and class-3 transmitter without external power amplifier
- Enhanced power control
- +10 dBm transmitting power
- NZIF receiver with -98 dBm sensitivity
- Adaptive Frequency Hopping (AFH)
- Standard HCI based on SDIO/SPI/UART ? High speed UART HCI, up to 4 Mbps
- BT 4.2 controller and host stack
- Service Discover Protocol (SDP)
- General Access Profile (GAP)
- Security Manage Protocol (SMP)
- Bluetooth Low Energy (BLE)
- ATT/GATT
- HID
- All GATT-based profile supported
- SPP-Like GATT-based profile
- BLE Beacon
- A2DP/AVRCP/SPP, HSP/HFP, RFCOMM
- CVSD and SBC for audio codec
- Bluetooth Piconet and Scatternet
[!] Notes:
Do NOT use this board with 5V shields or the shields which are not compatible with 3.3V. These can shields permanently damage the board! Use only with 3.3V compatible shields and modules.
WeMos D1 R32 Pinout
ESPRESSIF (乐鑫科技) WEB SITE
ESP32 ENGLISH DATA SHEET | ESP32 CHINESE DATA SHEETC. Coursework
STEP 1: Run connector
Blinking Onboard LED
- Run the ArduinoBlocks-Connector. Don't close the command window. You can minimise the command window.
STEP 2: COM port setting
- Open a web browser. Go to www.arduinoblocks.com.
- Press the "refresh ports" button, and then check the USB COM ports in the pulldown list before plugging the D1 board.
- Plug the D1 board to your desktop computer by a USB cable.
- Browse to check the newly added USB COM port. You may need to press the "refresh ports" button.
- Change the USB port to that newly added USB COM port.
STEP 3: Write your program- Use the teachers' project code for your group: _________
- Write your codes as below.
Remark:
- You can use a multi-meter to measure the DC voltage of Pin 2.
- You can also connect a buzzer to Pin 2.
STEP 4: Save and upload
- Save your program by pressing the "save" button (frequently).
- Upload your program (auto save) by pressing the "upload" button.
- See the result.

