IoT Projects with Arduino Nano 33 BLE Sense: Step-By-Step Projects for Beginners
()
About this ebook
You'll learn how to access Arduino I/O such as analog and digital I/O, serial communication, SPI and I2C. The book also covers how to access sensor devices on Arduino Nano 33 BLE Sense, how to interact with other external devices over BLE, and build embedded Artificial Intelligence applications.
Arduino Nano 33 BLE Sense consists of multiple built-in sensors such as 9-axis inertial, humidity, temperature, barometric, microphone, gesture, proximity, light color and light intensity sensors. With this book, you'll see how this board supports the Bluetooth Low Energy (BLE) network, enabling interactions with other devices over the network.
What You’ll Learn
- Prepare and set up Arduino Nano 33 BLE Sense board
- Operate Arduino Nano 33 BLE Sense board hardware and software
- Develop programs to access Arduino Nano 33 BLE Sense board I/O
- Build IoT programs with Arduino Nano 33 BLE Sense board
Who This Book Is For
Makers, developers, students, and professionals at any level interested in developing with the Arduino Nano 33 BLE Sense board.
Read more from Agus Kurniawan
Python and SQLite Development Rating: 0 out of 5 stars0 ratingsSmart Internet of Things Projects Rating: 4 out of 5 stars4/5IoT Projects with NVIDIA Jetson Nano: AI-Enabled Internet of Things Projects for Beginners Rating: 0 out of 5 stars0 ratingsRaspberry Pi LED Blueprints Rating: 0 out of 5 stars0 ratingsPractical Azure Functions: A Guide to Web, Mobile, and IoT Applications Rating: 0 out of 5 stars0 ratingsRaspbian OS Programming with the Raspberry Pi: IoT Projects with Wolfram, Mathematica, and Scratch Rating: 0 out of 5 stars0 ratingsBeginning Arduino Nano 33 IoT: Step-By-Step Internet of Things Projects Rating: 0 out of 5 stars0 ratingsGetting Started with Big Data Query using Apache Impala Rating: 0 out of 5 stars0 ratingsPractical Contiki-NG: Programming for Wireless Sensor Networks Rating: 0 out of 5 stars0 ratings
Related to IoT Projects with Arduino Nano 33 BLE Sense
Related ebooks
Beginning Arduino Nano 33 IoT: Step-By-Step Internet of Things Projects Rating: 0 out of 5 stars0 ratingsIntelligence Devices for Smart World Rating: 0 out of 5 stars0 ratingsArduino for the Cloud:: Arduino Yun and Dragino Yun Shield Rating: 0 out of 5 stars0 ratingsArduino: Building LED and Espionage Projects Rating: 0 out of 5 stars0 ratingsRaspberry Pi IoT Projects: Prototyping Experiments for Makers Rating: 0 out of 5 stars0 ratingsA Novice Guide to Arduino Programming Rating: 4 out of 5 stars4/5Exploring Arduino: Tools and Techniques for Engineering Wizardry Rating: 4 out of 5 stars4/5Practical Arduino Engineering: End to End Development with the Arduino, Fusion 360, 3D Printing, and Eagle Rating: 0 out of 5 stars0 ratingsProgramming Microcontrollers with Python: Experience the Power of Embedded Python Rating: 0 out of 5 stars0 ratingsArduino: The ultimate guide to Arduino, including projects, programming tips & tricks, and much more! Rating: 0 out of 5 stars0 ratingsPractical Contiki-NG: Programming for Wireless Sensor Networks Rating: 0 out of 5 stars0 ratingsGet Started With Arduino: Robots, Musical Instruments, Smart Displays and More Rating: 0 out of 5 stars0 ratingsArduino Applied: Comprehensive Projects for Everyday Electronics Rating: 0 out of 5 stars0 ratingsArduino Electronics Blueprints Rating: 4 out of 5 stars4/5Arduino: A Beginner's Guide to Arduino Programming Rating: 3 out of 5 stars3/5Arduino: The complete guide to Arduino for beginners, including projects, tips, tricks, and programming! Rating: 4 out of 5 stars4/5The IoT Hacker's Handbook: A Practical Guide to Hacking the Internet of Things Rating: 0 out of 5 stars0 ratingsProgramming Basics: Getting Started with Java, C#, and Python Rating: 0 out of 5 stars0 ratingsThe LEGO Arduino Cookbook: Expanding the Realm of MINDSTORMS EV3 Invention Rating: 0 out of 5 stars0 ratingsARDUINO PROGRAMMING FOR BEGINNERS: A Comprehensive Beginner's Guide to Learn the Realms of Arduino Programming from A-Z Rating: 0 out of 5 stars0 ratingsInternet of Things Security: Principles and Practice Rating: 0 out of 5 stars0 ratingsARDUINO PROGRAMMING FOR BEGINNERS: Tips and Tricks for the Efficient Use of Arduino Programming Rating: 0 out of 5 stars0 ratingsARDUINO PROGRAMMING FOR BEGINNERS: Simple and Effective Methods to Learn Arduino Programming Efficiently Rating: 0 out of 5 stars0 ratingsArduino Step by Step: The Ultimate Beginner's Guide with Basics on Hardware, Software, Programming & DIY Projects Rating: 0 out of 5 stars0 ratingsLearning C for Arduino Rating: 0 out of 5 stars0 ratingsIntel Galileo Blueprints Rating: 0 out of 5 stars0 ratingsArduino: The Ultimate Guide to Arduino for Beginners Including Arduino Basics, Tips & Tricks, Projects, and More! Rating: 0 out of 5 stars0 ratingsBeginning IoT Projects: Breadboard-less Electronic Projects Rating: 0 out of 5 stars0 ratings
Hardware For You
CompTIA A+ Complete Review Guide: Exam Core 1 220-1001 and Exam Core 2 220-1002 Rating: 5 out of 5 stars5/5Chip War: The Fight for the World's Most Critical Technology Rating: 4 out of 5 stars4/5Dancing with Qubits: How quantum computing works and how it can change the world Rating: 5 out of 5 stars5/5Creative Selection: Inside Apple's Design Process During the Golden Age of Steve Jobs Rating: 5 out of 5 stars5/5Amazon Web Services (AWS) Interview Questions and Answers Rating: 5 out of 5 stars5/5Tor Darknet Bundle: Master the Art of Invisibility Rating: 0 out of 5 stars0 ratingsProgramming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5Samsung Galaxy S23 Ultra User Guide for Beginners and Seniors Rating: 3 out of 5 stars3/5CompTIA A+ Complete Review Guide: Core 1 Exam 220-1101 and Core 2 Exam 220-1102 Rating: 5 out of 5 stars5/5Raspberry Pi Cookbook for Python Programmers Rating: 0 out of 5 stars0 ratingsBuild Your Own PC Do-It-Yourself For Dummies Rating: 4 out of 5 stars4/5Computer Science: A Concise Introduction Rating: 4 out of 5 stars4/5Arduino: A Quick-Start Beginner's Guide Rating: 4 out of 5 stars4/5Raspberry Pi Electronics Projects for the Evil Genius Rating: 3 out of 5 stars3/5Mastering ChatGPT Rating: 0 out of 5 stars0 ratingsMacs For Dummies Rating: 5 out of 5 stars5/5Fitbit For Dummies Rating: 0 out of 5 stars0 ratingsComputer Organization and Design: The Hardware / Software Interface Rating: 4 out of 5 stars4/5Macs All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsApple Watch Series 4: Your Ultimate Guide to Using the Apple Watch Like A Pro Rating: 5 out of 5 stars5/5Teach Yourself VISUALLY Computers Rating: 0 out of 5 stars0 ratingsGetting Started With MacBook Air (2020 Model): A Guide For New MacOS Users Rating: 0 out of 5 stars0 ratings3D Printing For Dummies Rating: 4 out of 5 stars4/5Debugging: The 9 Indispensable Rules for Finding Even the Most Elusive Software and Hardware Problems Rating: 4 out of 5 stars4/5Upgrading and Fixing Computers Do-it-Yourself For Dummies Rating: 4 out of 5 stars4/5TI-84 Plus CE Graphing Calculator For Dummies Rating: 0 out of 5 stars0 ratings
Reviews for IoT Projects with Arduino Nano 33 BLE Sense
0 ratings0 reviews
Book preview
IoT Projects with Arduino Nano 33 BLE Sense - Agus Kurniawan
© Agus Kurniawan 2021
A. KurniawanIoT Projects with Arduino Nano 33 BLE Sensehttps://doi.org/10.1007/978-1-4842-6458-4_1
1. Setting up a Development Environment
Agus Kurniawan¹
(1)
Faculty of Computer Science, Universitas Indonesia, Depok, Indonesia
Arduino Nano 33 BLE Sense is an Internet of Things (IoT) solution to perform sensing and actuating on a physical environment. The Arduino Nano 33 BLE Sense board comes with a Bluetooth low energy (BLE) module and some built-in sensors that enable us to build an IoT application-based BLE network. This chapter explores how to set up the Arduino Nano 33 BLE Sense board for development.
The following topics are covered in this chapter:
Reviewing the Arduino Nano 33 BLE Sense board
Setting up a development environment
Building a blinking LED program
Using Arduino web editor
Introduction
Arduino Nano 33 BLE Sense is one of the IoT platforms from Arduino. This board uses an nRF52840 module with some built-in sensors. The nRF52840 module provides the BLE network stack that is used to communicate with other devices. Bluetooth is a component of a wireless personal area network (WPAN) that enables a devices to communicate with other devices within a short distance.
The Arduino Nano 33 BLE Sense board is designed for low-cost IoT devices to address your IoT problems. At 45 × 18 mm (length × width), the Arduino Nano 33 BLE Sense is compact, as you can see in Figure 1-1.
../images/502250_1_En_1_Chapter/502250_1_En_1_Fig1_HTML.jpgFigure 1-1
Arduino Nano 33 BLE Sense board
Reviewing the Arduino Nano 33 BLE Sense Board
Arduino Nano 33 BLE Sense is built from nRF52840. The board also has a radio-module-based BLE. This module is designed for data communication over Bluetooth. The detailed specifications of Arduino Nano 33 BLE Sense are shown in Table 1-1.
Table 1-1
Specifications of Arduino Nano 33 BLE Sense
Because Arduino Nano 33 BLE Sense has some digital and analog input/output (I/O), we extend the board’s capabilities by wiring with other sensors or actuators. We also use UART, Serial Peripheral Interface (SPI), and I2C protocols to communicate with other devices.
You can see in Table 1-1 that Arduino Nano 33 BLE Sense has some internal sensor devices that you can use for your IoT solutions. We explore these sensor devices further in Chapter 3.
Next , we set up Arduino Nano 33 BLE Sense on your computer so you can build programs for the Arduino board.
Setting up a Development Environment
Arduino provides software to build programs for all Arduino board models. This software is available for Windows, Linux, and macOS, and it can be downloaded from https://www.arduino.cc/en/Main/Software.
The installation process is easy, following the installation guidelines from Arduino setup. After installation is complete, you will see the Arduino application menu on the main menu in your OS platform.
When you open the Arduino application, you will see the application screen shown in Figure 1-2. Skeleton code is included in the application dialog box. The following is a code template.
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
../images/502250_1_En_1_Chapter/502250_1_En_1_Fig2_HTML.jpgFigure 1-2
Arduino software for Windows
The Arduino program adopts C/C++ program language dialects. We can put all data initialization in the setup() function . The program will execute codes inside the loop() function continuously.
To work with the Arduino Nano 33 BLE Sense board, we need to configure the Arduino software. First, add Arduino nRF528x Boards so Arduino software will recognize the Arduino Nano 33 BLE Sense board. On the Arduino menu bar, click Tools ➤ Board ➤ Boards Manager. That will open the Boards Manager dialog box shown in Figure 1-3. In the Type drop-down list, select All. Type Arduino&Nano&33&BLE in the accompanying text box. You will see Arduino nRF528x Boards listed. Click Install to install this package, after you have checked that your computer is connected to the Internet.
../images/502250_1_En_1_Chapter/502250_1_En_1_Fig3_HTML.jpgFigure 1-3
Adding supported boards for Arduino Nano 33 BLE Sense
This installation takes several minutes to complete. Once it is installed, you can see the Arduino Nano 33 BLE Sense board on the targeted board. You can verify it by selecting Tools ➤ Board ➤ Boards Manager in the Arduino software to view your board list. Figure 1-4 shows the Arduino Nano 33 BLE Sense board in the Arduino software.
../images/502250_1_En_1_Chapter/502250_1_En_1_Fig4_HTML.jpgFigure 1-4
A list of targeted boards for Arduino
Next, attach the Arduino Nano 33 BLE Sense board to the computer via a micro USB cable. After it is attached, you can verify your board using Device Manager for Windows. Figure 1-5 shows my Arduino Nano 33 BLE Sense on Windows 10.
../images/502250_1_En_1_Chapter/502250_1_En_1_Fig5_HTML.jpgFigure 1-5
Detected Arduino Nano 33 BLE Sense board on Device Manager in Windows 10
If you are working on Linux, you can verify Arduino Nano 33 BLE Sense using this terminal command:
$ ls /dev/ttyUSB*
You will see a list of attached devices over USB. Arduino Nano 33 BLE Sense usually is detected as /dev/ttyUSB0 or /dev/ttyUSB1. For macOS,