About the Author |
|
xi | |
About the Technical Reviewer |
|
xiii | |
|
Chapter 1 Getting Ready for the Development Environment |
|
|
1 | (22) |
|
|
3 | (4) |
|
Arduino UNO and Genuino UNO |
|
|
3 | (2) |
|
|
5 | (1) |
|
Arduino UNO Clones and Derived Boards |
|
|
6 | (1) |
|
Buying an Arduino Ethernet Shield |
|
|
7 | (2) |
|
Arduino Ethernet Shield 2 |
|
|
7 | (2) |
|
Buying an Arduino WiFi Shield |
|
|
9 | (1) |
|
Buying a Grove Base Shield |
|
|
9 | (1) |
|
|
10 | (5) |
|
|
10 | (1) |
|
|
11 | (1) |
|
|
12 | (1) |
|
|
13 | (1) |
|
|
13 | (1) |
|
Grove Infrared Reflective Sensor |
|
|
14 | (1) |
|
|
15 | (1) |
|
|
15 | (2) |
|
|
15 | (1) |
|
|
16 | (1) |
|
|
17 | (1) |
|
Buying a Modbus Shield, Module, and Sensor |
|
|
18 | (2) |
|
Multiprotocol Radio Shield for Arduino |
|
|
18 | (1) |
|
RS485/Modbus Module for Arduino and Raspberry Pi |
|
|
19 | (1) |
|
|
20 | (2) |
|
|
20 | (1) |
|
|
21 | (1) |
|
Arduino Ethernet2 Library |
|
|
22 | (1) |
|
|
22 | (1) |
|
|
22 | (1) |
|
|
22 | (1) |
|
Chapter 2 Arduino, Ethernet, and WiFi |
|
|
23 | (34) |
|
|
23 | (4) |
|
|
24 | (1) |
|
|
25 | (1) |
|
Powering the Arduino Board |
|
|
25 | (2) |
|
|
27 | (5) |
|
Arduino Ethernet Shield 2 |
|
|
27 | (2) |
|
|
29 | (3) |
|
|
32 | (1) |
|
|
33 | (5) |
|
Downloading Arduino Software |
|
|
33 | (1) |
|
|
34 | (1) |
|
Where Is the libraries Folder? |
|
|
35 | (1) |
|
Adding the Ethernet2 Library |
|
|
35 | (1) |
|
|
36 | (1) |
|
|
37 | (1) |
|
Writing Sketches for Arduino UNO |
|
|
38 | (10) |
|
|
38 | (2) |
|
|
40 | (4) |
|
|
44 | (4) |
|
Writing Sketches for Arduino Ethernet |
|
|
48 | (4) |
|
|
48 | (4) |
|
Writing Sketches for Arduino WiFi |
|
|
52 | (3) |
|
|
55 | (2) |
|
Chapter 3 Arduino at Heart |
|
|
57 | (12) |
|
|
58 | (1) |
|
|
59 | (9) |
|
|
59 | (3) |
|
|
62 | (2) |
|
|
64 | (4) |
|
|
68 | (1) |
|
Chapter 4 Your First Arduino PLC |
|
|
69 | (16) |
|
|
69 | (7) |
|
|
71 | (1) |
|
|
72 | (1) |
|
|
73 | (1) |
|
|
73 | (3) |
|
Building a Basic Programmable Logic Controller |
|
|
76 | (2) |
|
The Requirements and Logic |
|
|
77 | (1) |
|
|
77 | (1) |
|
Connecting the Components |
|
|
77 | (1) |
|
Writing Your First Arduino Sketch for PLCs |
|
|
78 | (2) |
|
Uploading Your Arduino Sketch |
|
|
79 | (1) |
|
|
79 | (1) |
|
|
80 | (1) |
|
|
80 | (2) |
|
Connecting the Components |
|
|
80 | (1) |
|
|
81 | (1) |
|
|
82 | (1) |
|
Connecting the Components |
|
|
82 | (1) |
|
|
83 | (1) |
|
|
83 | (2) |
|
Chapter 5 Building with an ArduiBox |
|
|
85 | (24) |
|
|
85 | (22) |
|
Soldering the Terminal Blocks |
|
|
88 | (2) |
|
Soldering the Male Headers |
|
|
90 | (2) |
|
Soldering the Female Headers |
|
|
92 | (2) |
|
Soldering the Reset Button |
|
|
94 | (2) |
|
Mapping Arduino Pins to the Terminal Blocks |
|
|
96 | (2) |
|
|
98 | (2) |
|
|
100 | (2) |
|
|
102 | (3) |
|
|
105 | (1) |
|
Connecting the Temperature Sensor and Fan |
|
|
105 | (2) |
|
|
107 | (1) |
|
|
107 | (2) |
|
Chapter 6 Writing PLC-Style Applications with plcLib |
|
|
109 | (18) |
|
Introduction to the plcLib Library |
|
|
109 | (2) |
|
Installing plcLib on Arduino |
|
|
109 | (1) |
|
The Default Hardware Configuration |
|
|
110 | (1) |
|
|
111 | (1) |
|
Basic Ladder Logic Symbols |
|
|
111 | (1) |
|
Implementing Simple PLC-Style Applications |
|
|
111 | (14) |
|
|
112 | (4) |
|
Inverted Single Bit Input |
|
|
116 | (3) |
|
Inverted Single Bit Output |
|
|
119 | (1) |
|
|
120 | (2) |
|
|
122 | (3) |
|
|
125 | (2) |
|
|
127 | (12) |
|
Multiprotocol Radio Shield |
|
|
127 | (2) |
|
RS485/Modbus Module for Arduino and Raspberry Pi |
|
|
129 | (1) |
|
Installing the RS485 Library for Arduino |
|
|
130 | (1) |
|
Building a PLC with Modbus |
|
|
131 | (7) |
|
Building the Hardware Setup |
|
|
131 | (4) |
|
|
135 | (3) |
|
|
138 | (1) |
|
Chapter 8 Mapping PLCs into the Cloud Using the NearBus Cloud Connector |
|
|
139 | (26) |
|
|
139 | (1) |
|
|
139 | (1) |
|
Mapping a PLC Into the Cloud Using NearBus Cloud Connector |
|
|
140 | (14) |
|
|
140 | (1) |
|
Defining a New Device in NearBus |
|
|
140 | (3) |
|
Downloading the NearBus Library for Arduino |
|
|
143 | (1) |
|
|
144 | (7) |
|
Controlling the Grove LED from the NearBus Cloud |
|
|
151 | (3) |
|
Using the IFTTT DIY Light Platform |
|
|
154 | (10) |
|
Creating a Recipe with IFTTT |
|
|
154 | (10) |
|
|
164 | (1) |
|
Chapter 9 Building a Better PLC |
|
|
165 | (14) |
|
|
165 | (5) |
|
Boards with a Single Relay |
|
|
165 | (4) |
|
Boards with Multiple Relays |
|
|
169 | (1) |
|
|
170 | (8) |
|
Driving High-Power DC Loads with Relay Shields |
|
|
170 | (3) |
|
Driving High-Power AC Loads with Relay Shields |
|
|
173 | (4) |
|
Adding More Relay Channels |
|
|
177 | (1) |
|
|
178 | (1) |
Index |
|
179 | |