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

Listing 4-1 – Arduino sketch for controlling the Mini Round Robot

Listing 4-1 presents the complete Arduino sketch that can be used to control the Mini Round Robot with the Joystick widget on the Blynk app:

#include <ESP8266WiFi.h>#include <BlynkSimpleEsp8266.h>#include <Wire.h>#include <Adafruit_MotorShield.h>// You should get Auth Token in the Blynk App.// Go to the Project Settings (nut icon).char auth[] = "da999e8ef4ac42148f9fe8427dxxxxxx";// Your WiFi credentials.// Set password to "" for open networks.char ssid[] = "xxxxxx";char pass[] = "xxxxxx";Adafruit_MotorShield AFMS = Adafruit_MotorShield();Adafruit_DCMotor *L_MOTOR = AFMS.getMotor(4);Adafruit_DCMotor *R_MOTOR = AFMS.getMotor(3);// This function will be called every time Joystick ...
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