Week 4, Embedded Programming
Table of Contents
- Overview
- Resources
- Group Assignment
- Datasheet
- LED Blink
- For Final Project
- Files
Overview
TEXT
Resources
- TEXT
Group Assignment
This is the group assignment.
Datasheet
I'll be using XIAO-ESP32-C3 as my board.
| Parameter | Description |
|---|---|
| Processor | ESP32-C3 SoC RISC-V single-core 32-bit chip processor with a four-stage pipeline that operates at up to 160 MHz |
| Wireless | Complete 2.4GHz Wi-Fi subsystem Bluetooth Low Energy 5.0/ Bluetooth Mesh |
| On-chip Memory | 400KB SRAM & 4MB Flash |
| Interface | 1x UART | 1x IIC | 1x SPI | 11x GPIO(PWM) | 4x ADC | 1x Reset button | 1x Boot button |
| Dimensions | 21 x 17.8mm |
| Power(Typ.) | Max 3.3V Output Current: 500mA | Test Condition: BAT Pin Input @ 3.8V | Source Capability: 3A | Charging current: 380mA(Fast) / 40mA(Trickle) | Input voltage (VIN): 5V | Input voltage (BAT): 3.7V |
| Deep Sleep Power Consumption | Deep Sleep Mode: 44 μA |
| Wi-Fi Enabled Power Consumption | Active Mode: 75 mA | Modem-sleep Mode: 25 mA | Light-sleep Mode: 4 mA |
| BLE Enabled Power Consumption | Modem-sleep Mode: 27 mA | Light-sleep Mode: 10 mA |
| Working Temperature | -40°C ~ 85°C |
Pins:
Key Features:
- Powerful CPU: ESP32-C3, 32bit RISC-V singlecore processor that operates at up to 160 MHz
- Complete WiFi subsystem: Complies with IEEE 802.11b/g/n protocol and supports Station mode, SoftAP mode, SoftAP + Station mode, and promiscuous mode
- Bluetooth LE subsystem: Supports features of Bluetooth 5 and Bluetooth mesh
- Ultra-Low Power: Deep sleep power consumption is about 43μA
- Better RF performance: External RF antenna included
- Battery charging chip: Supports lithium battery charge and discharge management
- Rich on-chip resources: 400KB of SRAM, and 4MB of on-board flash memory
- Ultra small size: As small as a thumb(21x17.8mm) XIAO series classic form-factor for wearable devices and small projects
- Reliable security features: Cryptographic hardware accelerators that support AES-128/256, Hash, RSA, HMAC, digital signature and secure boot
- Rich interfaces: 1xI2C, 1xSPI, 2xUART, 11xGPIO(PWM), 4xADC, 1xJTAG bonding pad interface
- Single-sided components, surface mounting design
Using XIAO-ESP32-C3
Download Arduino IDE from here.
Navigate here:
Paste "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json" into the shown location.
Navigate to the boards manager tab and download esp32 by Espressif Systems.
LED Blink
I'll first create code for blinking an LED.
Wrote this code for blinking the LED.
I later realized that I accidentally put ":" instead of ";" in some places. If you're writing this code, just replace the ":" with ";".
Connected the XIAO-ESP32-C3 to my computer.
Clicked here to connect the IDE to the board.
Selected the board and the port.
Changed the code because the legs of the LED wasn't long enough.
Pressed upload:
For Final Project
Idea
TEXT
Process
TEXT
Files
TEXT