Getting Started with Sensors

Book description

To build electronic projects that can sense the physical world, you need to build circuits based around sensors: electronic components that react to physical phenomena by sending an electrical signal. Even with only basic electronic components, you can build useful and educational sensor projects.

But if you incorporate Arduino or Raspberry Pi into your project, you can build much more sophisticated projects that can react in interesting ways and even connect to the Internet. This book starts by teaching you the basic electronic circuits to read and react to a sensor. It then goes on to show how to use Arduino to develop sensor systems, and wraps up by teaching you how to build sensor projects with the Linux-powered Raspberry Pi.

Publisher resources

View/Submit Errata

Table of contents

  1. Preface
    1. What Sensors to Buy?
    2. Conventions Used in This Book
    3. Using Code Examples
    4. Safari® Books Online
    5. How to Contact Us
    6. Acknowledgments
  2. 1. Sensors
    1. Project 1: Photoresistor to Measure Light
      1. Parts
      2. Build It
      3. Discussion: Photoresistors
    2. Interactive Sensor Control
    3. Going Forward
  3. 2. Basic Sensors
    1. Project 2: A Simple Switch
      1. Parts
      2. Build It
      3. Troubleshooting
    2. An LED Needs a Resistor
    3. Project 3: Buzzer Volume Control
      1. Parts
      2. Build It
      3. Troubleshooting
    4. Project 4: Hall Effect
      1. Parts
      2. Build It
      3. Troubleshooting
    5. Project 5: Firefly
      1. Integrated Circuits
      2. 555 Timer IC
      3. Light Up an LED When It’s Bright
      4. Light to Darkness
      5. Transistors
      6. Fading an LED
      7. 555 Fading Blink
      8. Capacitors
      9. Firefly
  4. 3. Sensors and Arduino
    1. Project 6: Momentary Push-Button and Pull-Up Resistors
      1. Parts
      2. Build It
      3. Run the Code
      4. Pull-Up Resistors and Arduino
    2. Project 7: Infrared Proximity to Detect Objects
      1. Parts
      2. Build It
    3. Project 8: Rotation (Pot)
      1. Parts
      2. Build It
      3. Run the Code
    4. Project 9: Photoresistor to Measure Light
      1. Parts
      2. Build It
      3. Run the Code
    5. Project 10: FlexiForce to Measure Pressure
      1. Parts
      2. Build It
      3. Run the Code
    6. Project 11: Measuring Temperature (LM35)
      1. Parts
      2. Build It
      3. Run the Code
    7. Project 12: Ultrasonic Distance Measuring (HC-SR04)
      1. Parts
      2. Build It
      3. Run the Code
    8. Conclusion
  5. 4. Sensors and the Raspberry Pi
    1. Project 13: Momentary Push Button
      1. Parts
      2. Build It
      3. Run the Button Code
      4. Troubleshooting
    2. Hello, Python World
    3. Project 14: Blink an LED with Python
      1. Parts
      2. Build the LED Blink Project
      3. Run the Code
    4. Project 15: Adjustable Infrared Switch
      1. Parts
      2. Build the IR Switch Project
      3. Run the Code
      4. Voltage Divider
    5. Analog Resistance Sensors
    6. Project 16: Potentiometer to Measure Rotation
      1. Parts
      2. Build It
      3. Install SpiDev
      4. Allow SPI Without root
      5. Run the Code
    7. Project 17: Photoresistor
      1. Parts
      2. Build It
      3. Run the Code
      4. Playing with Resistance Numbers
    8. Project 18: FlexiForce
      1. Parts
      2. Build It
      3. Run the Code
    9. Project 19: Temperature Measurements (LM35)
      1. Parts
      2. Build It
      3. Run the Code
    10. Project 20: Ultrasonic Distance
      1. Parts
      2. Build It
      3. Run the Code
      4. Real Time or Fast?
  6. A. Troubleshooting Tactics
  7. B. Arduino IDE Setup
    1. Ubuntu Linux
    2. Windows 7 and 8
    3. OS X
    4. Hello, World
  8. C. Setting Up Raspberry Pi
    1. Parts
    2. Set It Up
      1. Prepare the Memory Card
      2. Connect Cables and Boot to Installer
      3. Install Raspbian
      4. Configuration with raspi-config
      5. Boot to Desktop
    3. Using Raspberry Pi
      1. Python Programming
      2. Rootly Powers
      3. Welcome to the Command Line
    4. Take Over an Onboard LED
    5. Hello, GPIO: Connecting an External LED
      1. Parts
      2. Building the Circuit
      3. Commands to Control GPIO
      4. Troubleshooting
      5. Using GPIO Without Root
  9. D. Bill of Materials
    1. Chapter 1
    2. Chapter 2
    3. Chapter 3
    4. Chapter 4
  10. Index

Product information

  • Title: Getting Started with Sensors
  • Author(s): Kimmo Karvinen, Tero Karvinen
  • Release date: August 2014
  • Publisher(s): Make: Community
  • ISBN: 9781449367046