Grady Koch emphasizes building things from LEGO that can be applied to practical use in science, engineering, or security. He is the author of LEGO Optics: Projects in Optical and Laser Science with LEGO, High-Tech LEGO: Projects in Science, Engineering, and Spycraft with Technic and Mindstorms EV3, and Secrets of Eli's LEGO Collection. He also writes for and runs hightechlego.com, which features various LEGO technology projects. His day job since 1987 has been as a research engineer with NASA Langley Research Center. There he works with technology for remote sensing atmospheric phenomena. He holds a PhD in Electrical Engineering. And he holds three patents in the field of wind measurements with lidar.
Introduction
Chapter 1: The LEGO Arduino Workstation
The Arduino
Assembling the LEGO Arduino Workstation
The Breadboard and Wiring
Final Assembly
Summary
Chapter 2: Programming the EV3 Intelligent Brick
Getting Started with the MINDSTORMS EV3 Programming Environment
Programming
Extra and Aftermarket Device Blocks
My Blocks
Summary
Chapter 3: Programming the Arduino
Installing the Arduino Integrated Development Environment
Navigating the Arduino IDE
Running a First Sketch
Working with Libraries
Working with Functions
Summary
Chapter 4: Sensors and Electronics
MINDSTORMS Sensors and Motors
Aftermarket MINDSTORM-Compatible Sensors
Arduino Sensors
Pulsewidth Modulation (PWM)
Inter-Integrated Circuit (I2C) Inteface
Serial Peripheral Interface (SPI)
Electronic Components
Resistors
Capacitors
Summary
Chapter 5: The LEGO Metal Detector-I2C Sensor with EV3 Analog Interface
Mounting the Grove Inductive Sensor
The Low-Pass Filter
Wiring Connections
EV3 Code
Arduino Sketch
Results
Alternate Mount
Summary
Chapter 6: Programmable LEDs-I2C Controller with EV3 Analog Interface
Mounting the Qwiic LED Stick
Wiring Connections
Analog Signals from the EV3 Intelligent Brick
Arduino Sketch
ResultsSummary
Chapter 7: I2C Communication with the EV3 Intelligent Brick
The EV3 I2C Block
Bits and Bytes
Wiring Connections
Reading Bytes into the EV3 Intelligent Brick
EV3 Code for Reading
Arduino Sketch for Reading
Writing Bytes from the EV3 Intelligent Brick
EV3 Code for Writing
Arduino Sketch for WritingI2C Conflicts
Summary
Chapter 8: The LEGO Lidar-PWM Sensor with EV3 I2C Interface
Mounting the Lidar
Wiring Connections
EV3 Code for 10-m Distance Capability
Arduino Sketch for 10-m Distance Capability
Software Modification for 40-m Distance Capability
Example Application for Scanning a Scene
Example Application for Measuring a Tree
Adding a Camera to Build the LEGO Traffic Monitor
Summary
Chapter 9: The LEGO Weather Station-SPI Sensor with EV3 I2C Interface
Mounting the Atmospheric Sensor
Building the LEGO Weather Station
Wiring Connections
EV3 Code
Arduino Sketch
Example Applications for Diurnal Weather Trends
Summary
Chapter 10: The LEGO Spectrum Analyzer-Arduino Shield with I2C Input to EV3
Mounting the Spectrum Shield
Building the Spectral Display
Wiring Connections
EV3 Code
Arduino Sketch
Results
Summary
Chapter 11: The Favorite Color Machine-Arduino Shield with I2C Output from EV3
Mounting the NeoPixel Shield
Mounting the LEGO Motors
Wiring Connections
EV3 Code
Arduino SketchUsing the Favorite Color Machine
Summary
Chapter 12: Connecting MINDSTORMS to a Smartphone
Mounting the 1Sheeld+
Building the Tilt Mimic
Wiring Connections for the Tilt Mimic
EV3 Code for the Tilt Mimic
Arduino Sketch for the Tilt Mimic
Setting up the Smartphone for the Tilt Mimic
Running the Tilt Mimic
The Intrusion Monitor
Building the Intrusion Monitor Sensor Mount
Building the Intrusion Monitor Smartphone Stand
Wiring Connections for the Intrusion Monitor
EV3 Code for the Intrusion Monitor
Arduino Sketch for the Intrusion Monitor
Setting up the Smartphone for the Intrusion Monitor
Running the Intrusion Monitor
Summary
Appendix: Parts Lists
Parts Used in Chapter 1 for the LEGO Arduino Workstation
Parts Used in Chapter 5 for the LEGO Metal Detector
Parts Used in Chapter 6 for Programmable LEDs
Parts Used in Chapter 8 for the LEGO Lidar
Parts Used in Chapter 9 for the LEGO Weather Station
Parts Used in Chapter 10 for the LEGO Spectrum Analyzer
Parts Used in Chapter 11 for the Favorite Color Machine
Parts Used in Chapter 12 for Connecting MINDSTORMS to a Smartphone