Skip to content

rkubera/ServoGimbal

Repository files navigation

ServoGimbal

2D Gimbal for Arduino based on 2 Servos and MPU6050

Requirements

  • Arduino Pro, Pro Mini, Nano, Uno or Atmega2560 (atmega323 processor minimum)
  • MPU6050 (gyro + accelerometer) mounted on camera and connected via I2C to Arduino
  • Roll servo connected to PIN 7
  • Pitch servo connected to PIN 6
  • (optional) RC Channel (PWM) connected to PIN 2 for roll adjustment
  • (optional) RC Channel (PWM) connected to PIN 3 for pitch adjustment

Features

  • full PID support for Roll and Pitch
  • 50/333 Hz for Servo refresh frequency
  • adjust roll and pitch via RC channels
  • mautomatic MPU6050 orientation detection
  • setup via serial port menu or graphical interface (using processing.org)
  • experimental mavlink integration: please uncomment #define USE_MAVLINK 1 in GlobalDefines.h first. Actualy mavlink uses second hardware serial port (if present) or software serial port on PIN 4 (TX) and PIN 5 (RX)

Graphical interface setup

First steps

  • connect to Arduino
  • using serial port menu or processing.org detect gyro orientation
  • set correct servo refresh frequency: 50Hz is standard, 333Hz for quick servos
  • set properly P, I, D and Direction values for roll and pitch PID settings (using standard PID tuning methods)

Licence

GNU/GPL 3.0

About

2D ServoGimbal for Arduino

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages