Uploading Code

Installing Arduino IDE

This tutorial will walk you through downloading, installing, and testing the Arduino software (also known as the Arduino IDE – short for Integrated Development Environment). Before you jump to the page for your operating system, make sure you’ve got all the right equipment.

What you will need:

  • A computer (Windows, Mac, or Linux)
  • An ESPcopter
  • A USB – micro USB


micro usb ile ilgili görsel sonucu


Launch and Blink!

After following the appropriate steps for your software install, we are now ready to test your first program with your Arduino board!

  • Launch the Arduino application
  • If you disconnected your board, plug it back in

Lesson 1. Blink
  • Select the type of ESP8266 you’re using: Tools > Board > your board type



  • Select the serial/COM port that your Arduino is attached to: Tools > Port > COMxx


alt text

  • If you’re not sure which serial device is your Arduino, take a look at the available ports, then unplug your Arduino and look again. The one that disappeared is your Arduino.
  • With your Arduino board connected, and the Blink sketch open, press the ‘Upload’ button

alt text

  • After a second, you should see some LEDs flashing on your Arduino, followed by the message ‘Done Uploading’ in the status bar of the Blink sketch.
  • If everything worked, the onboard LED on your Arduino should now be blinking! You just programmed your first ESPcopter!

Installing ARDUİNO

Installing Arduino

Get the latest version from the download page. You can choose between the Installer (.exe) and the Zip packages. We suggest you use the first one that installs directly everything you need to use the Arduino Software (IDE), including the drivers. With the Zip package you need to install the drivers manually. The Zip file is also useful if you want to create aportable installation.

When the download finishes, proceed with the installation and please allow the driver installation process when you get a warning from the operating system.

Choose the components to install

Choose the installation directory (we suggest to keep the default one)

The process will extract and install all the required files to execute properly the Arduino Software (IDE)

Installing the ESP8266 Arduino Addon

There are a variety of development environments that can be equipped to program the ESP8266. You can go with a simple Notepad/gcc setup, or fine-tune an Eclipse environment, use a virtual machine provided by Espressif, or come up with something of your own.

Fortunately, the amazing ESP8266 community recently took the IDE selection a step further by creating an Arduino addon. If you’re just getting started programming the ESP8266, this is the environment we recommend beginning with, and the one we’ll document in this tutorial.

This ESP8266 addon for Arduino is based on the amazing work by Ivan Grokhotkov and the rest of the ESP8266 community. Check out the ESP8266 Arduino GitHub repository for more information.

Installing the Addon With the Arduino Boards Manager

With the release of Arduino 1.6.4, adding third party boards to the Arduino IDE is easily achieved through the new board manager. If you’re running an older version of Arduino (1.6.3 or earlier), we recommend upgrading now. As always, you can download the latest version of Arduino from arduino.cc.

To begin, we’ll need to update the board manager with a custom URL. Open up Arduino, then go to the Preferences (FilePreferences). Then, towards the bottom of the window, copy this URL into the “Additional Board Manager URLs” text box:


If you already have a URL in there, and want to keep it, you can separate multiple URLs by placing a comma between them. (Arduino 1.6.5 added an expanded text box, separate links in here by line.)

Adding Board Manager URL to Arduino preferences

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.

Installing additional boards from Board Manager

The board definitions and tools for the ESP8266 Thing include a whole new set of gcc, g++, and other reasonably large, compiled binaries, so it may take a few minutes to download and install (the archived file is ~110MB). Once the installation has completed, an Arduino-blue “INSTALLED” will appear next to the entry.

Selecting the ESP8266 Thing Board

With the Board addon installed, all that’s left to do is select “ESP8266 Thing” from the Tools > Boards menu.

then select your FTDI’s port number under the Tools > Port menu.

ESPcopter Overview

Espcopter it is unique small size mini drone that is a wirelessly networkable, interactive and programmable drone and what’s more Espcopter is suitable for IoT applications you can develop whatever you want to make. it exclusively produced for students, teachers, makers, engineers briefly people who want to learn how to fly a drone. If you are one of these people, there is no the better time to start.






Switch Positions

Switch OFF

When the switch is off and USB cable plugged, ESPcopter will charge its battery. The following picture shows, LED inductors

     Changing(RED LED)                                                  Full Change(GREEN LED) 


Switch ON

When the switch is off, ESPcopter will not charge itself. But the computer will recognize the ESPcopter like a COM port.




Lesson 1. DHT11 Temperature and Humidity Sensor

#include "DHT.h"
#include <LiquidCrystal.h>

#define DHTPIN 24
#define DHTTYPE DHT11

LiquidCrystal lcd(2,1,40,38,36,34);

void setup() {
  lcd.begin(16, 2);

void loop() {
    float nem = dht.readHumidity();

    float sicaklik = dht.readTemperature();// 'C cinsinden.
    //float fahrenheit = dht.readTemperature(true); // 'F cinsinden
     lcd.print("Nem: %");
     lcd.setCursor(0, 1);    
     lcd.print("Sicaklik: ");