Sensors

Descriptions of sensors that might be useful for Invention Bootcamp Inventions

Table of contents

  1. Qwiic Connectors
  2. Sensor Categories:
    1. Proximity and Distance Sensors
    2. PIR Motion Detector
    3. Gesture Sensors
    4. Accelerometers
    5. Environmental Sensors
    6. Temperature Sensors
    7. Weight Sensors
    8. Additional Sensors

This page lists sensors that can be connected to an Arduino to detect changes in the environment. We provide links to libraries and example code to help you start using the sensors in your project.

The sensors are grouped my the type of stimulus (input signal). Some sensor breakout boards can detect multiple signals, e.g. temperature and humidity. Therefore, those sensors will be listed in multiple groups.

Many of the sensors are mounted on breakout boards, which make it easier to physically connect and interface to the microcontroller. Some of those breakout boards can sense multiple inputs.

Qwiic Connectors

SparkFun has created a set of sensors with pluggable I2C connectors. SparkFun also sells a selection of connecting cables for the sockets on the sensor breakout boards. Most Qwiic cables have connectors on both ends.

When sensor breakout boards support I2C communication, but don’t have Qwiic connectors, we can solder extension wires to the board. The extension wires can be created by cutting a long Qwiic cable in two. The following figure shows half of Qwiic cable, along with the labeling for the wires.

Half of a Qwiic cable

Sensor Categories:

Proximity and Distance Sensors

Sparkfun has a web page describing several options for measuring distance and proximity.

Proximity Sensor Breakout

  • Sensor: VCNL4040
  • Senses: presence of an object, and relative motion toward or away from sensor
  • Approximate range: 20 cm, max
  • Communication: I2C with Qwiic connector
  • SparkFun product page and hookup guide

SparkFun Distance Sensor Breakout

  • Sensor: RFD77402
  • Senses: distance to an object
  • Approximate range: 10 cm to 2m
  • Communication: I2C with Qwiic connector
  • SparkFun product page and hookup guide
  • Note: Requires input voltage of 3.3V.

SparkFun Distance Sensor Breakout

ZX distance and gesture sensor

  • Sensor: Custom ZX sensor
  • Senses: X and Z position of an object, simple gestures
  • Approximate range: 30 cm
  • Communication: I2C and UART
  • SparkFun product page and hookup guide
  • Other features
    • On-board processing to detection direction of motion, which can be interpreted as gestures
  • Additional hookup information

PIR Motion Detector

PIR Motion Detectors are used for room occupancy and security

  • Sensor: HC-SR501
  • Senses: presence of an object, and relative motion toward or away from sensor
  • Approximate range: up to 7 meters within 120 degree angle
  • Communication: analog
  • Amazon product page
  • hookup guide

Gesture Sensors

ZX distance and gesture sensor

  • Sensor: Custom ZX sensor
  • Senses: X and Z position of an object, simple gestures
  • Approximate range: 30 cm
  • Communication: I2C and UART
  • SparkFun product page and hookup guide
  • Other features
    • On-board processing to detection direction of motion, which can be interpreted as gestures
  • Additional hookup information

SparkFun RGB and Gesture Sensor

Accelerometers

SparkFun Triple Axis Accelerometer Breakout

  • Sensor: MMA8452Q
  • Senses: acceleration in x, y and z axes
  • Communication: I2C with Qwiic connector
  • SparkFun product page and hookup guide

Environmental Sensors

SparkFun Atmospheric Sensor Breakout

SparkFun Air Quality Breakout

Temperature Sensors

SparkFun Digital Temperature Sensor Breakout

Weight Sensors

Weight is a force, so measuring weight is obtained by a force sensors. Usually some other physical structure is needed to support the force measurement.

A load cell is a force sensor that detects the bending or elongation of the a metal bar. The bending or elongation are so small that they are not visually detectable. The electrical signal level is quite low and requires an amplifier.

10 kg Load Cell

  • Sensor: strain gages attached to a bar
  • Senses: force to bend a bar
  • Communication: voltage output
  • SparkFun product page and hookup guide
  • Getting started with Load Cells
  • Note: Choose the load cell to match the force/weight magnitude. Options from SparkFun range from 100 g to 200 kg

SparkFun Qwiic Scale

  • Sensor: none – requires load cells for input
  • Communication: I2C with Qwiic connector
  • SparkFun product page and hookup guide

Additional Sensors

The following sensors are also available from previous iterations of Invention Bootcamp.


Table of contents