Skip to Content
Arduino Cookbook, 3rd Edition
book

Arduino Cookbook, 3rd Edition

by Michael Margolis, Brian Jepson, Nicholas Robert Weldin
April 2020
Intermediate to advanced
795 pages
17h 43m
English
O'Reilly Media, Inc.
Content preview from Arduino Cookbook, 3rd Edition

Simple Wireless Communication

14.0 Introduction

Arduino’s ability to interact with the world is wonderful, but sometimes you might want to communicate with your Arduino from a distance, without wires, and without the overhead of a full TCP/IP network connection. This chapter covers simple wireless modules for applications where low cost is the primary requirement as well as feature-rich options such as the versatile XBee wireless modules and Bluetooth.

Simple packet radio modules like the RFM69HCW allow secure, reliable communication between devices. XBee provides flexible wireless capability to the Arduino, but that very flexibility can be confusing. This chapter provides examples ranging from simple “wireless serial port replacements” to mesh networks connecting multiple boards to multiple sensors.

Bluetooth Classic and Bluetooth Low Energy are popular options for interfacing with computers and mobile phones. Because those devices typically have Bluetooth these days, it offers a convenient way to make a wireless connection without needing any additional special hardware on your phone or computer.

14.1 Sending Messages Using Low-Cost Wireless Modules

Problem

You want to transmit data between two Arduino boards using inexpensive hardware.

Solution

This recipe uses simple transmit and receive modules based on the RFM69HCW module, which transmits and receives in an unlicensed portion of RF spectrum called the ISM (Industrial, Scientific, and Medical) band. Depending on where ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Arduino for Arduinians

Arduino for Arduinians

John Boxall
Getting Started With Arduino, 4th Edition

Getting Started With Arduino, 4th Edition

Massimo Banzi, Michael Shiloh

Publisher Resources

ISBN: 9781491903513Errata Page