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
Mastering Arduino
Mastering Arduino

Mastering Arduino: A project-based approach to electronics, circuits, and programming

Arrow left icon
Profile Icon Jon Hoffman
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (5 Ratings)
Paperback Sep 2018 372 pages 1st Edition
eBook
$24.99 $35.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Jon Hoffman
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (5 Ratings)
Paperback Sep 2018 372 pages 1st Edition
eBook
$24.99 $35.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$24.99 $35.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Mastering Arduino

The Arduino

Have you ever looked at a gadget and wondered how it worked? Do you want to create your own cool and exciting electronics project but do not know how to get started? Your decision to start reading this book is an excellent first step.

In this book, we will teach you everything you need to get started with the Arduino. Everything from basic electronics and prototyping to setting up the Arduino development environment and programming is covered. This book also has numerous sample projects to show you how to use this knowledge with real-world examples. Before we get to all that fun stuff, let's a look at the Arduino itself and get familiar with it.

In this chapter, you will learn:

  • What the Arduino boards are
  • How to power the Arduino boards
  • What Arduino shields are
  • What the pins on the Arduino boards do
  • Learn about generic and compatible Arduino boards

Arduino is a company, development boards, community and a way of thinking. As you will soon find out, Arduino is also the name of a bar in northern Italy. While we could begin this book by writing several chapters on everything that the Arduino name stands for, that is not what this book is about. This book is about teaching you how to use the Arduino development board to build fun and exciting projects. Anywhere in this book, unless noted otherwise, when we refer to the Arduino we will be referring to the Arduino development boards. However, we do believe to really understand the Arduino board, you should at least have a basic understanding of its history; therefore, we will start off by giving you a brief history of the board and its predecessors.

History of the Arduino

In 2003 Hernando Barragan started working on a project called Wiring for his master's thesis at the Interaction Design Institute Ivrea (IDII) in Italy. At that time students used a microcontroller board that cost USD $100 and needed additional hardware and software to use. Massimo Banzi and Casey Reas, who is known for work on the Processing language, were supervisors for his thesis. The name was Wiring: Prototyping Physical Interaction Design.

The purpose of the thesis was to create a low-cost and easy-to-use tool so non-engineers could create digital projects. To do this, Hernando wanted to abstract away the complicated details of the electronics to let the user focus on their project. This meant that it had to be work by simply plugging the device into a host computer and have an easy-to-use interface to program it.

The first prototype used the Parallax Javelin Stamp microcontroller, which used a subset of the Java programming language. This solution required the Parallax proprietary tools to compile, link and upload the projects to the microcontroller; therefore, it did not meet the requirements of the project because the wiring was going to be an open source project.

The second prototype used the Atmel ARM-based 91R40008 microcontroller. Hernando obtained better results with this new microcontroller; however, he determined that the microcontroller was far too complex, and it was almost impossible to solder it by hand to a circuit board.

The third prototype used the Atmel ATmega128 microcontroller with the MAVRIC microcontroller board. Hernando had great success using this microcontroller. He used a tool written by Brian Dan called Avrdude to easily upload new programs to the board.

Avrdude is still used today and can be found here: http://www.nongnu.org/avrdude/.

FTDI's hardware was chosen for the USB to serial communication because it had easy-to-obtain drivers for Linux, Windows and macOS platforms. This allowed the Wiring project to be compatible with all three major platforms.

In 2004, the IDII ordered and paid for 25 Wiring circuit boards. These boards were manufactured by SERP. They included the ATmega128 microcontroller, FTDI USB to serial hardware, onboard LED connected to a pin and serial RX/TX LEDs. Usability tests were performed using these boards and the results were great.

After graduating with distinction in 2004, Hernando moved back to his native Colombia to teach at the Universidad de Los Andes where he continues to work on Wiring. In May 2005, Hernando ordered 200 circuit boards and begin assembling the first Wiring boards outside of IDII. He sold these boards for approximately USD $60. By the end of 2005 Wiring was being used in various parts of the world.

Also, in 2005, the first Arduino board was created. The Arduino board used the less expensive ATmega128 microcontroller to reduce cost. The Arduino team forked the Wiring code and added support for this board.

The initial Arduino core team consisted of Massimo Banzi, David Cuartielles, Tom Igoe, Gianluca Martino and David Mellis. Hernando was not invited to participate in this project. There are several accounts from different individuals involved about why he was not invited.

I do not have any first-hand knowledge about which of these stories are true and which are false; therefore, for this book, I will leave it at the known truth of Hernando was not invited to participate in the Arduino project.

The Arduino team strongly believed in open source hardware and software. They believed that by opening the platform up, many more people would have access to and be involved with it. Another reason for opening the platform up was that IDII had used up its funding and was going to be shut down. By open sourcing the platform they knew it would survive and would not be exploited by others.

The team initially decided on a price of USD $30 for the board. They figured it would make it easily accessible to students as well individuals. They also decided to make the board blue, which was different from most other boards at the time, which were green. Another design decision that helped add to the popularity of the board was giving it lots of input and output pins. Most boards at the time limited the number of I/O to reduce costs.

Initially, the team ordered 300 printed circuit boards to conduct a usability test. They handed these boards out to students at IDII with three simple instructions: look up the assembly instructions online, build your board and use it to create something. They had great success with this test because the students were able to assemble the boards and create numerous projects with it.

Shortly after this test, people began to hear about this board and wanted one for themselves. The project started to take off; however, it was still missing a name. While discussing the name, the team was having drinks at a local a bar frequented by Massimo Banzi. The bar's name was Bar Di Re Arduino and the new board became known as the Arduino.

What is the Arduino?

At the heart of the Arduino is the microcontroller. A microcontroller is a standalone, single-chip integrated circuit that contains a CPU, read-only memory, random access memory and various I/O busses. Most Arduino boards use the Atmel 8-bit AVR microcontroller.

The Arduino UNO R3, which is the primary board used in this book, uses the ATmega328 chip. This chip is an 8-bit RISC-based microcontroller that features 32 KB of flash memory with read-write capabilities, 1 Kbyte EEPROM, 2 Kbytes SRAM, 23-general purpose I/O lines and 32 general-purpose registers. Do not be too concerned if you do not understand all those specifications because we will be interacting with the microcontroller using the interface that the Arduino board provides us. It is good to know these specifications as you begin to develop more complex applications because they do put limits on what we can do.

All the hardware and software that make up the Arduino platform are distributed as open source and licensed under the GNU Lesser General Public License (LGPL) or the GNU General Public License (GPL). This allows for the manufacture and distribution of Arduino boards by anyone and has led to numerous generic, lower cost, Arduino compatible boards.

You can find more information about the license and the Arduino boards on the Arduino website here: https://www.arduino.cc.

Touring the Arduino UNO R3

The Arduino is an open source hardware and software platform that is incredibly powerful yet easy to use. You can look at and download the code from any of the Arduino repositories on GitHub here: https://github.com/arduino. This platform has captured the imagination of electronic enthusiasts and the maker community everywhere. It enables people to inexpensively experiment with electronic prototypes and see their projects come to life. These projects can range from simply making an LED blink or recording the temperature to controlling 3D printers or making robots.

While there are numerous models of the Arduino, in this book we will primarily be using the very popular Arduino UNO R3 board. The following photograph shows the Arduino Uno's board layout with the main connectors identified:

For the purposes of this book, anytime we refer to the Arduino Uno board or the Uno board we are referring to the Arduino Uno R3 depicted in the preceding photograph.

As we can see, the Arduino Uno of today still uses the blue color that the original Arduino designers chose to help their boards stand out. The following is a list of major components of the Arduino Uno:

  • DC supply Input: The DC supply input can be used with an AC-to-DC power adapter or a battery. The power source can be connected using a 2.1 mm center-positive plug. The Arduino Uno operates at 5 volts but can have a maximum input of 20 volts; however, it is recommended to not use more than 12V.
  • Voltage Regulator: The Arduino uses a linear regulator to control the voltage going into the board.
  • USB Port: The USB port can be used to power and program the board.
  • RESET button: This button, when pressed, will reset the board.
  • ICSP for USB: The in-circuit serial programming pins are used to flash the firmware on the USB interface chip.
  • ICSP for ATmega328: The in-circuit serial programming pins are used to flash the firmware on the ATmega microcontroller.
  • Digital and PWM connectors: These pins, labeled 0 to 13, can be used as either a digital input or output pins. The pins labeled with the tilde (~) can also be used for Pulse-Width Modulation (PWM) output.
  • Analog In Connectors: The pins, labeled A0 to A5, can be used for analog input. These pins can be used to read the output from analog sensors.
  • Power and External Reset: These pins in this header, provide ground and power for external devices and sensors from the Arduino. The Arduino can also be powered through these pins. There is also a reset pin that can be used to reset the Arduino.
  • ATmega328: The microcontroller for the Arduino Uno board.

The Digital/PWM/Analog in/Power/Reset connectors are collectively known as the pin headers. The pins in these headers allow the Arduino to communicate with external sensors and other devices. Let's look at the different ways that we can power the Arduino board.

Powering the Arduino

The Arduino can be powered in one of three ways: through the VIN/GND pins, the DC Supply Input port or the USB port.

Using the VIN/GND pins to power the Arduino

The VIN and GND pins in the power and external reset header can be used to power the Arduino with an external battery. Powering the Arduino in this way is mainly used when we wish to connect a battery, in series, with a switch to turn the power to the Arduino on and off. The following photograph illustrates this:

It is not recommended that we power the Arduino in this manner unless we are looking for the most expensive and short-lived way to power the Arduino. We could use six AA batteries in series, which will provide the same voltage as the 9V battery in the preceding photograph but would give us approximately four times the capacity. It is still not recommended that we power the Arduino in this manner as it would be fairly expensive.

Unless there is a specific need to use a battery to power the Arduino, I would avoid using them.

Using the DC supply input to power the Arduino

The DC supply input connector can be used with an AC-to-DC power adapter or a battery to power the Arduino. The connector has a female 2.1 mm center-positive plug. While the Arduino operates at 5 volts a maximum input of 20 volts can be used; however, as was stated earlier, it is recommended to not use more than 12V.

We can use an AC-to-DC adjustable power adapter like the one shown in the following photograph to power the Arduino using the DC supply input connector:

With this adapter, you can adjust the output power to the desired voltage. You can find power supplies similar to this online or at most stores that sell electronic items.

Using the USB connector to power the Arduino

Using the USB connector to power the Arduino is the way that I usually power it. It is by far the easiest and safest way to power the Arduino and the least expensive. You can power the Arduino directly from the USB port on your computer or from a USB rechargeable power bank like the one shown in the following photograph:

This is a very affordable and simple way to power the Arduino. It can also be used for robotic or similar projects that need the mobility to move around; however, we do need to be careful when we connect shields or other accessories to the Arduino that the USB connector can draw enough power. As an example, later in this book, we will look at the MOVI speech synthesizing and voice recognition shield that draws too much power for the Arduino to be powered by the USB connector while the shield is connected.

Now that we have mentioned Arduino shields, let's look at what they are and see the types of functionality they can provide.

Arduino shields

An Arduino shield is a modular circuit board that plugs directly into the pin headers of the Arduino board. These shields will add extra functionality to the Arduino board. If we are looking to connect to the internet, do speech recognition, control DC motors or add other functionality to the Arduino, there is probably a shield that can help us. While we are not required to use shields, they do make adding extra functionality to our Arduino boards very easy.

The following photograph shows examples of a few shields. We will be using shields in some of our sample projects later in this book:

A shield fits on top of the Arduino by plugging directly into the pin headers. We can also stack one shield on top of another if they do not use the same resources. Here is how an Arduino looks with two shields attached:

An Arduino shield makes it incredibly easy to add functionality to an Arduino Uno. Most shields usually have great documentation as well, which makes programming them also very easy. The drawback to shields is they usually cost more than purchasing the components and connecting them to the Arduino with a breadboard.

Some shields, such as the MOVI speech synthesizing and voice recognition shield and the Sparkfun Xbee radio module shield, add functionality that cannot simply be added as a single component. For functionality like this, a shield or an external circuit board would be required.

Let's take a closer look at the pin headers for the Arduino Uno R3.

Arduino pin

There is a total of 31 pins in the Arduino Uno pin headers. Most of these pins can be configured to perform different functions. The following diagram shows what the various pins can be used for:

Let's look at what the different pins do.

Digital pins

The digital pins on the Arduino are the ones that are used the most when connecting external sensors. These pins can be configured for either input or output. These pins default to an input state; therefore, when we are using a pin for input we do not need to explicitly declare them as input pins; however, it is good practice to do so because it will make it easier for someone reading our code to understand what the pin is being used for.

The digital pins will have one of two values: HIGH (1), which is 5V, or LOW (0), which is 0V. Once we start to program the Arduino, we will see how to read from or write to these pins.

Analog input pins

The Arduino Uno contains a built-in Analog-To-Digital (ADC) converter with six channels, which gives us six analog input pins. The ADC converts an analog signal into a digital value. While the digital pins have two values, either high or low, the analog input pins have values from 0 to 1023 relative to the reference value of the Arduino. The Arduino Uno has a reference value of 5V.

The analog input pins are used to read analog sensors such as rangefinders and temperature sensors. The six analog pins can also be configured as digital pins if we run out of digital pins in our project.

PWM pins

Where the analog input pins are designed to read analog sensors (input), the PWM pins are designed for output. PWM is a technique for obtaining analog results with digital output.

Since a digital output can be either on or off, to obtain the analog output the digital output is switch between HIGH and LOW rapidly. The percentage of the time that the signal is high is called the duty cycle. The following diagram illustrates this concept:

We have the ability to set the frequency of how fast the signal can switch between HIGH and LOW. This frequency is measured in Hertz and sets how many times the signal can switch per second. For example, if we set the frequency to 500 Hz, that would mean that the signal could switch 500 times a second.

We will be using the PWM pins for several examples in this book and will examine them more when we learn how to program the Arduino.

Power pins

The Arduino has several power pins. They are as follows:

  • VIN: This pin is used when we power the Arduino board using an external power supply. This is the pin used in the Using the VIN/GND pins to power the Arduino section of this chapter.
  • GND: These are the ground pins.
  • 5V: This is 5V out and is used to power most sensors.
  • 3.3V: This is 3.3V out and can be used to power sensors that are compatible with 3.3V. A list of some compatible 3.3V sensors can be found here: https://www.dfrobot.com/wiki/index.php/3.3V_Compatible_Device_List.
  • Reset: This pin can be used to reset the Arduino board by an external source.
  • ioref: This is the reference voltage for the board. For the Arduino, this will be 5V.

Serial pins

These pins can be used for serial communication. The RX (digital pin 0) is used to receive while TX (digital pin 1) is used to transmit. These pins are connected directly to the USB-to-TTL serial chip. One note, you should not connect these pins directly to an RS-232 serial port because you will damage your board.

SPI pins

The Serial Peripheral Interface (SPI) pins are used for a synchronous serial data protocol that is used by microcontrollers for communicating with peripheral devices. This protocol always has one master with one or more slave devices. The pins are:

  • MISO: The Master in Slave out pin is used to send data from the slave to the master device.
  • MOSI: The Master out Slave in the pin is used to send data from the master to the slave device.
  • SCK: The serial clock synchronizes the data transmission and is generated by the master.
  • SS: The slave select pin tells the slave to go active or to go to sleep. This is used to select which slave device should receive the transmission from the master.

Now that we have quickly looked at the pins on the Arduino Uno R3 let's look at some of the different Arduino boards.

Different Arduino boards

There are a number of different official Arduino boards and modules that can be used for various purposes. To see all the different boards, you can go to that Arduino product page (https://www.arduino.cc/en/Main/Products) where they list all the official Arduino boards.

While the Arduino Uno R3 is the most popular Arduino board within the maker community, the following lists some of the other popular boards:

Arduino Micro

The Arduino Micro is the smallest board in the Arduino family. It is based on the ATmega32U4 microcontroller. This board features 20 digital I/O pins of which 7 can be used for PWM output and 12 can be used as analog input. The Micro and the Nano (which we will see a little later) can be used for a project where the Arduino Uno may be too big.

Arduino Mega 2560

The Arduino Mega 2560 is designed for the most complex projects. It features 53 digital I/O pins, 16 analog input pins and 15 PWM output pins. It also has 4 serial UARTs for serial connections. If you want to create a complex project like a robot, the Mega is the board you will want to start with.

Lilypad

 

The Arduino Lilypad is designed for wearable projects. It can be sewn into fabrics and use power supplies and sensors that are also sewn into fabrics. The Lilypad is based on the ATmega168V or ATmega328V (low power versions). This board features 16 digital I/O, 6 analog inputs and 6 PWM outputs.

Arduino Nano

 

There are a lot of similarities between the Nano and the Micro. The Micro was released in 2012 while the Nano was released in 2008. The Nano features 14 digital I/O pins, 8 analog input pins and 6 PWM output pins. With those specifications, you may think that you should use the Micro board over the Nano however if you look at most online retailers like Amazon or eBay you can find the Nano for about half the price of the Micro.

You will also find that the Nano is easier to obtain than the Micro because there are so many generic Nano boards. We will also be using the Nano for some of the projects in this book.

Generic boards

At the beginning of this book, we noted that the Arduino is an open source hardware and software platform. All the original hardware design files are released under the Creative Commons Attribution Share-Alike license. This license allows both personal and commercial derivatives of all the Arduino boards if they credit Arduino and release their design under the same license. This has led to many lower price generic boards.

If you search for an Arduino board on most online retailer sites, the majority of the boards will not actually be genuine Arduino boards. If you look at the Arduino Uno board in the following photograph, you will notice an infinity sign with a plus (+) and minus (-) in it. That is the official Arduino logo and any board that has this logo is a genuine Arduino board.

In this book, we will be using mostly generic Arduino boards as they are cheaper and usually easier to obtain. The following photograph shows what some generic Arduino boards look like. The first photograph shows two generic Arduino Uno boards:

The next photograph shows a generic Arduino Mega 2560 board:

You will notice that these generic boards do not contain the Arduino logo; however, they still contain the name of the official board. While the previous generic boards look very similar to the official Arduino boards, that is not required. Some manufacturers chose to take the Arduino reference design and add additional functionality to their boards. The board in the following photograph is an example of this:

The DFRobot RoMeo BLE board is an Arduino-compatible robot control board with Bluetooth LE 4.0. This board takes the design of the Arduino Uno and adds a number of extra features, such as built-in Bluetooth and an integrated two-way DC motor driver.

No matter what your project is, you can probably find either a genuine Arduino board or a generic/compatible one that will fit your needs.

Summary

In this chapter, we gave a brief history of the Arduino, which included its development from a master's thesis paper to a full commercial project. This included a tour of some different Arduino boards. We also showed the different ways that the Arduino boards can be powered and gave a brief explanation of the various pin types.

In the next chapter, we will give you a brief introduction to electronics and commonly used components.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Covers enough electronics and code for users at any level
  • Includes complete circuit diagrams for all projects
  • Final robot project combines knowledge from all the chapters

Description

Mastering Arduino is an all-in-one guide to getting the most out of your Arduino. This practical, no-nonsense guide teaches you all of the electronics and programming skills that you need to create advanced Arduino projects. This book is packed full of real-world projects for you to practice on, bringing all of the knowledge in the book together and giving you the skills to build your own robot from the examples in this book. The final two chapters discuss wireless technologies and how they can be used in your projects. The book begins with the basics of electronics, making sure that you understand components, circuits, and prototyping before moving on. It then performs the same function for code, getting you into the Arduino IDE and showing you how to connect the Arduino to a computer and run simple projects on your Arduino. Once the basics are out of the way, the next 10 chapters of the book focus on small projects centered around particular components, such as LCD displays, stepper motors, or voice synthesizers. Each of these chapters will get you familiar with the technology involved, how to build with it, how to program it, and how it can be used in your own projects.

Who is this book for?

Mastering Arduino is for anybody who wants to experiment with an Arduino board and build simple projects. No prior knowledge is required, as the fundamentals of electronics and coding are covered in this book as well as advance projects.

What you will learn

  • Explains the basics of electronics and circuits along with the Arduino IDE and basic C operations
  • Use sensors to build a mini weather station
  • Control LEDs using code
  • Power a robot arm using stepper motors
  • Remotely control your Arduino using RF, Bluetooth LE, and Bluetooth Classic
  • Make a sound tone generator with buttons

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 28, 2018
Length: 372 pages
Edition : 1st
Language : English
ISBN-13 : 9781788830584
Vendor :
Arduino
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Sep 28, 2018
Length: 372 pages
Edition : 1st
Language : English
ISBN-13 : 9781788830584
Vendor :
Arduino
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 142.97
Internet of Things Programming Projects
$43.99
Industrial Internet Application Development
$54.99
Mastering Arduino
$43.99
Total $ 142.97 Stars icon
Banner background image

Table of Contents

22 Chapters
The Arduino Chevron down icon Chevron up icon
Basic Electronics Chevron down icon Chevron up icon
Circuit Diagrams Chevron down icon Chevron up icon
Basic Prototyping Chevron down icon Chevron up icon
Arduino IDE Chevron down icon Chevron up icon
Programming the Arduino - The Basics Chevron down icon Chevron up icon
Programming the Arduino - Beyond the Basics Chevron down icon Chevron up icon
Motion Sensor Chevron down icon Chevron up icon
Environment Sensors Chevron down icon Chevron up icon
Obstacle Avoidance and Collision Detection Chevron down icon Chevron up icon
Fun with Lights Chevron down icon Chevron up icon
Fun with Sound Chevron down icon Chevron up icon
Using LCD Displays Chevron down icon Chevron up icon
Speech Recognition and Voice Synthesizing Chevron down icon Chevron up icon
DC Motors and Motor Controllers Chevron down icon Chevron up icon
Servo Motors Chevron down icon Chevron up icon
Using a Relay Chevron down icon Chevron up icon
Remotely Controlling the Arduino Chevron down icon Chevron up icon
Creating a Robot Chevron down icon Chevron up icon
Bluetooth LE Chevron down icon Chevron up icon
Bluetooth Classic Chevron down icon Chevron up icon
Another Book You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(5 Ratings)
5 star 60%
4 star 0%
3 star 20%
2 star 20%
1 star 0%
Avirup Basu Oct 13, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book is great. It covers all the basics and advanced stuffs when it comes to "Programming using the Arduino platform". Additionally it covers aspects related to core basic electronics which should be necessary according to me. The chapters are well written with detailed explanation and a project based approach. This book should is good for students and developers who wanna get their hands dirty with Arduino.Overall, a great book and very well written. :)
Amazon Verified review Amazon
David Craig Aug 12, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
There is a vast difference between the sharing of information and telling people that you know something. Jon Hoffman's book is rare in that it addresses a need to provide a well rounded education to those that have no previous knowledge of Arduino in the areas of programming or in basic electronics. Arduino is a hobby and while aspects of it may be seen in the real world, kits are designed for those that like to tinker and this naturally draws a population of people that are curious and have no formal education in these things. There will be people that have knowledge of programming and no knowledge of circuitry and those that have an electronics background but never coded before, and those that are just walking in fresh. Not every chapter will be for everyone. And the book is not filled with coded examples of doing something outside the box. There are books like the Arduino Cookbook that will give you snippets of interesting projects but do not help you understand why you are required to have a 1k resistor or why you are creating an array. And that is the point of this book, the Why. "Mastering" being the concept of teaching you how to eventually understand and "master" the basics so that you will understand the projects in more advanced books and, ideally, create your own.The internet has plenty of resources. Unfortunately, the internet also has a large collection of pseudo intellectual bullies and I have seen way too many posts that consist of 1 question, 5 responses letting the initial requestor know that they are an idiot for even asking, followed by 4 people who have the same question and... no answer. Many products do not come with instructions or sample code and most hobbyists are simply trying to get a simple example to help them in their way. This book will also help you navigate these waters as it introduces the concepts of datasheet, fritzing (diagrams), and provide you with enough know how that might help you phrase questions and steer these boards without too much hazing.I purchased the book from the Packt website. For the full price of the book you can also get a digital copy which is pretty handy.
Amazon Verified review Amazon
ruben Oct 07, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
In this book Mastering Arduino, I have seen in this title as a very good guide to all the audience that wants to follow and learn from a material that has the requirements from the beginning to develop projects and understand the basics of Arduino.In all the chapters we can see the sequence of the material. I have seen the book and it helps to me to understand how I can learn programming with structures and control structures, also explains the basics of electronics, how we can mix all the stuff in a prototype, I like the chapter about structures of programming, because it can help us how to create a code with programming skills. In the last chapters we can see the application of the previous chapters, I appreciate the use of Bluetooth, this is the first book I see it has the content of Bluetooth and its applications with Arduino. It explains how integrate all in the different projects, Electronics, Programming, sensors, Communications.We can summarice the content in the following:Chapter 1: Introduction to Arduino boards, technical information, good to see this chapter, some times we need to create new things with it.Chapter 2: Basic electronics concepts and where to apply it, this is useful to understand the basics, great.Chapter 3: Circuit diagrams, useful to understand the circuits, complement with the last chapter.Chapter 4: Prototyping, great to have, how we can integrate the tools to create a prototypeChapters 5,6, and 7: Give us the ability to create and understand the coding in Arduno, how it works, how we can structure a sketch.Chapters 8-19: Give us the tool to develop projects, I could apply the first projects and give me some ideas how can integrate all in applications.Chapter 20-21: These two chapters like a lot because none of the books I have learned before explained the usage of Bluetooth.Rubén Oliva Ramos.
Amazon Verified review Amazon
Victor Oct 07, 2018
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
I got this book expecting to introduce myself to Arduino for a specific project I have to complete. By one side, the book helped me a lot, since half of it is devoted to specific projects, well detailed, that allowed me to understand the problem I was facing and how to solve it. The not interesting, from my perspective, are the 6 first chapters!!!! Somebody who wants to go into Arduino has to have some idea about electricity or programming. A book named "Mastering Arduino" cannot devote itself to explain how electricity works!!! If you are interested on the book just take a look into the contents to see if this is exactly what you need.
Amazon Verified review Amazon
Rachel Smibert Jul 07, 2023
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
The media could not be loaded. I bought this book because of the page count being a big factor for me because I thought the more pages the more info there would be. I was wrong this is very basic stuff and it is good for beginners but just the very beginning if you know what I mean. The words are typed so big and the pictures are printed so big that is only left enough room for like a few sentences and this was an appt of the pages so you don’t get as much as I thought I would out of this book. Save up your money and buy a good name book like the dummies books with like 600plus pages in it. You’ll be saving your money in the end.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.