In this article, we connect an KY-020 Tilt switch to a Raspberry Pi 4 When the KY-020 Tilt switch depending on the inclination, a switch closes the input pins briefly. This happens due to the fact that a ball inside the switch short-circuits the contacts,…
Code
-
-
In this article, we connect an KY-031 Knock Sensor to a Raspberry Pi 4 When the KY-031 sensor is subjected to a knock or vibration, the two output pins are short-circuited. We will use Python for the example The sensor looks like this Parts Required…
-
In this article, we connect an KY-029 Dual Color LED to a Raspberry Pi 4 The KY-029 Dual Color LED module can emit red and green light. You can adjust the intensity of each color using a Python pwm pin or simply switch the LED…
-
In this example we take a look at the TLV493D magnetic sensor to a Raspberry Pi 4 Description The 3D magnetic sensor TLV493D offers accurate three-dimensional sensing with extremely low power consumption in a small 6-pin package. With its magnetic field detection in x,…
-
In this example we take a look at the LTR390 UV Light Sensor to a Raspberry Pi 4 Description This sensor converts light intensity to a digital output signal capable of direct I2C interface. It provides a linear ALS response over a wide dynamic range,…
-
In this example we take a look at the DPS310 barometric pressure sensor from Infineon to a Raspberry Pi 4 Description The pressure sensor element is based on a capacitive sensing principle which guarantees high precision during temperature changes. The small package makes the DPS310…