SW-420 Vibration Sensor Arduino Code

preview_player
Показать описание
Vibration Sensor Module
I will explain how connect Arduino with Vibration sensor and LED.
SW-420 is a cost-effective vibration sensor module consists of SW-420 and Comparator LM393. The module is embedded with an SW-420 Vibration Sensor, a 10K potentiometer to alter the sensitivity, and an LM393 comparator that produces a smooth digital output. The LM393 comparator uses a preset to sense the vibrations in the surroundings and maintains a state. It gives out logic high if vibrations are detected otherwise it will remain in its default logic low state. The module is a handy, easy interface with a device that finds its applications in DIY projects along with commercial applications.
In this project, we will connect Arduino with Vibration sensor and LED. When no vibration is detected, Vibration sensor output is 0 (low voltage),otherwise its output is 1(high voltage)。 If Arduino get 0 (no vibration) from vibration sensor it will turn on green LED and turn off Red LED. If Arduino get 1 from vibration sensor, it will turn on Red LED and turn off green LED.

@MG Production @theworldnews @mgproduction

COPYRIGHT @MG Production © ®
COPYRIGHT @THE TECH LAB © ®
COPYRIGHT @🌎THE WORLD NEWS 🌎 © ®
Рекомендации по теме
visit shbcf.ru