The Adafruit QT Py ESP32 Pico is a compact microcontroller board powered by the ESP32 chip. It is designed for seamless integration with a wide range of sensors and peripherals, making it an excellent choice for Internet of Things (IoT) projects. With built-in Wi-Fi and Bluetooth capabilities, this board enables wireless communication and control, making it suitable for smart home devices, wearable technology, and other connected applications.
The Adafruit QT Py ESP32 Pico is packed with features that make it versatile and powerful for various applications. Below are its key technical details:
Specification | Value |
---|---|
Microcontroller | ESP32 Pico (dual-core, 32-bit Xtensa LX6) |
Clock Speed | Up to 240 MHz |
Flash Memory | 4 MB |
SRAM | 520 KB |
Wi-Fi | 802.11 b/g/n (2.4 GHz) |
Bluetooth | Bluetooth Classic and BLE (v4.2) |
Operating Voltage | 3.3V |
Input Voltage (USB-C) | 5V |
GPIO Pins | 13 (multi-function) |
Communication Interfaces | I2C, SPI, UART |
ADC Channels | 6 |
PWM Outputs | 8 |
Dimensions | 22.9 mm x 17.8 mm |
The Adafruit QT Py ESP32 Pico features a compact pinout. Below is the pin configuration:
Pin Name | Function(s) | Description |
---|---|---|
3V3 | Power Output | 3.3V output for powering external components. |
GND | Ground | Common ground for the circuit. |
A0 | ADC, GPIO | Analog input or digital GPIO. |
A1 | ADC, GPIO | Analog input or digital GPIO. |
SDA | I2C Data | I2C data line (can also be used as GPIO). |
SCL | I2C Clock | I2C clock line (can also be used as GPIO). |
TX | UART TX, GPIO | UART transmit or digital GPIO. |
RX | UART RX, GPIO | UART receive or digital GPIO. |
SCK | SPI Clock, GPIO | SPI clock line or digital GPIO. |
MISO | SPI Data In, GPIO | SPI data input or digital GPIO. |
MOSI | SPI Data Out, GPIO | SPI data output or digital GPIO. |
D0-D3 | GPIO, PWM | General-purpose I/O pins with PWM capability. |
USB-C | Power, Data | USB-C connector for power and programming. |
The Adafruit QT Py ESP32 Pico is easy to use in a variety of projects. Below are the steps and best practices for using this microcontroller.
Powering the Board:
Connecting Peripherals:
Programming the Board:
Below is an example of how to use the Adafruit QT Py ESP32 Pico to read a temperature sensor and send the data over Wi-Fi:
#include <WiFi.h> // Include the Wi-Fi library
// Replace with your network credentials
const char* ssid = "Your_SSID";
const char* password = "Your_PASSWORD";
void setup() {
Serial.begin(115200); // Initialize serial communication
delay(1000);
// Connect to Wi-Fi
Serial.print("Connecting to Wi-Fi");
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("\nConnected to Wi-Fi!");
}
void loop() {
// Example: Read a sensor value (replace with actual sensor code)
int sensorValue = analogRead(A0); // Read analog value from pin A0
Serial.print("Sensor Value: ");
Serial.println(sensorValue);
delay(1000); // Wait for 1 second before the next reading
}
Board Not Detected by Computer:
Wi-Fi Connection Fails:
Code Upload Fails:
Peripherals Not Working:
Q: Can I use 5V peripherals with this board?
A: No, the GPIO pins operate at 3.3V logic levels. Use a level shifter for 5V peripherals.
Q: Does the board support CircuitPython?
A: Yes, the Adafruit QT Py ESP32 Pico is compatible with CircuitPython for easy programming.
Q: How do I reset the board?
A: Press the reset button located on the board to restart it.
Q: Can I use this board for battery-powered projects?
A: Yes, you can power the board using a 3.7V LiPo battery with a suitable regulator.
By following this documentation, you can effectively use the Adafruit QT Py ESP32 Pico in your projects and troubleshoot common issues with ease.