Sensor Module
Temperature Sensor (DS18B20)
Description: The DS18B20 is a digital temperature sensor that uses the 1‑Wire protocol. It measures temperature with configurable resolution (9 to 12 bits) and returns readings in degrees Celsius.
Library Installation: This module requires the DS18B20 library to be downloaded to the board first.
Test Code: GitHub
Connection:
W55MH32 |
DS18B20 |
|---|---|
3V3 |
VDD |
GND |
GND |
PG4 (any GPIO) |
DQ |
Demo:
Water Depth Sensor
Description: The water depth sensor (also called a water level sensor) uses an analog voltage output that changes based on the water level. It outputs higher voltage (and higher ADC value) when submerged deeper.
Connection:
W55MH32 |
Water Depth Sensor |
|---|---|
3V3 (or 5V) |
VCC |
GND |
GND |
PA0 (ADC) |
Signal |
Test Code: GitHub
Demo:
Photosensitive Sensor
Description: The photosensitive sensor module (also called a light sensor or photoresistor module) detects ambient light levels. It outputs an analog voltage that varies with light intensity – higher voltage (and higher ADC value) in bright light, lower voltage in darkness.
Connection:
W55MH32 |
Photosensitive Module |
|---|---|
3V3 |
VCC |
GND |
GND |
PA0 (ADC) |
Signal |
Test Code: GitHub
Demo:
Touch Sensor
Description: The touch sensor module detects physical touch or proximity. It outputs a digital signal – HIGH when touched, LOW when not touched.
Connection:
W55MH32 |
Touch Module |
|---|---|
3V3 |
VCC |
GND |
GND |
PG8 |
Signal |
Test Code: GitHub
Demo:
Flame Sensor
Description: The flame sensor module detects infrared (IR) radiation emitted by flames. It has both analog and digital outputs. The analog output provides a voltage proportional to flame intensity (higher value = less flame). The digital output is active LOW – it goes LOW when a flame is detected. A potentiometer on the module adjusts the digital threshold sensitivity.
Connection:
W55MH32 |
Flame Module |
|---|---|
3V3 |
VCC |
GND |
GND |
PA0 (ADC) |
AO (Analog Out) |
PG8 |
DO (Digital Out) |
Test Code: GitHub
Demo:
Temperature & Humidity Sensor (DHT22)
Description: The DHT22 is a digital temperature and humidity sensor that uses a single‑wire protocol. It provides high accuracy readings: ±0.5°C for temperature and ±2‑5% for humidity.
Connection:
W55MH32 |
DHT22 Sensor |
|---|---|
3V3 |
VCC |
GND |
GND |
PG8 |
Signal |
Test Code: GitHub
Demo:
RTC Module
Description: The PCF8563 is a real-time clock (RTC) module that keeps track of the current date and time. It communicates via I2C and includes battery backup to maintain time when the main power is off.
Connection:
W55MH32 |
PCF8563 Module |
|---|---|
3V3 |
VCC |
GND |
GND |
PB10 (SCL) |
SCL |
PB11 (SDA) |
SDA |
Test Code: GitHub
Library Installation: This module requires the PCF8563 library to be downloaded to the board first.
Demo:
Sound Sensor
Description: The sound sensor module (also called a microphone or sound detector) detects ambient sound levels. It outputs an analog voltage that varies with sound intensity – higher voltage (and higher ADC value) when sound is detected.
Connection:
W55MH32 |
Sound Sensor |
|---|---|
3V3 |
VCC |
GND |
GND |
PA0 (ADC) |
Signal (AO) |
Test Code: GitHub
Demo:
Ultrasonic Sensor
Description: The HC-SR04 ultrasonic sensor measures distance by emitting ultrasonic waves and measuring the time it takes for the echo to return. It provides precise distance measurements from 2cm to 4m. The sensor uses two pins: Trigger (output) and Echo (input).
Connection:
W55MH32 |
HC-SR04 Sensor |
|---|---|
3V3 |
VCC |
GND |
GND |
PG8 |
Trigger |
PG7 |
Echo |
Test Code: GitHub
Library Installation: This module requires the HCSR04 library to be downloaded to the board first.
Demo:
Rotary Encoder
Description: The rotary encoder module detects rotational movement and direction using two digital output pins (A and B) that generate quadrature signals. The module is commonly used for menu navigation, volume control, and position sensing.
Connection:
W55MH32 |
Rotary Encoder |
|---|---|
3V3 |
VCC |
GND |
GND |
PG7 |
Output A |
PG8 |
Output B |
Test Code: GitHub
Demo:
Limit Switch
Description: The limit switch module is a mechanical switch that triggers when an object makes contact with its actuator. It is commonly used as an end-stop sensor for CNC machines, 3D printers, and robotics. The module typically outputs a digital HIGH or LOW signal depending on whether the switch is pressed.
Connection:
W55MH32 |
Limit Switch |
|---|---|
3V3 |
VCC |
GND |
GND |
PG8 |
Signal |
Test Code: GitHub
Demo:
PIR Sensor
Description: The PIR (Passive Infrared) sensor module detects motion by sensing changes in infrared radiation emitted by moving objects (e.g., humans or animals). It outputs a digital HIGH signal when motion is detected.
Connection:
W55MH32 |
PIR Sensor |
|---|---|
3V3 |
VCC |
GND |
GND |
PG8 |
Signal |
Test Code: GitHub
Demo:
Vibration Sensor
Description: The vibration sensor module detects physical vibrations and shocks using a piezoelectric element or a spring-based mechanism. It outputs a digital signal when vibration exceeds a threshold. The module is useful for detecting movement, tapping, or impact events.
Connection:
W55MH32 |
Vibration Sensor |
|---|---|
3V3 |
VCC |
GND |
GND |
PG8 |
Signal |
Test Code: GitHub
Demo:
Line Follower Module
Description: The line follower module uses an infrared emitter and receiver to detect the difference between light and dark surfaces. It outputs a digital signal – HIGH when on a light surface (or dark, depending on the module) – allowing a robot to follow a line. Some modules have multiple sensors for improved tracking.
Connection:
W55MH32 |
Line Follower |
|---|---|
3V3 |
VCC |
GND |
GND |
PG8 |
Signal |
Test Code: GitHub
Demo:
IR Distance Sensor
Description: The IR distance sensor module uses infrared light to measure the distance to an object. It outputs an analog voltage that decreases as the object moves farther away. The sensor is useful for obstacle detection and proximity sensing in robotics applications.
Connection:
W55MH32 |
IR Distance Sensor |
|---|---|
5V |
VCC |
GND |
GND |
PA0 (ADC) |
Signal |
Test Code: GitHub
Demo:
Tilting Cape Sensor
Description: The tilting cape sensor detects when the module is tilted beyond a certain angle. It contains a metal ball inside a tube that connects two terminals when tilted, acting like a simple switch. It is useful for tilt detection, orientation sensing, and fall detection.
Connection:
W55MH32 |
Tilting Cape Sensor |
|---|---|
3V3 |
VCC |
GND |
GND |
PG8 |
Signal |
Test Code: GitHub
Demo: