Skip to Content
ESP8266 Robotics Projects
book

ESP8266 Robotics Projects

by Pradeeka Seneviratne
November 2017
Beginner
210 pages
4h 41m
English
Packt Publishing
Content preview from ESP8266 Robotics Projects

Software

Listing 7-1 shows the Arduino sketch that can be used to control the gripper with the Blynk app. The functions for controlling the two DC gear motors are not included in the code to only focus on the gripper (servo). Upload the code to the Arduino using the Arduino IDE by connecting the Arduino to your computer with a USB A-to-B cable. After uploading the sketch, remove the USB cable from the Arduino.

Listing 7-1—Controlling the gripper with Blynk:

#include <ESP8266_Lib.h>#include <BlynkSimpleShieldEsp8266.h>#include <Servo.h>// You should get Auth Token in the Blynk App.// Go to the Project Settings (nut icon).char auth[] = "YourAuthToken";// Your WiFi credentials.// Set password to "" for open networks.char ssid[] = "YourNetworkName"; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Raspberry Pi 3 Home Automation Projects

Raspberry Pi 3 Home Automation Projects

Shantanu Bhadoria, Ruben Oliva Ramos
Wheeled Mobile Robotics

Wheeled Mobile Robotics

Gregor Klancar, Andrej Zdesar, Saso Blazic, Igor Skrjanc

Publisher Resources

ISBN: 9781788474610Supplemental Content