HomeMadeGarbage Loading

M5Stick-Car

お父ちゃん  2019.7.10 
ホーム
電子工作
Raspberry Pi
IOT
音楽
Home > 電子工作 > M5Stick-Car
すき 0
うんこ 0

I made Blynk-controlled mini Car using M5Stick-C.

I introduce the WiFi-controlled car “M5Stick-Car” manufactured using M5Stick-C.

 

 
 

Structure

Move two motors using I2C motor driver DRV8830. It communicates with M5Stick-C via WiFi with a smartphone application Blynk to control the motor and realize WiFi control operation.

Parts

  • M5StickC

     
  • I2C Motor Driver  DRV8830

     
  • Motor Use the electric toothbrush motor

Car

A connector, a motor driver, and a vibration motor were mounted by cutting the universal board to a size and connecting it to the M5Stick-C.

 

The electric toothbrush vibration motor was used for the motor. It was a good feeling of power when I tried because it was possible to store something that could not be used after the brush replacement connection broke.

 

I glued the toy mini car tire to the motor and used the mini car tire on the front wheel.

M5Stick-C

I used Arduino IDE for the design environment. Please refer to the following official site for the setting method.

https://docs.m5stack.com/#/ja/quick_start/m5stickc/m5stickc_quick_start_with_arduino_Windows

It’s small and cute, but it’s full of color LCD displays, microphones, infrared LEDs, BLE and WiFi functions. It is very easy to handle because it is compactly contained in a solid package. The details are as follows.

https://github.com/m5stack/M5StickC

 

Blynk

M5Stick-C is controlled by smartphone app Blynk via WiFi. By simply downloading the application and registering an account, you can easily communicate and control various microcomputers using various widgets such as buttons via WiFI and BLE. This version of Blynk app is 2.27.6.
 

Create a new project HARDWARE MODEL, select ESP32 Dev Board. CONNECTION TYPE select WiFi. AUTH TOKEN will be used when generating Arduino code (sent to the registered email).
 

Arrange the joystick widget.

 

The joystick settings are MERGE of the x-axis and y-axis outputs and output to virtual pin V0, and the value is set to -20 ~ 20 respectively.

I2C motor driver module DRV8830

The motor driver DRV88320 controls the motor supply voltage (speed) and the supply voltage direction (rotation direction) by the I2C input. Two modules were used to control the left and right motors. The details are as follows.

https://strawberry-linux.com/pub/drv8830-manual.pdf

I can change the I2C address by setting two jumpers on the module. This time I set both jumpers of left motor module to GND (address: 0x60) and jumpers of right motor module to both open (address: 0x64).

The left and right motors receive a voltage supply of 0 to 1.6 V in response to Blynk’s joystick value of 0 to 20.

Arduino IDE program

The following program was programmed using Blynk’s library for Arduino. The version is 0.6.1.

https://github.com/blynkkk/blynk-library

It was programmed using the library code example ESP32_WiFi.ino as a reference.

 

 

Operation

Run coolly! The color is also cool!

「M5Stick-Car」への1件のフィードバック

コメントはこちらから

メールアドレスが公開されることはありません。コメントのみでもOKです。

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください