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
Smart Internet of Things Projects

You're reading from   Smart Internet of Things Projects Discover how to build your own smart Internet of Things projects and bring a new degree of interconnectivity to your world

Arrow left icon
Product type Paperback
Published in Sep 2016
Publisher Packt
ISBN-13 9781786466518
Length 258 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Agus Kurniawan Agus Kurniawan
Author Profile Icon Agus Kurniawan
Agus Kurniawan
Arrow right icon
View More author details
Toc

Table of Contents (8) Chapters Close

Preface 1. Making Your IoT Project Smart FREE CHAPTER 2. Decision System for IoT Projects 3. Building Your Own Machine Vision 4. Making Your Own Autonomous Car Robot 5. Building Voice Technology on IoT Projects 6. Building Data Science-based Cloud for IoT Projects Index

Working with the Pololu Zumo robot for Arduino


In this section, we will make a simple robot with simple movements based on avoiding obstacles. If the robot faces an obstacle, the robot will turn left to avoid it. To make this happen, we can use an Ultrasonic module to detect an obstacle.

I usually use HC-SR04 as an Ultrasonic module. It's cheap, and you can buy it on dx.com, banggood.com, and AliExpress. You can see the HC-SR04 module form in the following figure:

The HC-SR04 module provides four pins: VCC, GND, Trigger, and Echo. You can connect Trigger and Echo pins to Arduino digital I/O. But how can you connect the HC-SR04 module into Pololu Zumo robot for Arduino?

Based on the user guide from Pololu, you can connect them through Arduino digital I/O on pins 4, 11, 5, 2. The easier way is to connect HC-SR04 module via the front expansion pins. You can see this in the following figure:

For our demo wiring, connect Trigger and Echo pins to Arduino digital I/O on pins 2 and 4. The VCC and GND...

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