Giter Site home page Giter Site logo

asifurrouf / hobby_quadcopter_v2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vjaunet/quadcopter_v2

0.0 2.0 0.0 5.78 MB

A quadcopter project based on Raspberry Pi and Arduino

License: MIT License

Arduino 2.37% Makefile 0.34% C 13.70% C++ 79.47% Shell 0.57% PHP 0.92% CSS 1.77% JavaScript 0.87%

hobby_quadcopter_v2's Introduction

QUADCOPTER

A quadcopter controller on a Raspberry PI

This project is the development of a code to control a quadcopter with a Raspberry Pi.

Following the Quadcopter V1, I want to use a 4 cahnnel RC remote to have better control on the drone. In fact, the tablet shows quite poor sensitivity that is an handicap for good quality fligths.

Therefore in theis version of the Quadcopter, the RPI will still hold the PID, but a micorcontroller is used to interface the RC receiver and the ESCs. The Rpi aks the microcontroller for RC commands and sends motor speed values through I2C. An Arduino Micro has been chosen as microcontroller, for its compact size and sufficient abilites for the job.

The Raspberry PI hosts:

  • PID controller
  • Web interface to access the Camera (work in progress)
  • Communication with the MPU6050 through I2C.
  • Communication to Arduino Micro through SPI

This project is greatly inspired and using source code from :

Many thanks to these people.

Documentation

Principles Princples Diagram

Usage

When powered, the Quad is in a locked status so that the ESCs do not turn the motor on. To unlock, simply put the RC sticks to the lower center angle. It can be locked again by doing the same operation. This is handled by the Arduino for more safety.

Hardware

This projects includes :

  • 4 brushless motors (TURNIGY 2204-14T 19g Outrunner)
  • 4 Electronic Speed Controllers (Turnigy Multistar 20 Amp)
  • 1 LiPo 3s 3700 mAh battery
  • 1 sparkfun MPU6050 breakout board
  • 1 QuadCopter frame
  • 1 4 channels RC Remote + Receiver
  • 1 arduino micro
  • 1 logic level converter

Wiring

MPU6050 -> RPI : -VDD -> 3.3V -GND -> GND -SDA -> SDA -SCL -> SCL -VIO -> 3.3V

Arduino -> RPI : -VCC -> 5V from external Regulator -GND -> GND -MISO -> Logic Level converter ->MISO -MOSI -> Logic Level converter ->MOSI -SCK -> Logic Level converter ->SCK

ESCs and RC Receiver on Arduino: -Using PinChange interrupts -Check in the arduino code

Pictures

Picture of the quad Picture of the quad Picture of the quad Picture of the quad Picture of the quad

hobby_quadcopter_v2's People

Contributors

vjaunet avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.