// This code switches the MIDI note sent by an electronic drum pad (or just a piezo) using an IR sensor to detect an obstacle, // in this case the obstacle being the hand playing the pad. Therefore ...
const int irSensorPin = A0; // Analog pin where the IR sensor is connected const int ledPin = 13; // Digital pin where the LED is connected int sensorValue = 0; // Variable to store sensor value ...
Have you ever wondered how speed guns measure the speed of moving vehicles or how an athlete's sprint speed is recorded? Normally these speed sensors work with radar or laser technology to bounce back ...