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
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 2. Decision System for IoT Projects FREE CHAPTER 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

Controlling a car robot from a computer


We can control our robot from a computer. This means that we can send commands to the robot to perform an action. In order to send a communication between a computer and robot, we need a communication module on both.

In this section, we will build a communication between the Pololu Zumo robot and a computer. I usually use Bluetooth modules as wireless stacks for communication.

For implementation, I use Bluetooth HC-06. This is a Bluetooth slave, so we can communicate directly through UART protocol. The Bluetooth HC-06 module is cheap, and you can buy it on banggood.com, eBay, dx.com, and AliExpress.

The Bluetooth HC-06 module has the following four output pins:

  • VCC

  • GND

  • Rx

  • Tx

A form of Bluetooth HC-06 module can be seen in the following figure:

To communicate with Bluetooth HC-06, I use the SoftwareSerial library (https://www.arduino.cc/en/Reference/SoftwareSerial). This library is supported for the AVR MCU model. If you use an Arduino-based ARM MCU, such as...

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