Book Image

ESP8266 Robotics Projects

By : Pradeeka Seneviratne
Book Image

ESP8266 Robotics Projects

By: Pradeeka Seneviratne

Overview of this book

The ESP8266 Wi-Fi module is a self-contained SOC with an integrated TCP/IP protocol stack and can give any microcontroller access to your Wi-Fi network. It has a powerful processing and storage capability and also supports application hosting and Wi-Fi networking. This book is all about robotics projects based on the original ESP8266 microcontroller board and some variants of ESP8266 boards. It starts by showing all the necessary things that you need to build your development environment with basic hardware and software components. The book uses the original ESP8266 board and some variants such as the Adafruit HUZZAH ESP8266 and the Adafruit Feather HUZZAH ESP8266 . You will learn how to use different type of chassis kits, motors, motor drivers, power supplies, distribution boards, sensors, and actuators to build robotics projects that can be controlled via Wi-Fi. In addition, you will learn how to use line sensors, the ArduiCam, Wii Remote, wheel encoders, and the Gripper kit to build more specialized robots. By the end of this book, you will have built a Wi-Fi control robot using ESP8266.
Table of Contents (15 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Wiring them together


After mounting the Arduino board, you can start to wire it with the motor driver and the ESP01.

Connecting the Arduino with motor driver

You can wire each pin of the motor driver with Arduino as follows:

  • Motor Driver AIN1 -> Arduino Digital Pin 2
  • Motor Driver BIN1 -> Arduino Digital Pin 7
  • Motor Driver AIN2 -> Arduino Digital Pin 4
  • Motor Driver BIN2 -> Arduino Digital Pin 8
  • Motor Driver PWMA -> Arduino Digital Pin (PWM) 5
  • Motor Driver PWMB -> Arduino Digital Pin (PWM) 6
  • Motor Driver STBY -> Arduino Digital Pin 9

Connecting the motors with the motor driver

You will need the SparkFun Motor Driver - Dual TB6612FNG (1A) to drive the two motors. Figure 2.17 shows the wiring diagram that you can follow to make connections between the two motors and the motor driver:

Figure 2.17: Connecting the two motors with the motor driver

  1. Connect the left motor with the A01 and A02 pads of TB6612FNG.
  2. Connect the right motor with the B01 and B02 pads of TB6612FNG.

Connecting the ESP01...