Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
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 the encoders with Arduino

Figure 3.4 shows the wiring diagram for connecting two hall-effect sensors with Arduino UNO:

Figure 3.4: Wiring diagram for the encoder

Use the existing circuit you built in Chapter 2, Building a Mini Round Robot with Original ESP8266, to control the two DC gear motors with SparkFun Dual TB6612FNG (1 A) motor driver, Arduino UNO, ESP8266 (ESP-01), and a Bi-Directional Logic Level Converter. The following steps describe how to connect the two wheel encoders with Arduino UNO:

  • Hall-effect sensor attached to the left wheel:
    1. Connect the Signal wire of the hall-effect sensor to Arduino digital pin 2.
    2. Connect the Power wire of the hall-effect sensor to Arduino 5V.
    3. Connect the Ground wire of the hall-effect sensor to Arduino GND.
  • Hall-effect sensor attached to the right wheel:
    1. Connect the Signal wire of the hall-effect sensor to Arduino...
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 $19.99/month. Cancel anytime
Banner background image