Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
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 (15) Chapters Close

Reading encoders


A hall-effect sensor varies its output voltage in response to a magnetic field. The eight-pole neodymium magnetic disk attached to the motor shaft can generate a magnetic field around the hall-effect sensor. You can connect the wheel encoders (hall-effect sensor) with Arduino interrupt pins (digital pin 2 and 3 for UNO) to read pulses. You can use either the RISING, FALLING, or CHANGE mode to define when the interruption should be triggered. You will get different results depending on the mode you use.

Creating a Blynk app

The following steps will describe how to modify the Mini Round Robot Blynk app you built in Chapter 2Building a Mini Round Robot with Original ESP8266, to read and display the distance traveled and average speed of the chassis:

  1. Open the Mini Round Robot Blynk app (Figure 3.5). Switch the app to the EDIT mode if it is in the PLAY mode:

Figure 3.5: The Mini Round Robot app created in chapter 2, Building a Mini Round Robot with Original ESP8266

  1. Tap on the Widget...
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 £13.99/month. Cancel anytime
Banner background image