3
Interfacing with Analog Sensors
What You'll Need for This Chapter
- Arduino Uno or Adafruit METRO 328
- USB cable (Type A to B for Uno, Type A to Micro-B for METRO)
- Half-size or full-size breadboard
- Assorted jumper wires
- 220Ω resistors (×3)
- 10kΩ resistors (×2)
- 10kΩ trim potentiometer
- Photoresistor
- An analog sensor (any of the following)
- TMP36 analog temperature sensor
- Sharp GP2Y0A21YK0F IR distance sensor with JST cable
- ADXL335, ADXL377, or ADXL326 triple-axis accelerometer
- 5 mm white LED
- 5 mm common-anode RGB LED
- CODE AND DIGITAL CONTENT FOR THIS CHAPTER
- Code downloads, videos, and other digital content for this chapter can be found at:
exploringarduino.com/content2/ch3
- Code for this chapter can also be obtained from the Downloads tab on this book's Wiley web page:
wiley.com/go/exploringarduino2e
The world around you is analog. Even though you might hear that the world is “going digital,” most observable features in your environment...