Preface |
|
xvii | |
Acknowledgments |
|
xix | |
1 Introduction |
|
1 | (16) |
|
Which Microcontroller to Use? |
|
|
1 | (5) |
|
We Chose Arduino, So Now What? |
|
|
3 | (2) |
|
|
5 | (1) |
|
|
5 | (1) |
|
|
6 | (1) |
|
|
7 | (10) |
|
Downloading and Installing the Arduino Integrated Development Environment |
|
|
8 | (1) |
|
|
9 | (2) |
|
Running Your First Program |
|
|
11 | (6) |
2 I Don't Know How to Program |
|
17 | (18) |
|
I Don't Need No Stinkin' CW! |
|
|
17 | (1) |
|
Like CW, Like Programming |
|
|
18 | (1) |
|
|
18 | (2) |
|
|
18 | (1) |
|
|
19 | (1) |
|
|
19 | (1) |
|
|
19 | (1) |
|
|
19 | (1) |
|
Arduino Programming Essentials |
|
|
20 | (12) |
|
|
20 | (2) |
|
|
22 | (1) |
|
Where's the main() Function? |
|
|
22 | (2) |
|
|
24 | (1) |
|
|
25 | (1) |
|
I Thought There Were Five Program Steps? |
|
|
26 | (1) |
|
Modifying the Blink Sketch |
|
|
26 | (6) |
|
|
32 | (2) |
|
|
32 | (1) |
|
Use a Different Data Type |
|
|
32 | (1) |
|
Avoid Using the String Class |
|
|
33 | (1) |
|
|
33 | (1) |
|
|
34 | (1) |
|
|
34 | (1) |
3 The LCD Shield Project |
|
35 | (32) |
|
Libraries: Lessening the Software Burden |
|
|
36 | (1) |
|
Not All LCDs Are the Same |
|
|
36 | (1) |
|
|
37 | (2) |
|
Assembling the LCD Shield |
|
|
39 | (7) |
|
|
40 | (2) |
|
Soldering Components to the Shield |
|
|
42 | (4) |
|
Adding Components Using a Schematic |
|
|
46 | (5) |
|
|
51 | (1) |
|
Loading the Example Software and Testing |
|
|
52 | (4) |
|
A "Code Walk-Through" of the "HelloWorld" Sketch |
|
|
56 | (3) |
|
Explore the Other Examples |
|
|
59 | (1) |
|
Using Your LCD Display with the TEN-TEC Rebel |
|
|
59 | (6) |
|
|
60 | (1) |
|
|
61 | (4) |
|
|
65 | (2) |
4 Station Timer |
|
67 | (34) |
|
Software Version of ID Timer |
|
|
68 | (2) |
|
|
70 | (1) |
|
|
71 | (2) |
|
Fixing Bad Magic Numbers: #define |
|
|
71 | (2) |
|
A Second Way to Remove Magic Numbers: const |
|
|
73 | (1) |
|
Fixing Flat Forehead Mistakes |
|
|
73 | (1) |
|
|
74 | (4) |
|
|
75 | (1) |
|
The static Data Type Specifier |
|
|
76 | (2) |
|
Using a Real Time Clock (RTC) Instead of a Software Clock |
|
|
78 | (1) |
|
The Inter-Integrated Circuit (PC or I2C) Interface |
|
|
78 | (1) |
|
The I2C and the DS1307 RTC Chip |
|
|
79 | (2) |
|
BCD and the DS1307 Registers |
|
|
80 | (1) |
|
Constructing the RTC/Timer Shield |
|
|
81 | (8) |
|
The Adafruit RTClib Library |
|
|
85 | (4) |
|
|
89 | (9) |
|
|
97 | (1) |
|
|
98 | (1) |
|
|
98 | (1) |
|
|
99 | (1) |
|
|
100 | (1) |
5 A General Purpose Panel Meter |
|
101 | (18) |
|
|
102 | (2) |
|
|
104 | (6) |
|
An Alternate Design Layout |
|
|
106 | (4) |
|
Loading the Example Software and Testing |
|
|
110 | (5) |
|
|
113 | (1) |
|
Instantiating the lcd and lbg Objects |
|
|
113 | (1) |
|
|
114 | (1) |
|
Testing and Calibration of the Meter |
|
|
115 | (1) |
|
Changing the Meter Range and Scale |
|
|
116 | (1) |
|
|
116 | (1) |
|
|
117 | (1) |
|
|
117 | (1) |
|
|
117 | (2) |
6 Dummy Load |
|
119 | (12) |
|
|
120 | (4) |
|
|
121 | (1) |
|
Fabricating the Lid Connections |
|
|
122 | (1) |
|
Attaching the Lid to the Resistor Pack |
|
|
123 | (1) |
|
|
124 | (1) |
|
|
124 | (2) |
|
|
126 | (4) |
|
|
130 | (1) |
7 A CW Automatic Keyer |
|
131 | (24) |
|
Required Software to Program an ATtiny85 |
|
|
133 | (1) |
|
Connecting the ATtiny85 to Your Arduino |
|
|
134 | (3) |
|
The Proper Programming Sequence |
|
|
137 | (1) |
|
Some Things to Check If Things Go South |
|
|
137 | (1) |
|
|
138 | (5) |
|
Compiling and Uploading Programs with Digispark |
|
|
140 | (3) |
|
|
143 | (8) |
|
|
144 | (1) |
|
|
144 | (6) |
|
|
150 | (1) |
|
|
151 | (2) |
|
|
153 | (2) |
8 A Morse Code Decoder |
|
155 | (18) |
|
Hardware Design Considerations |
|
|
155 | (5) |
|
Signal Preprocessing Circuit Description |
|
|
157 | (2) |
|
Notes When Using the Decoder with the TEN-TEC Rebel |
|
|
159 | (1) |
|
|
160 | (11) |
|
Search a Binary Tree of ASCII Characters |
|
|
160 | (2) |
|
|
162 | (7) |
|
|
169 | (2) |
|
|
171 | (2) |
9 A PS2 Keyboard CW Encoder |
|
173 | (26) |
|
|
173 | (3) |
|
Testing the PS2 Connector |
|
|
175 | (1) |
|
The PS2 Keyboard Encoder Software |
|
|
176 | (18) |
|
Adding the PS2 Library Code to Your IDE |
|
|
176 | (13) |
|
Code Walk-Through on Listing 9-1 |
|
|
189 | (1) |
|
|
190 | (1) |
|
|
190 | (2) |
|
|
192 | (2) |
|
Isolating the Arduino from the Transmitter |
|
|
194 | (2) |
|
|
196 | (1) |
|
|
197 | (1) |
|
|
197 | (1) |
|
|
198 | (1) |
|
|
198 | (1) |
|
|
198 | (1) |
10 Project Integration |
|
199 | (20) |
|
|
200 | (1) |
|
The Real Time Clock (RTC) Shield |
|
|
201 | (1) |
|
|
202 | (1) |
|
|
202 | (1) |
|
|
203 | (2) |
|
Software Project Preparation |
|
|
205 | (1) |
|
C++, OOP, and Some Software Conventions |
|
|
206 | (3) |
|
|
207 | (2) |
|
|
209 | (1) |
|
public and private Members of a Class |
|
|
209 | (1) |
|
|
209 | (1) |
|
|
210 | (1) |
|
|
211 | (1) |
|
|
211 | (6) |
|
|
212 | (2) |
|
|
214 | (1) |
|
How the Terms Class, Instantiation, and Object Relate to One Another |
|
|
214 | (1) |
|
|
215 | (2) |
|
|
217 | (1) |
|
|
218 | (1) |
11 Universal Relay Shield |
|
219 | (8) |
|
|
221 | (3) |
|
|
221 | (1) |
|
Construction of the Relay Shield |
|
|
222 | (2) |
|
|
224 | (2) |
|
Test Sketch "Walk-Through" |
|
|
225 | (1) |
|
|
226 | (1) |
12 A Flexible Sequencer |
|
227 | (18) |
|
Just What Is a Sequencer? |
|
|
228 | (1) |
|
|
228 | (1) |
|
|
228 | (1) |
|
Constructing the Sequencer |
|
|
229 | (5) |
|
A Purpose-Built Sequencer |
|
|
230 | (4) |
|
Programming and Testing the Sequencer |
|
|
234 | (1) |
|
Initial Testing of the Sequencer |
|
|
234 | (1) |
|
Loading the Sequencer Program and Testing |
|
|
235 | (5) |
|
Sequencer Code "Walk-Through" |
|
|
238 | (1) |
|
Modifying the Sequence Order and Delay Time |
|
|
239 | (1) |
|
Configuring the Jumpers for Different Situations |
|
|
239 | (1) |
|
Modifying the Relay Shield from Chapter 11 |
|
|
240 | (4) |
|
Alternate Listing for the Relay Shield Sequencer |
|
|
241 | (3) |
|
|
244 | (1) |
13 Rotator Controller |
|
245 | (38) |
|
The Arduino Antenna Rotator Controller |
|
|
246 | (10) |
|
|
246 | (1) |
|
|
247 | (1) |
|
|
248 | (5) |
|
|
253 | (3) |
|
Adding the I2C Interface to the Relay Shield from Chapter 11 |
|
|
256 | (1) |
|
Connecting the Rotator Controller |
|
|
256 | (4) |
|
Early Cornell-Dublier Electronics (CDE) Models |
|
|
257 | (1) |
|
Later Models from HyGain, Telex, and MFJ |
|
|
258 | (1) |
|
Yaesu Models G-800SDX/DXA, G-1000SDX/DXA, and G-2800DXA |
|
|
259 | (1) |
|
|
260 | (19) |
|
Arduino Beam Heading Software |
|
|
260 | (17) |
|
|
277 | (2) |
|
|
279 | (1) |
|
Storing a New Heading in EEPROM |
|
|
279 | (1) |
|
|
279 | (3) |
|
Finding the Coordinates for a QTH |
|
|
279 | (1) |
|
|
280 | (2) |
|
|
282 | (1) |
14 A Directional Watt and SWR Meter |
|
283 | (48) |
|
SWR and How It Is Measured |
|
|
284 | (1) |
|
Obtaining the Antenna System SWR |
|
|
284 | (2) |
|
|
286 | (1) |
|
Constructing the Directional Watt/SWR Meter |
|
|
286 | (18) |
|
Design and Construction of the Directional Coupler/Remote Sensor |
|
|
288 | (4) |
|
|
292 | (4) |
|
Final Assembly of the Coupler/Sensor |
|
|
296 | (2) |
|
Interface Shield Construction |
|
|
298 | (1) |
|
|
299 | (2) |
|
|
301 | (3) |
|
Testing the Directional Wattmeter/SWR Indicator |
|
|
304 | (3) |
|
Calibrating the Directional Wattmeter |
|
|
304 | (3) |
|
|
307 | (22) |
|
Definitions and Variables |
|
|
324 | (1) |
|
|
325 | (1) |
|
|
326 | (3) |
|
Further Enhancements to the Directional Wattmeter/SWR Indicator |
|
|
329 | (1) |
|
|
329 | (2) |
15 A Simple Frequency Counter |
|
331 | (18) |
|
|
333 | (1) |
|
|
334 | (4) |
|
An Alternate Design for Higher Frequencies |
|
|
337 | (1) |
|
Code Walk-Through for Frequency Counter |
|
|
338 | (4) |
|
Displaying the Tuned Frequency of Your Display-less QRP Rig |
|
|
342 | (5) |
|
Double Conversion Applications |
|
|
342 | (1) |
|
Adding a Frequency Display to the MFJ Cub QRP Transceiver |
|
|
343 | (2) |
|
Adding a Frequency Display to a NorCal 40 |
|
|
345 | (1) |
|
Direct Conversion Applications |
|
|
346 | (1) |
|
|
347 | (1) |
|
|
347 | (2) |
16 A DDS VFO |
|
349 | (30) |
|
|
350 | (1) |
|
|
350 | (2) |
|
DDS VFO Circuit Description |
|
|
352 | (5) |
|
The Analog Devices AD9850 Breakout Module |
|
|
352 | (1) |
|
Constructing the DDS VFO Shield |
|
|
353 | (1) |
|
Adding an Output Buffer Amplifier for the DDS VFO |
|
|
353 | (3) |
|
The Front Panel and Interconnection |
|
|
356 | (1) |
|
DDS VFO Functional Description |
|
|
357 | (4) |
|
|
357 | (1) |
|
|
357 | (1) |
|
SW1, the User Frequency Selection Switch (UFSS) |
|
|
358 | (2) |
|
SW2, the Band-Up Switch (BUS) |
|
|
360 | (1) |
|
SW3, the Band-Down Switch (BDS) |
|
|
360 | (1) |
|
SW4, Plus Step Switch (PSS) |
|
|
361 | (1) |
|
SW5, Minus Step Switch (MSS) |
|
|
361 | (1) |
|
|
361 | (1) |
|
|
361 | (1) |
|
EEPROM Initialization Program |
|
|
362 | (4) |
|
The KP VFO Software (VFOControlProgram.ino) |
|
|
366 | (3) |
|
|
367 | (1) |
|
|
368 | (1) |
|
|
369 | (2) |
|
|
370 | (1) |
|
Using the DDS VFO with Your Radio |
|
|
371 | (5) |
|
|
372 | (2) |
|
|
374 | (1) |
|
CRKits CRK 10A 40 meter QRP Transceiver |
|
|
374 | (2) |
|
Other Applications of the DDS VFO and Additional Enhancements |
|
|
376 | (1) |
|
|
377 | (2) |
17 A Portable Solar Power Source |
|
379 | (26) |
|
|
381 | (3) |
|
|
384 | (1) |
|
Panel Positioning and Stepper Motor |
|
|
385 | (4) |
|
|
385 | (1) |
|
|
386 | (2) |
|
|
388 | (1) |
|
Solar Panel Support Structure |
|
|
389 | (1) |
|
|
390 | (1) |
|
Mounting the Stepper Motor |
|
|
391 | (4) |
|
|
395 | (1) |
|
Placing the Quick Connectors |
|
|
396 | (1) |
|
The Motor Controller Shield |
|
|
396 | (2) |
|
|
397 | (1) |
|
Motor Controller Shield Wiring |
|
|
397 | (1) |
|
|
398 | (1) |
|
|
399 | (4) |
|
|
403 | (1) |
|
|
403 | (1) |
|
|
404 | (1) |
A Suppliers and Sources |
|
405 | (14) |
B Substituting Parts |
|
419 | (4) |
C Arduino Pin Mapping |
|
423 | (6) |
Index |
|
429 | |