Gimbal Stand Using Arduino And MPU 6050 | Arduino projects

Introduction

Hello geeks, we are back with another new post. We are sure that you know what a gimbal is. Well, it is used by professional cameramen for recording cinematic shots or high-quality videos. So in this article, we are going to make a gimbal stand with the help of an MPU 6050 gyroscope sensor and an Arduino UNO project. This gimbal stand can rotate in different directions and for this movement, we are using two servo motors. As we use a servo motor in this stand so the movement is not as smooth as the original one. There are some special types of BLDC motors used in an original stand. You can also read articles on IoT and Basic electronics. So without wasting any more time let us start.

gimble stand

Description

  • The gyroscope sensor is used for detecting the change in position of an object or machine.
  • In our project, it is used for balancing the top angle of the gimbal using servo motors.
  • When we move or tilt the sensor, it will generate some values according to the angle of the movement.
  • If you are not familiar with the interfacing of an MPU 6050 gyroscope sensor with Arduino then go through it first.
  • The servo motor will move as we move the sensor left, right, front, back.
  • You can use the pieces of cardboard for mounting the servo motor one over another.
  • Make the connections properly as given in the circuit diagram and then upload the code.
Gimbal Stand mpu6050

Components Required for gimble stand

Arduino UNOBUY LINK
MPU 6050 gyroscope sensorBUY LINK
2. servo motorsBUY LINK
Jumper wiresBUY LINK
breadboardBUY LINK
USB cable for uploading the codeBUY LINK
gimble stand component

Circuit Diagram for Gimbal Stand

gimble stand circuit diagram
  • Take two servo motors and connect their positive supply wire with the 5 volts pin of the Arduino.
  • Join their negative supply wire with the GND pin of the Arduino.
  • Then connect the VCC and GND pins of the MPU 6050 gyroscope sensor with the 5 volts and GND pins of the Arduino.
  • Attach the SCL and SDA pins of the sensor with the SCL (Analog-5) and SDA (Analog-4) pins of the Arduino.
  • Join the INT pin of the sensor with the digital-2 pin of the Arduino.
  • At last, connect the signal wire of the first servo motor with the digital-6 pin of the Arduino and the signal wire of the second servo motor with the digital-5 pin of the Arduino. Your circuit is complete now.
Gimbal Stand servo motor

Code for Gimbal Stand Arduino project

NOTE: Please upload this code to the Arduino UNO. You have to install <MPU6050.h>, <Wire.h>, and <Servo.h> libraries first. Check here how to add a zip library to Arduino IDE.

//Techatronic.com
#include <MPU6050.h>
#include <I2Cdev.h>
#include <Wire.h>
#include <Servo.h>

MPU6050 mpu;
int16_t ax, ay, az;
int16_t gx, gy, gz;


Servo servo1; 
Servo servo2;

int val1;
int val2;
int pval1;
int pval2;


void setup() {
  Wire.begin();
  Serial.begin(115200);
  mpu.initialize();
  servo1.attach(5);
  servo2.attach(6); 
}




void loop() {
  
  
  mpu.getMotion6(&ax,&ay, &az, &gx, &gy, &gz);
  val1= map(ax, -17000, 17000, 0, 179);
  if (val1 != pval1){
  servo1.write(val1);
  pval1= val1;
}
val2= map(ay, -17000, 17000, 0, 179);
if (val2 != pval2){
  servo2.write(val2);
  pval2= val2;
}
delay(5);
}

 

We hope that you liked this project and understand it as well. If you have any doubts regarding this project then feel free to ask them in the comments section given below. Also, do check out more articles on Arduino and Raspberry Pi.

gimble stand arduino project

Happy Learning!

Related Posts

Voice control Robot

How to Make a Voice Control Robot + Obstacle Avoiding

Us welcome back to the ticket Ronak, so today we are going to make a very special project which is trending now a days so we decided…

Air Quality Monitoring

Building an Air Quality Monitoring System Using Arduino and IoT

In an era where environmental awareness is critical, monitoring the air we breathe has become essential. Building a sophisticated air quality monitoring system using Arduino and IoT…

pulse rate detector

How to make a Pulse Rate Detector Using Arduino

Hey guys welcome back to the techatronic. Today we are going to make a very useful project the name of this project is pulse rate detector so…

Fire Fighting Robot

Fire Fighting Robot Autonomous + BT Control

He is welcome back again this time we are making a fire fighting robot also we have made a firefighting robot earlier but this time we did some…

accident roadside alert system

Accident Roadside Alert system with Car breakdown alarm

He guys welcome back again, this time we have made a very useful project which can help in daily life problems. So the project is accident roadside…

Viral Science Project Rain Detection

Viral Science Project Rain Detection Cloth Project

Hey guy, welcome back to the techatronic. In this article i am goig to show how to make this Viral Science Project Rain Detection System. This project…

Leave a Reply

Your email address will not be published. Required fields are marked *