Blog posts of '2026' 'October'

Measuring Distance with Sharp GP2Y0A21YK0F and Arduino
Measuring Distance with Sharp GP2Y0A21YK0F and Arduino

The Sharp GP2Y0A21YK0F measures distance by optical triangulation: reflected infrared light moves across a position-sensitive detector with target angle…

Connecting the ADXL345 Accelerometer to Arduino
Connecting the ADXL345 Accelerometer to Arduino

The ADXL345 is a three-axis accelerometer with ±2, ±4, ±8, and ±16 g ranges and I2C or SPI communication. At rest it measures the gravity component along…

Connecting a Piezoelectric Sensor to Arduino with Input Protection
Connecting a Piezoelectric Sensor to Arduino with Input Protection

A piezoelectric disc generates voltage when bent or struck and can act as an actuator when driven by an alternating voltage. Its pulse may reach a high…