Download Print this page

Advertisement

Quick Links

ESPcopter SDK
1.0.0 (Beta)

Advertisement

loading
Need help?

Need help?

Do you have a question about the ESP8266 and is the answer not in the manual?

Questions and answers

Summary of Contents for ESPcopter ESP8266

  • Page 1 ESPcopter SDK 1.0.0 (Beta)
  • Page 2 1-) General Review 1.1-) Internal Features of the ESPcopter: 1.2-) ESPcopter Switch and Button  The button is used to reset ESPcopter MCU  The switch is used to open and close ESPcopter...
  • Page 3 1.2-) Pinout and Propeller and Motor Directions When installing in accordance with the letters on the propellers, the motors must be fitted according to the cable colors. Engine positions: Left Front: B - Red, Blue Right Front: A - Black, White Left Rear: A –...
  • Page 4 1.3-) How to Charge the ESPcopter: The ESPcopter will charge when connected to the micro-usb. The switch on the ESPcopter must be in the off position to charge. Red Light: Charging Green Light: Fully Charged 2-) Software: 2.1-) Arduino Installation: Download and install the latest version from the Arduino web site: https://www.arduino.cc/en/Main/Software...
  • Page 5 Hit OK. Then navigate to the Board Manager by going to Tools > Boards > Boards Manager. There should be a couple new entries in addition to the standard Arduino boards. Look for esp8266. Click on that entry, then select Install. You need to install 2.5.0 version of esp8266 library.
  • Page 6 The download process can take up to 10 minutes depending on your internet speed. After the download is done, select NodeMCU 1.0 from the Tools tab and follow the other settings.
  • Page 7 See the following site: http://espcopter.com/code-release/ After downloading, remove the zip file twice and put the file (ESPcopter ”(Files> Arduino> Library) into the file. In the Examples section you will see the sample codes of the ESPcopter. Open the following example program:...
  • Page 8 ESPcopterWebApp example is a demonstration of the ESPcopter having the additional ability to act as a self-contained web server. This will get you running your ESPcopter fast because you can control it from a web page on your phone, tablet or laptop. More advanced examples (Although this is very cool) are already available from the Arduino IDE menu.
  • Page 9 ESPcopter standalone Code(Web APP) #define REMOTE_WEB_APP #define WEB_APP_WIFI_SSID "ESPcopter" //ESPcopter Wiffi ismi #define WEB_APP_WIFI_PASSWORD "12345678" //ESPcopter Wiffi şifresi #include <espcopter.h> void setup() { mainSetup(); void loop() { mainLoop(); Connection: After installing the software, turn on the drone. In the wifi tab of your phone, you will see the name of the drone.
  • Page 10 Control review: Buttons: First Button: ARM – DISARM Second Button: AUTO YAW CONTROL Third Button: AUTO ALTİTUDE CONTROL Forth Button: AUTO MISSION CONTROL...
  • Page 11 ESPcopter standalone Code (RemoteXY) #define REMOTEXY_WIFI_SSID “RemoteXY” #define REMOTEXY_WIFI_PASSWORD “12345678” #define REMOTE_XY_REMOTE #include <espcopter.h> // library void setup() { mainSetup(); // main flying setup void loop() { mainLoop (); // main flying loop Connection: After installing the software, turn on the drone. In the wifi tab of your phone, you will see the name of the drone.
  • Page 12 After the first connection. There will be ESPcopte box in RemoteXY app. You can connect ESPcopter by cliking this box. Controller Review:...
  • Page 14 Computer Control (Processing) #define PROCESSING_REMOTE #include <espcopter.h> void setup() { mainSetup(); setTrimRoll(0); setTrimPitch(0); setTrimYaw(0); void loop() { mainLoop (); Connection: After the uploading the Processing control code to ESPcopter. Open the wiffi screen and then connect the ESPcopter...
  • Page 15: Control Switches

    Control Screen Controller Review: 1-) Control Switches: If ESPcopter did not connect, reset it and then click the reconnect button two times. 2-) Control Switches:...
  • Page 16 Button: ARM – DISARM Fly Mode 1: YAW CONTROL Fly Mode 2 AUTO ALTİTUDE CONTROL Fly Mode 3: AUTO ALTİTUDE AND FLİGHT MISSION CONTROL 3-) Control RGB LED: It is not working current code. We will solve the problem next version. 4-) Graph: It will show something like connection speed.
  • Page 17 5-) Control Joystick 1: 6-) Control Joystick 2:...
  • Page 18 7-) Auto Flight Route Control Part 8-) Auto Flight Route Simulation:...
  • Page 19 The ESPcopter has at a minimum a Gyro, acceleration and Earth magnetic field sensors. They must be calibrated when you first turn on the ESPcopter. Calibration mode starts with the red light flashing. Do not turn off the ESPcopter until the calibration algorithm has finished. If you turn it off, the calibration will run again at the next boot.
  • Page 20 3- Gyro Calibration: After you have calibrated the compass the ESPcopter's light will be purple. Do not touch the ESPcopter after this step. It will run its engines for a few seconds without taking off from the ground. Calibration is completed!!!
  • Page 21 The rear right operates the engine at the desired power. ESPcopter Control Table: The control method of the ESPcopter can be changed using the definitions in this list. Only one definition should be activated from this list. Function Description Control Device...
  • Page 22 getRX_yaw(); The value in the Z-axis -100 : + 100 Autonomous Flight Commands: Function Description Value Range takeOff(Y, T); When the command line Y: 200 - 1000 Height runs, the drone T: Flight time automatically takes off. goforward(T); The drone moves forward T: Flight time during the duration.
  • Page 23 #define NeoPixel Turns the Neopixel module Include in the program on and off ESPrainbow(); Makes an automatic rainbow effect ESPsetPixel (x,r,g,b); Set each led separately. X= 1 – 12 After setting pixels call R(Red)= 0 - 255 G(Green)= 0 - 255 B(Blue)= 0 - 255 ESPpixelShow();...
  • Page 24 Distance_X_0(); X (-) axis distance data 50-1000 Other Commands All other common Arduino and ESP8266 commands can be used in the library except for the following which will interfere with drone operation. delay(); analogWrite(); Tone();...