- Make sure that your Raspberry PI has already set up. In the Project, we don’t teach how to do that.
- Also, you can see the “RPI_INSTALL_DOC.pdf” in the project. That will teach you step-by-step process to set up your Raspberry PI.
- This is a magic gloves! You can only use it with corresponding gesture to control all your furniture like music player, fan, air conditioner, robot car…… In this, I use the Robot Car to demonstrate.
- This Project is for something that you usually do in your life but you need to take some effort to do, just like open the light, close the air conditioner, lock your door…… But if you have the magic glove, you will not need to stand up, go ahead to your light, remote control or something what you use to control your target, you just need to make some gesture toward your target and then everything is wonderful!
- The MPU6050 module which including the “Accelerometer” and “Gyroscope” can use to detect out hand gesture.
- Using the python’s “smbus” package to address the MPU6050 data, let us know what gesture we are making.
- After getting the gesture’s data, we simply use the Bluetooth, WIFI or RF signal to transmit the data to our Raspberry PI. For this project, we use the Bluetooth.
- Address the data to make out item do something what we want.
- Return some data of our item and display on our screen to detect.
- MPU6050 module or simply an Accelerometer
- Raspberry PI Zero which include the Bluetooth module. (You also can use something that can transmit data from your sender to your receiver)
- Gloves or something set the MPU6050 and PRI Zero
- double-sided tape to stick your item to your gloves.
- Power (Maybe a battery or Mobile power) for your RPI Zero
- Robot Car or something you want to control
- Raspberry PI 3 which include the Bluetooth module (Or something you can receive your data from sender)
- Power (Maybe a battery or Mobile power) for your Raspberry PI 3
MPU6050 use the I2C interface, so we need to make our raspberry pi enable the I2C interface function.
Part 1: Configure the RPI I2C
- Open the configuration interface
- In your terminal, input the “sudo raspi-config”
- Select Interfacing Configurations
- Select -> I2C
- Enable I2C configuration by press “Yes”
- Finally, Select Yes if it asks to Reboot or you can reboot your RPI by yourself.
Part 2: Scan and Test the I2C on RPI
- get i2c tools by using apt package manager
- sudo apt-get install -y i2c-tools
- connect you I2C device to your RPI
- scan the port using following command
We will use the python for control the Bluetooth communication. In the part, you will install the python Bluetooth package and program the python code to control the Bluetooth to transmit data from sender to receiver.
Part 1: Install python-bluezthat for your RPI
- sudo apt-get install python-bluez
- In some condition, you may need to add the command
- sudo apt-get install libbluetooth-dev libbluetooth3
- write a python code that contain the “import Bluetooth”
- this is to check if you install the package successfully
Part 2: Install “smbus” package for MPU6050 to address the data.
- pip3 install smbus
- If you have already the package, just skip it.
- write a python code that contain the “import smbus”
- this is to check if you install the package successfully
Part 3: Write two code, one for sender and one for receiver
- For sender
- You can get the code by name "client.py" in the project
- For Receiver
- You can get the code by name “server.py” in the project
- If you want to test the Bluetooth programming
Part 1: Configure all components of your car
Part 2: Configure the L298N motor controller
- This is for logically control you Robot car. L298N contain the four output controlled by Raspberry PI’s GPIO and 2 port for power input.
- In the part, you will learn how to get the MPU6050’data and using the smbus package to address it. Finally transmit it to your target.
Part 1: set up the MPU6050
Part 2: Address the MPU6050 data
Part 3: Transmit the data to your receiver
- In the part, you will learn how to get the data from your sender by bluetooth and using the RPi.GPIO package to address it. Finally make your car move!
Part 1: set up the GPIO PIN
Part 2: make your Bluetooth to accept status
Part 3: address the data from your sender, and do the corresponding action
- https://rootsaid.com/spinelcrux-gesture-controlled-robot-1/
- https://www.eprice.com.tw/mobile/talk/4523/5385251/1/rv/samsung-review/
- https://www.youtube.com/watch?v=Xz0gZCVxGnw
- https://circuitdigest.com/microcontroller-projects/mpu6050-gyro-sensor-interfacing-with-raspberry-pi
- https://shengyu7697.github.io/blog/2018/02/06/Bluetooth-Programming/
- https://medium.com/@kalpeshnpatil/raspberry-pi-interfacing-with-mpu6050-motion-sensor-c9608cd5f59c