Giter VIP home page Giter VIP logo

espcopter's Introduction

EspCopter

Project using the ESP8266 and MPU6050 to control a quadcopter. Done with arduino for esp8266 ide. RC uses the ack-less ESPNOW protocol. See "espnow_RC_TX" for transmitter.

Serial Konze 0xF5 protocol: The output to esc's is wired to the serial output pin #2 of the esp. Name is D4, GPIO02, TXD1. Baudrate is 128kb.

Normal PWM output: (#define PWMOUT) The output to esc's is wired to the pins 14, 12, 13, 15. Refresh rate is about 6ms, pulses from 1ms to 2ms.

RC pulse input sequence is adaptable, default is orangerx sequence:

  • define ROL 0
  • define PIT 1
  • define THR 2
  • define RUD 3
  • define AU1 4

The copter will only arm after 1 second zero throttle. The copter will shut down motors RC data fails for more than 100ms.

The PID for level (acc) and gyro can be adjusted individually.

Serial console commands:

  • A - acc calib
  • D - write default PID to eeprom
  • R - read actual PID
  • Wpxx, Wixx, Wdxx - write gyro PID
  • WPxx, WIxx, WDxx - write level PID
  • WS - Store PID in EEPROM

Data display over serial console (use arduino plot function)

  • 0 - off
  • 1 - Gyro values
  • 2 - Acc values
  • 3 - Angle values
  • 4 - RC values
  • 5 - Cycle time, RC time

Be sure you do acc_calib and write default params to eeprom before taking off! Acc_calib is done by placing the copter on a level surface and press A on the serial console. Default PID are written by press P on the serial console. Read them with R.

6050 wiring:

  • SCL to D1
  • SDA to D2
  • VCC to 3.3V
  • GND to GND.

wiring.png

DSC02280.jpg

Testflight
Telemetry

espcopter's People

Contributors

pepethefroggie 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.