This tutorial will show you how to control M5StickC devices through AWS FreeRTOS programming
Description
M5StickC is a mini M5Stack, powered by ESP32. It is a portable, easy-to-use, open source, IoT development board.
What it can do?
This tiny block is able to realize your idea, enlighten your creativity, and help with your IoT prototying in a very short time. It will take away a lot of pains from the development process.M5stickC is one of the core devices in M5Stack product series.
It is built in a continually growing hardware and software ecosystem. It has a lot of compatible modules and units, as well as the open source code & engineering communities that will help you maximize your benefits in every step of the developing process.
Power switch operation:
Power on :Press power button for 2 seconds
Power off :Press power button for 6 seconds
The input range of VBUS_VIN and VBUS_USB is limited to 4.8-5.5V, and the internal battery will be charged through AXP192 power management when VBUS is powered.
Connect the device to the PC, open the device manager to install
FTDI driver
for the device. Take the win10 environment as an example, download the driver file that matches the operating system, unzip it, and install it through the device manager. (Note: In some system environments, the driver needs to be installed twice for the driver to take effect. The unrecognized device name is usually M5Stack or USB Serial. Windows recommends using the driver file to install directly in the device manager (custom Update), the executable file installation method may not work properly).
Click here to download FTDI driver
EasyLoader
EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification.
Q3: A timeout error is displayed when uploading the program to the device
Reason and solution: The power supply current of the port is insufficient, which can cause the device to not enter the download mode normally. You can try to connect a capacitor (>0.1uF) between the RST pin and the GND pin, or when uploading the program, set the G0 Short-circuit to GND, so that G0 can be set to a low level state normally
Q4: How to solve the phenomenon of automatic signal triggering of M5Core button A
Add the header file #include <driver/adc.h> and the function adc_power_acquire(); in the Arduino program
Q5: M5 device battery life
The battery life of the controller is affected by various factors such as battery capacity, operating status, and load, so there is no fixed value. Reducing the load and adopting a sleep strategy can effectively increase the battery life.
Q6: Can multiple modules with batteries be stacked at the same time?
Support multiple stacks, the total capacity of the batteries in parallel increases, and the voltage remains unchanged. However, since the discharge of each battery is not balanced during use, there is a voltage difference between the batteries, which may cause the battery to charge backwards. .(will lose part of the battery capacity)
Q7: M5 master supports WiFi connection to 5G frequency band
ESP32 module currently does not support WiFi in 5G band, only 2.4G.
Q8: The RS485 device cannot communicate normally/data is garbled. Packet loss, etc.
Confirm whether the TX/RX pin on the TTL side of the pin is correct, try to add two 120Ω terminal resistors at the beginning and end of the device line to reduce signal reflection interference
Q9: The difference between different masters and camera products
Click the link below to view the product comparison table
STAMP C3U enters program download mode operation: 1. Long press the center button (G9) of STAMP C3U when the power is off. 2. Connect to the computer, after the port is successfully identified, program burning.
Q9: How STAMP C3U defines UART0 output mode
By default, USB CDC is not enabled, the serial port output started by C3U will be output through the default pins (G20, G21) of UART0. If you want to output through USB, please use the IDE to output Its USB CDC option is enabled. (Arduino users can enable it through Tools->USB CDC on Boot-Enabled. For IDF users, please refer to the ESP IDF official documentation.)
Q10: Unable to connect to UIFlow Desktop IDE
Refer to the UIFlow documentation of the corresponding device to check whether the device has entered the USB programming mode.
COMMON
Q1: Consultation for after-sales problems of products
Describe the problems encountered in detail. Screenshots of the programs involved or files can be added as attachments and sent to M5Stack's official after-sales email