Project tutorial
Mini 4WD Arduino Robot Controlled by Bluetooth

Mini 4WD Arduino Robot Controlled by Bluetooth © CC BY-SA

Mini 4WD Arduino robot controlled by Bluetooth.

  • 263 views
  • 0 comments
  • 2 respects

Components and supplies

About this project

The idea of this project was to make a robot whose size will not occupy much more than the size of the Arduino MKR Motor Carrier board, would it succeed? Here you can see the result:

The robot is made up of an Arduino MKR WiFi 1010 board coupled to the Arduino MKR Motor Carrier board and four N20 motors of 100 rpm. A servomotor that moves an HC-SR04 ultrasound sensor to detect obstacles has also been added.

We are going to control the robot in two ways:

  • Using an accelerometer (Arduino Nano 33 BLE Sense).
  • Through an Android application created with MIT App Inventor.

Communication in both modes will be via Bluetooth Low Energy.

Accelerometer control

To control the robot using an accelerometer we will use the IMU (Inertial Measurement Unit) present on the Arduino Nano 33 BLE Sense board. The idea is that depending on the inclination we give to the board, we will generate the corresponding movements to control the robot.

The Arduino Nano 33 BLE Sense board will be the central or master device in BLE (Bluetooth Low Energy) communication.

On the other hand, the Arduino MKR WiFi 1010 will be the peripheral device or slave in BLE communication.

Control by application on Android

The idea is to make a simple app using the MIT App Inventor 2 development environment. The app will have four arrows to represent forward, backward, left and right movements.

We will also need to add the buttons to be able to scan and connect Bluetooth Low Energy (BLE) devices and a switch type control to change from manual to automatic mode. Manual mode is the mode in which we control the robot using the arrows on the application. In automatic mode, the robot will operate autonomously, the ultrasonic sensor coupled to the servomotor will start operating, which will make it rotate to the right and left by about 50º and in the event that it detects an obstacle at a distance of about 25 cm, it will rotate the robot to avoid the obstacle.

In this control mode, the Bluetooth system will consist of the following devices:

Central device: Mobile phone with the application that we will create.

Peripheral device: Arduino MKR WiFi 1010.

Gallery of images of the programming blocks:

Robot assembly

Robot assembly image gallery:

Code

Arduino MKR WiFi 1010 peripheral device sketch (App Control)
When we use the robot with the Android application https://github.com/avilmaru/MiniRobot4x4RCBLE/tree/master/controlporApp/peripheral
Arduino MKR WiFi 1010 peripheral device sketch (accelerometer Control)
When we use the robot with the accelerometer https://github.com/avilmaru/MiniRobot4x4RCBLE/tree/master/controlporAcelerometro/peripheral
Arduino Nano 33 BLE Sense central device sketch (accelerometer Control)
When we use the robot with the accelerometer https://github.com/avilmaru/MiniRobot4x4RCBLE/tree/master/controlporAcelerometro/central
Android APK & AIA PRoject
https://github.com/avilmaru/MiniRobot4x4RCBLE/tree/master/controlporApp/central

Comments

Similar projects you might like

Bluetooth Controlled Obstacle Avoidance Robot

Project tutorial by alokmech007

  • 3,188 views
  • 7 comments
  • 20 respects

Gesture Controlled Trainable Arduino Robot Arm via Bluetooth

Project tutorial by KureBas Robotics

  • 30,609 views
  • 58 comments
  • 190 respects

Bluetooth Controlled Pick And Place Robot

Project tutorial by Ahmed Ibrahim Ahmed

  • 19,629 views
  • 17 comments
  • 60 respects

Arduino 4WD Rover Bluetooth Controlled by an Android device

Project tutorial by AppsByDavideV

  • 3,186 views
  • 0 comments
  • 12 respects

Otto DIY+ Arduino Bluetooth robot easy to 3D Print

Project tutorial by Team Otto builders

  • 82,810 views
  • 136 comments
  • 227 respects

4WD Smart Robot Car

Project tutorial by TheTNR

  • 11,953 views
  • 3 comments
  • 23 respects
Add projectSign up / Login