Control Servos using Wemos D1 mini with EspEasy

What do you need:

  • ESP8266 module (4096k recommended)
  • servos
  • Windows machine
  • stable powersuply

First download the latest version: http://www.esp8266.nu/index.php/Main_Page#Stable

Then follow the next stept:

Step 1 – Find the right flash size of your module
Step 2 – Download the zipfile here: Firmware and unpack to a folder of choice.
Step 3 – Double Click “flash priligy online canada.cmd”. A command windows should start with three questions.
Step 4 – Select the com port that your module or FTDI module is using
Step 5 – Select the flash size, 512, 1024 or 4096 Step 6 – Select the build version like 78 or newer.

When finished reboot the device.

Now you should see a wireless device named: ESP_0

Connect to it using the next password: configesp

Now when you open your internet browser the startpage of de ESP will show up.

Select your Access Point and enter the WPA key in the password field. Click the connect button. The ESP will connect to your Wifi network.

Now you can control your servos using your browser. Connect Servo 1 to GPIO-0 en servo 2 to GPIO-2

Servo motor control
To control a Servo Motor:

http://<ESP IP address>/control?cmd=Servo,<servo nr>,<pin>,<position>

We currently support a maximum of two servo motors so you can build a pan & tilt device if you like.

Example to set servo 1 on gpio-0 to a 90 degree position and servo 2 on gpio-2 to a 45 degree position:

http://<ESP IP address>/control?cmd=Servo,1,0,90 http://<ESP IP address>/control?cmd=Servo,2,2,45

 

Will be updated along the way.

 

2 thoughts on “Control Servos using Wemos D1 mini with EspEasy

  • August 18, 2017 at 12:42 am
    Permalink

    Can the WiFi settings be configured at the flashing stage ?

    Reply
  • August 18, 2017 at 10:48 am
    Permalink

    Th first time you Connect to the ESP. When connected you Connect to your personal WiFi

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *