background image

   
   
   
   
   

 
 

 
 

 

 
 
 
 
 

 
 

ESPcopter SDK 

1.0.0 (Beta) 

   
   
   
   
   
   
   
   
   

Summary of Contents for 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: ...ections 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 Black White Right Rear B Red Blue ...

Page 4: ...d 2 Software 2 1 Arduino Installation Download and install the latest version from the Arduino web site https www arduino cc en Main Software 2 2 Driver Installation The following driver is reqired for the ESPcopter to be recognized by the computer Download and install the approperate driver version for your OS https www silabs com products development tools software usb to uart bridge vcp drivers...

Page 5: ...this URL into the Additional Board Manager URLs text box http arduino esp8266 com stable package_esp8266com_index json 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: ...tacts page to request source code 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: ...s 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 Let s hope you have had the ESPcopter switched off and the batteries charging via the USB port so you can be ready for the first flight ...

Page 9: ...ter 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 WIFI_SSID ESPcopter WIFI_PASSWORD 12345678 After making the connection open any web browser application from your phone Type 192 168 4 1 in the search line ...

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: ...d 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 WIFI_SSID RemoteXY WIFI_PASSWORD 12345678 After you make the connection open RemoteXY from your phone After making the connection the screen below will open automatically ...

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 13: ......

Page 14: ...ESSING_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 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: ...ode 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 Current code is not working ...

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: ...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 2 Magnetic Field Calibration Compass Now place it on a flat non metal surface The blue light indicates that the magnetic field calibration has started At this stage you have to turn the ESPcopter around twice ...

Page 20: ...an be controlled using the functions found in this list Function Acceptable Values Description esp redLed_Digital 0 1 or FALSE TRUE Controls Red LED on off esp blueLed_Digital 0 1 or FALSE TRUE Controls Blue LED on off esp greenLed_Digital 0 1 or FALSE TRUE Controls Green LED on off esp redLed_Analog 0 255 Controls Red LED brightness esp blueLed_Analog 0 255 Controls blue LED brightness esp greenL...

Page 21: ...with processing Computer define MQTT Control with MQTT Computer define REMOTE_WEB_APP Web application control Phone Tablet define PPM_REMOTE Control with PPM receiver Standard RC Remote ESPcopter Global Variable Definitions Function Description Value Range setTrimRoll Trim on the X axis 500 500 setTrimPitch Trim on the Y axis 500 500 setTrimYaw Trim on the Yaw 500 500 setArmControl Motor Enable fa...

Page 22: ...Flight time turnRight D D rotates right up to its own angle in angle D Rotation angle turnLeft D The angle of D turns to the left in its own frame D Rotation angle delay_ T It allows you to wait before executing the next command T Standby time Land In autonomous flight mode this must be at the end of the commands Altitude Hold Module Function Description Value Range setVl5310xControl vl5310x modul...

Page 23: ...s right Negative moves left 15 15 SetPointOpt 1 Sets the speed of Drone using the optic flow sensor If this value is equal to zero the drone stops at the y axis Positive goes forward Negative goes back 15 15 deltaCalX X axis flow data from the optical flow extender Relative to the drone current speed deltaCalY Y axis flow data from the optical flow damper Relative to the drone current speed Multi ...

Page 24: ...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 ...

Reviews: