Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ESP8266 Robotics Projects

You're reading from   ESP8266 Robotics Projects DIY Wi-Fi controlled robots

Arrow left icon
Product type Paperback
Published in Nov 2017
Publisher Packt
ISBN-13 9781788474610
Length 210 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Pradeeka Seneviratne Pradeeka Seneviratne
Author Profile Icon Pradeeka Seneviratne
Pradeeka Seneviratne
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Getting Ready FREE CHAPTER 2. Building a Mini Round Robot with Original ESP8266 3. Using Encoders 4. Building a Mini Round Robot with the Feather HUZZAH ESP8266 5. Line-Following Zumo Robot 6. Building an ESP8266 Robot Controller 7. Building a Gripper Robot 8. Photo Rover Robot

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime