This project is an electric wheelchair. We started with a simple prototype and used Arduino to implement the code and test the components. We wrote five codes for this project:
- RC & Motor Driver Testing - This code tests the functionality of the motor driver and controls it using bluetooth module.
- Encoder Testing - This code reads the counts and calculates the distance using encoders.
- IMU Testing - This code reads angles and directions from the IMU (MPU6050 sensor) attached to the robot.
- Obstacle Avoidance Testing - This code uses three ultrasonic sensors to detect obstacles and stop the robot in emergency situations.
- Arduino & ROS Integration Testing - This code integrates ROS and Arduino to allow communication between the two platforms.
This project requires the following hardware components:
- Robot Chassis with Wheels and Motors
- Arduino Mega board
- Motor driver
- Bluetooth Module (HC-05)
- MPU6050 sensor
- Encoders
- Ultrasonic sensors (3) HC-SR04
- Battery
- Jumbers & Swithces
This project requires the following libraries:
- SoftwareSerial
- A ROS installation
- Wire.h
- MPU6050.h