User Controls
- Joystick Module
- Rotary Encoder Module
- Button Module
- Membrane Switch Module
- Metal Touch Module
- Tap Module
Engineering · Lesson 03
A sensor kit turns a microcontroller from a simple board into a device that can react to light, sound, motion, heat, touch, distance, and time. This lesson organizes a common beginner sensor modules kit into useful categories, highlights the most important safety notes, and helps students decide which module to try first.
← Back to EngineeringUse these original concept diagrams as quick visual anchors while students sort the kit by what each board senses.
VCC to 5V GND to GND TRIG to digital output ECHO to digital input VCC to 5V GND to GND OUT to digital input VCC to 5V GND to GND DO to digital input AO to analog input VCC to 5V GND to GND AO to analog input DO to digital input VCC to 5V GND to GND S to digital input VCC to 5V or 3.3V GND to GND DQ/S to digital data pin VCC to 5V or 3.3V GND to GND DATA/S to digital input VCC to 5V GND to GND AO to analog input DO to digital input VCC to 3.3V or 5V GND to GND SCL to I2C clock SDA to I2C data VCC to 5V GND to GND OUT to digital input
VCC to 5V GND to GND S/OUT to digital input + to 5V - to GND S to analog input VCC to 5V GND to GND OUT/S to digital input R to PWM digital pin G to PWM digital pin B to PWM digital pin - / GND to GND R to PWM digital pin G to PWM digital pin B to PWM digital pin - / GND to GND R to digital/PWM pin G to digital/PWM pin - / GND to GND S to digital output + to 5V - to GND S to digital output + to 5V - to GND S to PWM/tone pin + to 5V - to GND VCC to 5V GND to GND IN/S to digital output COM/NO/NC to switched circuit S/OUT to digital input + to 5V - to GND S/IN to digital output + to 5V - to GND S/IN to digital output + to 5V - to GND VCC to 5V GND to GND AO to analog input DO to digital input VCC to 5V GND to GND SCL to I2C clock SDA to I2C data VCC to 5V GND to GND SCL to I2C clock SDA to I2C data DC IN to 6.5V-9V supply 5V to breadboard + rail 3.3V to low-voltage rail GND to breadboard - rail VCC to 5V GND to GND VRx to analog input VRy to analog input SW to digital input + to 5V GND to GND CLK to digital input DT to digital input SW to digital input S to digital input + to 5V - to GND S to digital input + to 5V - to GND S to digital input + to 5V - to GND S to digital input + to 5V - to GND This style of sensor kit is popular because it gives beginners a large variety of modules at a relatively low cost. It works well as an introduction to physical computing because each board usually exposes a simple set of pins for power, ground, and signal.
Not every board in a sensor kit is actually a sensor. Some are inputs that measure the world, some are outputs that create light or sound, and some are support modules that handle display, power, or communication.
| Type | What It Does | Examples From This Kit |
|---|---|---|
| Environmental / Physical Input | Measures light, motion, sound, temperature, humidity, water, or magnetic effects | Photo-resistor, PIR, flame, hall, sound, DS18B20, DHT-style temperature-humidity, water level |
| User Input | Lets a person control the circuit directly | Joystick, button, rotary encoder, membrane switch, metal touch, tap, tilt switch |
| Output / Alert | Creates sound, light, switching, or signaling | RGB LED, SMD RGB, two-tone LED, 7-color flash, laser emitter, buzzers, relay |
| Timing / Interface / Support | Helps the system keep time, communicate, or power other modules | RTC module, IR receiver/emitter, LCD1602, power supply, GY-521 motion board |
The original kit inventory is much easier to use once it is grouped into categories.
If you only want a few strong first experiments, these modules give the best learning payoff with minimal setup.
| Module | Why It Is Useful | Good First Project |
|---|---|---|
| Photo-resistor Module | Easy way to learn analog input and voltage division | Automatic night light |
| Ultrasonic Sensor Module | Teaches timing, distance measurement, and object detection | Parking sensor or distance alarm |
| HC-SR501 PIR Sensor | Simple motion sensing with very visible real-world uses | Motion-triggered lamp or buzzer |
| Temperature and Humidity Module | Introduces environmental monitoring and data logging | Mini weather station |
| Joystick Module | Fast path into two-axis analog control plus a pushbutton | Menu navigation or game controller input |
| LCD1602 Module | Makes sensor data visible without a computer screen | Display distance, temperature, or menu states |
These pairings help students see how different modules can work together. Combining two sensors that measure the same thing is called sensor fusion: the GY-521's gyro and accelerometer are the classic pair. See Sensor Fusion.
A sensor is a measurement chain. A transducer responds to a physical quantity, conditioning circuitry turns that response into a usable electrical signal, and the controller converts the signal into data. Your code then calibrates, filters, and interprets that data. A module's output is not automatically the same thing as the real-world quantity.
| Signal Type | What the Controller Receives | What to Check |
|---|---|---|
| Digital state | HIGH or LOW | Logic voltage, active-high/active-low behavior, pull-up or pull-down |
| Analog voltage | A range sampled by an ADC | Maximum input voltage, ADC reference, resolution, source impedance |
| Pulse / timing | Pulse width, frequency, or counted edges | Timer range, edge polarity, timeout, electrical level |
| I²C | Addressed bytes on SDA and SCL | Address conflicts, pull-ups, bus voltage, library/register map |
| SPI | Clocked bytes on shared data lines | Chip-select pin, voltage, clock mode, maximum clock rate |
| One-wire / custom | Protocol-specific timed data | Required pull-up, timing, cable length, compatible library |
Choose one module and produce a measurement system another student can verify. The engineering work is the evidence, not merely a serial monitor that prints changing numbers.
| Stage | Required Evidence |
|---|---|
| Plan | Measured quantity, usable range, pinout, voltage levels, signal type, and safety constraints |
| Wire | Labeled schematic or connection table with a shared reference ground where required |
| Acquire | Timestamped raw readings at a stated sample rate, including a timeout or missing-data behavior |
| Calibrate | Known references, conversion method, units, and limits of the calibration |
| Test | Repeated trials, a graph, and an error or variability calculation |
| Respond | An LED, buzzer, display, motor, or logged event driven by a justified threshold or control rule |
| Reflect | One false reading or failure mode and a specific hardware or software improvement |
1. What extra hardware do you need to actually use this sensor modules kit?
2. Which module is best known for distance measurement?
3. What is the safe input voltage range for the Elegoo power supply module listed in this lesson?
4. Which item in the kit is not mainly a sensor?