Home Made Garbage

BLE Car Controlled by Motion Sensor and Wah Pedal

お父ちゃん お父ちゃん  2016.10.13 
ホーム
電子工作
Raspberry Pi
IOT
WEB

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

Configuration

% e5% 9b% B31

Parts

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!

Related Posts

コメントはこちらから

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.