

The Cardputer by M5Stack is a compact computing device that integrates a microcontroller with various input/output (I/O) interfaces. Designed for embedded applications, the Cardputer is ideal for portable or low-power scenarios. Its small form factor and versatile functionality make it a popular choice for developers working on IoT, robotics, and other embedded systems projects.








The Cardputer is built to provide robust performance in a compact package. Below are its key technical specifications:
| Parameter | Value |
|---|---|
| Microcontroller | ESP32 (dual-core, 240 MHz) |
| Flash Memory | 16 MB |
| RAM | 8 MB |
| Power Supply Voltage | 3.7V (via LiPo battery) or 5V (via USB-C) |
| Display | 1.14-inch TFT LCD (135x240 resolution) |
| Connectivity | Wi-Fi 802.11 b/g/n, Bluetooth 4.2 |
| Dimensions | 54 x 86 x 6 mm |
| Weight | 30 g |
The Cardputer features a set of GPIO pins and other interfaces for connecting peripherals. Below is the pinout description:
| Pin Name | Type | Description |
|---|---|---|
| GND | Power | Ground pin |
| 3V3 | Power | 3.3V power output |
| GPIO0 | Digital I/O | General-purpose input/output |
| GPIO1 | Digital I/O | General-purpose input/output |
| GPIO2 | Digital I/O | General-purpose input/output |
| TX | UART Output | UART transmit pin |
| RX | UART Input | UART receive pin |
| I2C_SCL | I2C Clock | I2C clock line |
| I2C_SDA | I2C Data | I2C data line |
| SPI_MOSI | SPI Output | SPI master-out, slave-in |
| SPI_MISO | SPI Input | SPI master-in, slave-out |
| SPI_CLK | SPI Clock | SPI clock line |
| SPI_CS | SPI Select | SPI chip select |
The Cardputer is designed to be user-friendly and versatile. Follow these steps to use it effectively in your projects:
Powering the Device:
Programming the Cardputer:
Connecting Peripherals:
Here’s a simple example of how to blink an LED using the Cardputer and Arduino IDE:
// Define the GPIO pin connected to the LED
const int ledPin = GPIO2; // Use GPIO2 for the LED
void setup() {
// Set the LED pin as an output
pinMode(ledPin, OUTPUT);
}
void loop() {
// Turn the LED on
digitalWrite(ledPin, HIGH);
delay(1000); // Wait for 1 second
// Turn the LED off
digitalWrite(ledPin, LOW);
delay(1000); // Wait for 1 second
}
The Cardputer is not detected by the computer:
The program does not upload to the Cardputer:
Wi-Fi or Bluetooth is not working:
The device is overheating:
Q: Can I use the Cardputer with MicroPython?
A: Yes, the Cardputer supports MicroPython. You can flash the MicroPython firmware and use it for development.
Q: What is the maximum current output of the 3V3 pin?
A: The 3V3 pin can supply up to 500 mA, depending on the power source.
Q: Can I connect the Cardputer to an external display?
A: Yes, the Cardputer supports external displays via SPI or I2C interfaces.
Q: Is the Cardputer compatible with Arduino shields?
A: No, the Cardputer does not have a standard Arduino shield form factor. However, you can connect peripherals using jumper wires.
By following this documentation, you can effectively integrate the Cardputer into your projects and troubleshoot common issues. Happy building!