🛠 First connection and startup of M5Stack ToughC5
Objectives
This tutorial guides you through the first startup of the M5Stack ToughC5. You will learn how to connect the power supply correctly, verify the touchscreen display, and confirm that the system is operational. This is the essential foundation before any advanced programming.
Required Materials
- 1x M5Stack ToughC5 IoT Dev Kit
- 1x High-quality USB Type-C cable
- 1x 5V USB Charger (or computer USB port)
- Optional: 3.7V Li-ion Battery (for off-grid testing)
Steps
- Physical Inspection: Inspect the PC+ABS housing for damage. Ensure M12 cable glands are tightened to maintain weather resistance if planning outdoor installation.
- Power Connection: Plug the USB Type-C cable into the dedicated port. Connect the other end to a 5V charger or computer. The ToughC5 also accepts 6-24V input via RS485 terminals, but USB is recommended for the first test.
- Startup: Upon powering, the 32-bit RISC-V processor (240 MHz) activates. The M5PM1 power management chip regulates voltages for the ESP32-C5HR8 module, IPS screen, and RX8130CE RTC.
- Screen Observation: The 2.0-inch color LCD (320x240 pixels) should light up. You will likely see a boot logo or test interface. The high brightness (853 nits) ensures visibility even outdoors.
- Touch Test: Tap the capacitive screen. Responsiveness confirms the touch driver is working. If the screen remains black, check the USB connection or try another cable.
- RTC Verification: If a CR2032 battery is installed, the real-time clock retains time after power loss. This is crucial for IoT applications requiring precise synchronization.
Verification
The power indicator (if visible) or lit screen confirms power-up. The passive buzzer may sound during boot depending on the pre-installed firmware. Ensure the screen is responsive and colors are vibrant.
Further Reading
Once startup is validated, explore multi-protocol connectivity. Test Dual-band Wi-Fi 6 or Bluetooth LE 5 via the USB serial port. For outdoor projects, configure the sleep current (10.41 µA) to optimize battery life.
Other tutorials for this board
Code examples for this board
toughc5_gpio_button_buzzer.inoC++ (Arduino)toughc5_wifi6_scanner.inoC++ (Arduino)toughc5_rtc_battery_log.inoC++ (Arduino)toughc5_ili9342c_touch_ui.inoC++ (Arduino)toughc5_rs485_modbus_master.inoC++ (Arduino)toughc5-rs485-modbus-master.inoArduino C++