Current Product Don't Have Test Firmware
Note: pls, use PC chrome/edge browser, if can't connect, refresh the webpage.
1. Click connect button
2. After connected successfully, pick a firmware
3. Click the burn button
4. After burning successfully, Unplug the device and restart.
C Back Driver is a steering gear drive board compatible with M5StickC. It adopts STM32F030F4P6 control scheme, uses I2C communication interface to communicate with M5StickC, and provides 4 sets of PWM steering gear drive interfaces (the drive power of the steering gear is directly connected to the M5StickC The internal battery can drive general specifications of the steering gear, such as: SG90, etc.). This module leads the I2C bus at the top of StickC and provides an additional GPIO interface through STM32 expansion. It can be used for general logic level and ADC analog signal input reading. With the LEGO compatible hole design on the back, users can easily integrate this driver board into the LEGO building block structure, which can be used to build controllable structures such as steering gear manipulators.
Resources | Parameter |
---|---|
Communication protocol | I2C: 0x38 |
Working current | 15mA |
Net weight | 9g |
Gross weight | 13.5g |
Product size | 23.7*49.2*21mm |
Package size | 42*40*30mm |
M5StickC | GPIO0 | GPIO26 | 3.3V | GND |
---|---|---|---|---|
C Back Driver | SDA | SCL | 3.3V | GND |
/*------------------------------------------------ -------------------------------------------------- */
| SERVO_ANGLE_REG | 0x00-0x03
| ------------------------------------------------- -----------------------------------------------
| servo_1_reg[0] 0x00 | R/W | SERVO1 Angle value(0~180)
| servo_2_reg[1] 0x01 | R/W | SERVO2 Angle value(0~180)
| servo_3_reg[2] 0x02 | R/W | SERVO3 Angle value(0~180)
| servo_4_reg[3] 0x03 | R/W | SERVO4 Angle value(0~180)
/*------------------------------------------------ -------------------------------------------------- -
/*------------------------------------------------ -------------------------------------------------- */
| SERVO_PULSE_REG | 0x10-0x17
| ------------------------------------------------- -----------------------------------------------
| servo_1_reg[0:1] 0x10-0x11 | R/W | SERVO1 PULSE value(500~2500)
| servo_2_reg[2:3] 0x12-0x13 | R/W | SERVO2 PULSE value(500~2500)
| servo_3_reg[4:5] 0x14-0x15 | R/W | SERVO3 PULSE value(500~2500)
| servo_4_reg[6:7] 0x16-0x17 | R/W | SERVO4 PULSE value(500~2500)
/*------------------------------------------------ -------------------------------------------------- -
/*------------------------------------------------ -------------------------------------------------- */
| PPORTB_ADC_REG | 0x20-0x21
| ------------------------------------------------- -----------------------------------------------
| portb_adc_reg[0:1] 0x20-0x21 | R | PPORTB ADC value(0~4095)
/*------------------------------------------------ -------------------------------------------------- -
/*------------------------------------------------ -------------------------------------------------- */
| PPORTB_OUTPUT_REG | 0x30
| ------------------------------------------------- -----------------------------------------------
| portb_output_reg[0] 0x30 | R | PPORTB Output Digital value(0/1)
/*------------------------------------------------ -------------------------------------------------- -
/*------------------------------------------------ -------------------------------------------------- */
| PPORTB_INPUT_REG | 0x31
| ------------------------------------------------- -----------------------------------------------
| portb_input_reg[0] 0x31 | R | PPORTB Input Digital value(0/1)
/*------------------------------------------------ -------------------------------------------------- -
This case uses C BACK DRIVER to realize 4-channel servo control and ADC reading. Please select the corresponding case program below according to the equipment you are using.
In this case, Light Unit is connected to Port.B of the C BACK DRIVER to obtain the light intensity(adc) and digital input values.
In this case, Light Unit is connected to Port.B and ColorSensorUnit to Port.A. The servo is controlled by the blue value.
Write:
Read:
Use C BACK DRIVER to make a four-wheeled car
Execute the following statement in Setup() of the Arduino program
When M5Core2 is stacked with other M5 modules, you need to remove the battery base of Core2, which does not support module stacking.
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
Add the header file #include <driver/adc.h> and the function adc_power_acquire(); in the Arduino program
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.
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)
ESP32 module currently does not support WiFi in 5G band, only 2.4G.
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
Click the link below to view the product comparison table
Rotate the lens to adjust the focal length within a certain range
FACE II BOTTOM NOT CORE2 COMPATIBLE
Built-in CR1220 button battery, can make it work for a long time, if the battery power is exhausted, open the Unit shell to replace the battery
Use esptool to read the flash content of esp32 and export the bin file. Refer to the detailed operation
Restart the Arduino IDE, the computer uses the mobile AP mobile network to download.
Refer to the Github link below, use arduino-esp32fs-plugin for file upload
Check if the COM of the corresponding device is selected and if the M5Burner is the latest version
UIFlow users can switch the Label font to Unicode, Arduino users can use the Chinese font library provided in the M5GFX driver library
Confirm whether the SD card format is FAT32, and no partitions exist.
You can refer to the following link for other ESP32 users to share the case program
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.
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.)
Refer to the UIFlow documentation of the corresponding device to check whether the device has entered the USB programming mode.
Make sure that the NBIoT used is not locked. Frequent device replacement or after activating the IoT card, using traffic in different places may cause the card to be locked. If the above situation occurs, please contact the IoT card supplier. If you are using the IoT card matching M5, please contact M5 after-sales through e-commerce or email. (provide the ICCID of the IoT card)