BLE Car Controlled by Motion Sensor and Wah Pedal

お父ちゃん  2016.10.13 
Home > 電子工作 > BLE Car Controlled by Motion Sensor and Wah Pedal
すき 0
うんこ 0

I made a BLE car controlled by motion sensor and wah pedal.

Configuration

% e5% 9b% B31

Parts

  •  Redbearlab BLE Nano

     

  • Redbear Duo

     
  • 6DOF MPU-6050

     
  • Motor Driver DRV8835

     
  • JIM DUNLOP wah pedal CRYBABY

Car Body

imag0308

I used the RedBear Duo (BLE Central) to receive the controller (handle and accelerator) information and control the motor.

Controller

imag0287

imag0314

And I used the BLE Nano (BLE Peripheral) to communicate with the car.

The 6-axis motion sensor MPU6050 detects the inclination of the handle (y-axis acceleration).

imag0274

I used the wah pedal as an accelerator.

% e5% 9b% B31

I wired the variable resistor in the wah pedal to the BLE Nano, so the BLE Nano can detect the depression of the pedal.

Operation

Accelerate by pressing down the wah pedal!

 
Steer the car when you turn the handle!

 

Code for Arduino IDE

Redbear Duo (Central)

Generated based on the following
 

 

BLE Nano (peripheral)

Generated based on the following
 
The Arduino library for 6-axis motion sensor mpu6050 is located below (using mpu6050 and I2cdev).
 https://github.com/jrowberg/i2cdevlib/tree/master/Arduino
 
 

 

It would be interesting to be able to FPV in the head mount Desplay now!

コメントはこちらから

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

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