
About this Ebook
This Electronic Ebook Pdf is Compricesis of different practical examples of Simple Arduino projects the pdf was written by Massimo Banzi.
This Ebook will help you to develop your skill in your doing of Arduino projects
The Arduino Hardware. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
The Software Integrated Development Environment (IDE). . . . . . . . . . . . . . . . 14
Installing Arduino on Your Computer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Installing the IDE: MacOS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Configuring the Drivers: MacOS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Port Identification: MacOS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Installing the IDE: Windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Configuring the Drivers: Windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Port Identification: Windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Installing the IDE: Linux. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Configuring the Drivers: Linux. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Granting Permission on the Serial Ports: Linux. . . . . . . . . . . . . . . . . . 20
4/Really Getting Started with Arduino. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Anatomy of an Interactive Device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Sensors and Actuators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Blinking an LED. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Pass Me the Parmesan. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
iii
Arduino Is Not for Quitters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Real Tinkerers Write Comments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
The Code, Step by Step. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
What We Will Be Building. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
What Is Electricity?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Using a Pushbutton to Control the LED. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
How Does This Work?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
One Circuit, a Thousand Behaviours. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5/Advanced Input and Output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Trying Out Other On/O Sensors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Homemade (DIY) Switches. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Controlling Light with PWM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Use a Light Sensor Instead of the Pushbutton. . . . . . . . . . . . . . . . . . . . . . . . . 64
Analogue Input. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Try Other Analogue Sensors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Serial Communication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Driving Bigger Loads (Motors, Lamps, and the Like). . . . . . . . . . . . . . . . . . . . 71
Complex Sensors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
The Arduino Alphabet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
6/Processing with an Arduino Lamp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Planning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Coding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Assembling the Circuit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Here’s How to Assemble It. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
7/The Arduino Cloud. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Arduino Cloud IDE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Project Hub. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
IoT Cloud. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Arduino Cloud Plans. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
8/Automatic Garden-Irrigation System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Planning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Testing the Real Time Clock (RTC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Testing the Relays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Electronic Schematic Diagrams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Testing the Temperature and Humidity Sensor. . . . . . . . . . . . . . . . . . . . . . . . 124
Coding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Setting the On and O Times.
PDF details
Pdf name: Getting Started with Arduino 4th Edition
Category: Electronics Engineering
Published date: 22 march 2022
PDF Size: 28MB
Author: Massimo Banzi
Comments