Arduino Project: Vibration sensor tutorial, Vibration measurement, vibration detector “SW 420”

  Рет қаралды 115,964

Electronic Clinic

Electronic Clinic

Күн бұрын

Download:
www.electronic...
Subscribe to my New KZbin Channel, if you want to watch my videos in Hindi/Urdu
/ @letsgetstartedd
Watch New Type of the Vibration Sensor:
• Vibration Sensor with ...
Wireless Vibration Sensor using Nodemcu ESP8266:
• Wireless vibration sen...
Project Description:
********************
Today’s episode is about the SW-420 vibration sensor. In this episode, you will learn how to use a vibration sensor with Arduino and control an led when a certain pre-defined value is exceeded. This is an introductory tutorial, which covers the vibration sensor pinouts, its interfacing with the Arduino, and basic programming. While in the upcoming tutorials this vibration sensor will be used in an earthquake notification system using gsm and wireless sensor network using zigbee or xbee.
Let’s get started!!!!
The components that we will need for this project are
1. Arduino
2. SW-420 vibration sensor
3. An led “light emitting diode” the longer led is the anode and the shorter leg is the cathode.
4. A 330 ohm resistor
5. Some jumper wires and finally number
6. A Breadboard
This project is based on Arduino and same code can also be used with Mega.
********************
Amazon Purchase links:
*****************
Arduino Nano USB-C Type ( recommended):
amzn.to/4ahGLdk
ESP32 WiFi + Bluetooth Module for iOT Projects (recommended), more IO pins, improved speed, and supports a Lipo Battery:
amzn.to/3v40DkE
Mega 2560:
amzn.to/3m5qkbu
SW-420 Vibration Sensor
amzn.to/3stOEGw
Other Must-Have Tools and Components:

Top Arduino Sensors:
amzn.to/3vZbnfM
Super Starter kit for Beginners
amzn.to/3cq56C5
Top Oscilloscopes
amzn.to/3ctF3d8
Variable Supply:
amzn.to/2PEAqE7
Digital Multimeter:
amzn.to/2QGRPg1
Top Soldering iron kits: "best"
amzn.to/39nqDtb
Top Portable drill machines:
amzn.to/3suQMh7
Jumper Wires:
amzn.to/2NYPEDA
3D printers:
amzn.to/3ruG1dt
CNC Machines:
amzn.to/3cuZWVv
Electronics Accessories:
amzn.to/3sueV7z

Hardware Tools:
amzn.to/3m9UhaN
Aliexpress Purchase links:
*****************
*****************
Arduino Uno:
s.click.aliexpr...
Arduino Mega2560:
s.click.aliexpr...
Jumper wires set:
s.click.aliexpr...
Arduino Starter kit:
s.click.aliexpr...
12V adaptor:
s.click.aliexpr...
digital Multimeter:
s.click.aliexpr...
Soldering Iron complete set with tools: Best kit ever.
s.click.aliexpr...
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I will receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!
****************
Follow me on Facebook:
/ electronic-clinic-7697...
About the Electronic Clinic:
Electronic Clinic is the only channel on KZbin that covers all the engineering fields. Electronic Clinic helps the students and other professionals to learn electronics designing and programming. Electronic Clinic has tutorials on
electronics projects
wheelchair projects
robots
image processing
security systems
PCB designing
schematics designing
final year engineering projects and ideas
electronic door locks projects
automatic watering systems.
nodemcu esp8266 wifi module projects
computer desktop applications designing.
email systems.
and much more.

Пікірлер: 107
@ravenherd6983
@ravenherd6983 4 жыл бұрын
The only video about Arduino and related stuff which is to the point , informative and easy to comprehend .Keep up the nice work 👍
@H0mework
@H0mework 11 күн бұрын
Nice. Looks sensitive enough for my needs
@geniustechnology3358
@geniustechnology3358 5 жыл бұрын
GOOD job
@fidgetspinner1403
@fidgetspinner1403 5 жыл бұрын
Thanks for the great tutorials. keep up the great work :)
@BrickTamlandOfficial
@BrickTamlandOfficial Жыл бұрын
this is a great setup, i was hoping you would know how i could use a speaker as output, also i wanted to play an audio file on the speaker if the vibration is exceeded. is this possible?
@ElectroniClinic
@ElectroniClinic Жыл бұрын
I have a separate video on how to play audio files. Check playlist.
@atulimakvana1092
@atulimakvana1092 2 жыл бұрын
Thanks for this video. Can I have more details about Vibration Measurement Unit by this sensor.
@dichoukarima2454
@dichoukarima2454 2 жыл бұрын
Did you found the answer?
@gulshan8819
@gulshan8819 Жыл бұрын
what is the unit of the output values we are getting? ? I mean I want my vibration sensor to give the values in hz. Is it possible?
@Random.07
@Random.07 7 ай бұрын
can i use a 220 ohm resistor instead of 330? plz answer
@jindrakuswoyo8315
@jindrakuswoyo8315 4 жыл бұрын
Thanks!
@ravenherd6983
@ravenherd6983 4 жыл бұрын
Actually I am making a project on vibration sensor using arduino where we will be monitoring the vibrations of the machine and detect if it is vibrating above it's limited value.It would certainly be good if you gave a little advice .Is there a requirement of nodemcu if I need to display output on screen or that purpose is solved by the output window of Arduino IDE ?
@prathyushalakkam4644
@prathyushalakkam4644 2 жыл бұрын
Did you got the output.plzz say iam also working on that project
@wollewolljamin6363
@wollewolljamin6363 4 жыл бұрын
Hey, thanks for this video. It is possible to send a midi signal from the arduino, triggerd by the SW40? I want to trigger ResolumeVJ with vibrations for an university artproject.
@afiqumarchematdin1914
@afiqumarchematdin1914 3 жыл бұрын
HI sir!! it was a great tutorial ever. A quick question, if we want to use the kit but with different platform like mobile phone, do we have to retype the programme again?
@andreicabuquin710
@andreicabuquin710 10 ай бұрын
can we use this to convert vibration into electricity?
@ElectroniClinic
@ElectroniClinic 10 ай бұрын
Use piezoelectric sensors.
@gairuboinavenkatesh4974
@gairuboinavenkatesh4974 2 жыл бұрын
what is the umits for vibrations displaying on the screen???
@dichoukarima2454
@dichoukarima2454 2 жыл бұрын
Did you foud the answer?
@luA-nf7zp
@luA-nf7zp 2 жыл бұрын
Did you figure it out...?It is hertz or something?if u know plzz tell me
@anilkhandelwal01
@anilkhandelwal01 4 жыл бұрын
i like your voice
@wskwong2000
@wskwong2000 3 жыл бұрын
Instead of powering a LED, can I get it power something that draws power from a USB cable?
@aakashvarthan4031
@aakashvarthan4031 Жыл бұрын
I have sw 420 with 4 pins what to do with a0 pin in the sensor
@MohammedSaid-gc2ox
@MohammedSaid-gc2ox Жыл бұрын
Hello brother, I hope you're doing well after four years , i have a question and i hope that you have the answer for it . i want to read the values of the vibration i mean the real values in Hz so i can use it in my project and do some calculation . thank you and i appreciate your help
@awihamzahrambe3012
@awihamzahrambe3012 3 жыл бұрын
Please help me solution I'm using a SW-420 vibration sensor whose output is analogous to a voltage unit. I really want to be able to convert the sensor voltage unit to Herzt (hz) unit. How to?
@Boscovius
@Boscovius 5 жыл бұрын
I want to create a rig that will allow me to measure the vibration of my boy's pinewood derby race car wheel and axles so I can determine which wheel axle combinations run the smoothest (least friction). Do you think this would be applicable. I'm not much of an electronics expert, but I can see how this could possibly work. Though I'd rather be able to read a numeric value for the vibration than just a led signal lamp.
@ElectroniClinic
@ElectroniClinic 5 жыл бұрын
you have different options, you can use this sensor, you can also use a piezo sensor, and you can also use mpu6050. But first you can try this one. its a low cost sensor, you should give it a try.
@ElectroniClinic
@ElectroniClinic 5 жыл бұрын
coz the way i used it, you can now decide, its gonna work for you or not.
@naveenkumarreddykaranam6787
@naveenkumarreddykaranam6787 2 жыл бұрын
what is the units of readings??
@dichoukarima2454
@dichoukarima2454 2 жыл бұрын
Did you found the answer please?
@ultron207
@ultron207 Ай бұрын
Hertz is guess
@mohamedashif8710
@mohamedashif8710 4 жыл бұрын
can I use stepper motor instead of led. please reply to me
@ElectroniClinic
@ElectroniClinic 4 жыл бұрын
yes you can use if you know how to use a stepper motor. check playlists i have videos on stepper motors.
@mohamedashif8710
@mohamedashif8710 4 жыл бұрын
@@ElectroniClinic Thank you so much
@losangeleslakers727
@losangeleslakers727 4 жыл бұрын
Cam you make a video for vibration measurement using adxl345 accelerometer sensor
@Proracing37
@Proracing37 5 жыл бұрын
Thanks!!!
@lokeshd5753
@lokeshd5753 3 жыл бұрын
Can we interface load cell and vibration sensor inthat how the code should be???
@sylgonjaysanoy8890
@sylgonjaysanoy8890 Жыл бұрын
can you make these into wireless communication using nrf24l01?
@ElectroniClinic
@ElectroniClinic Жыл бұрын
Yes. I have many videos on nrf24lo1
@sylgonjaysanoy8890
@sylgonjaysanoy8890 Жыл бұрын
@@ElectroniClinic thank you so much. would you think it is possible to trigger a 7segment display using this vibration sensor, that it counts 0-99 everytime the sensor was trigger.
@ElectroniClinic
@ElectroniClinic Жыл бұрын
Ya it can be done. Once you detect the vibration then you can do anything.
@ElectroniClinic
@ElectroniClinic Жыл бұрын
Check my other videos on vibration sensor.
@sylgonjaysanoy8890
@sylgonjaysanoy8890 Жыл бұрын
ive alreary try. but the result is not ok. do data is being accepted with the use of nrf24l01
@MOVIEKICKS
@MOVIEKICKS 4 жыл бұрын
How can I boost the signal of the vibration sensor so the Arduino Board can see weaker signals coming from it? I know I'm missing some signals coming off the sensor using the set up in your video.
@martinmulvany4531
@martinmulvany4531 3 жыл бұрын
Hello. I wonder if you can help me. I'm trying to make a sound module that is activated by a shock sensor, but I haven't got much experience. I have bought a few voice modules and can't get them working and don't know where to connect the sensor.
@ethanzeller3289
@ethanzeller3289 5 жыл бұрын
would there be an application for sensing seat (Such as a car) vibrations specifically measuring vibrations as a frequency.
@nartymmd
@nartymmd 5 жыл бұрын
I'm also looking in to that. Did You find out how to connect this with some software showing vibration graph in real time?
@florianbourchenin1206
@florianbourchenin1206 4 жыл бұрын
@@nartymmd Have you find out something because I currently need it?
@nartymmd
@nartymmd 4 жыл бұрын
@@florianbourchenin1206 Yes, ADXL345 accelerometer :)
@florianbourchenin1206
@florianbourchenin1206 4 жыл бұрын
@@nartymmd Can you share me your code ? :)
@farahhassuna9151
@farahhassuna9151 5 жыл бұрын
can vibration sensor detect the frequency of faulty component such as resistor or capacitor?
@ElectroniClinic
@ElectroniClinic 5 жыл бұрын
no. it is only used to monitor the physical vibration.
@farahhassuna9151
@farahhassuna9151 5 жыл бұрын
@@ElectroniClinic ouh okay thank you
@rioaditiyono8442
@rioaditiyono8442 4 жыл бұрын
Hi, what if I want to use it as an alarm and only turn on the sensor when the alarm is on so it won't interfere with another loop.
@sharankumargoudar7828
@sharankumargoudar7828 5 жыл бұрын
It is a useful video for me.... I would like to know about the unit of vibration.... is it in Hz??? Or any other unit.... kindly replay....
@ibrahimhcaglayan
@ibrahimhcaglayan 5 жыл бұрын
Hz is unit of frequency. Unit of vibration is mm/sec.
@lokeshd5753
@lokeshd5753 3 жыл бұрын
@@ibrahimhcaglayan So the reading shows in serial monitor is mm/s ???? @
@dominikussatrio5940
@dominikussatrio5940 2 жыл бұрын
Great videos for beginner like me to study arduino. But i have a question, when i upload the code, there is a error code says "vibration was not declared in this scope" (On the first line of void loop). What can i do to solve the problem? Thanks
@ultron207
@ultron207 Ай бұрын
Were you able to solve it??? I have same problem
@shivarammurthy5999
@shivarammurthy5999 3 жыл бұрын
What is the unit of those values in the serial window ??
@DimitriosPrimpas
@DimitriosPrimpas 4 жыл бұрын
Can this thing wake an Esp8266 from deep sleep if a vibration is detected?
@zenmirae93
@zenmirae93 5 жыл бұрын
If i want to measure the vibration of dc motor, is this suitable sensor to use
@AnRsCorneR
@AnRsCorneR Жыл бұрын
Hi, what is the purpose of the resistor? Do you have the circuit diagram for this project?
@ElectroniClinic
@ElectroniClinic Жыл бұрын
It's available on electroniclinic.com
@matthewfelgate
@matthewfelgate 4 жыл бұрын
Does it trigger if you are holding the breadboard in the air?
@ElectroniClinic
@ElectroniClinic 4 жыл бұрын
yes
@scenekyahaibhai
@scenekyahaibhai 4 жыл бұрын
Can we adjust the sensitivity of the sensor so that it can sense only high vibrations?
@atulimakvana1092
@atulimakvana1092 2 жыл бұрын
That can be adjusted by potentiometer on the sensor.
@BrickTamlandOfficial
@BrickTamlandOfficial Жыл бұрын
you can change measurement > 50 to measurement > 200 it depends on the sensitivity that you need so keep changing the number until it is too high for you then lower it slightly.
@mohamedashif8710
@mohamedashif8710 4 жыл бұрын
Can you help me to write a program for stepper motor control using vibration sensor
@ElectroniClinic
@ElectroniClinic 4 жыл бұрын
watch my videos on stepper motors. All you need to do is copy that code and paste it into the if condition block.
@mohammedbaageil5459
@mohammedbaageil5459 5 жыл бұрын
can u help me, i need the code for two or more vibration sensor like that SW-420 ,
@audk9968
@audk9968 5 жыл бұрын
Where can you download the Arduino software? I want to download but I don't know where I can find it.
@rama_adi_purnama2105
@rama_adi_purnama2105 10 ай бұрын
What name arduino?
@geramakkerangan2925
@geramakkerangan2925 5 жыл бұрын
can you give me an idea for my final year project? using arduino
@ElectroniClinic
@ElectroniClinic 5 жыл бұрын
Yes sure. Tell me ur field of interest ?? Robotics ? Communication ? Power ? Security ??
@geramakkerangan2925
@geramakkerangan2925 5 жыл бұрын
Electronic Clinic just only have audio and video .
@ElectroniClinic
@ElectroniClinic 5 жыл бұрын
sorry didn't get you. tell me in detail ? audio and video what ?
@geramakkerangan2925
@geramakkerangan2925 5 жыл бұрын
@@ElectroniClinic the project must have audio and video such as sounds and light for example.
@ElectroniClinic
@ElectroniClinic 5 жыл бұрын
The you will have to invlove microprocessor as well. You will also make a computer application. Select something that you can make using only arduino and other circuits
@rajatpowade1920
@rajatpowade1920 3 жыл бұрын
What is practical application of this set up
@durvankurrasal6059
@durvankurrasal6059 Жыл бұрын
In which language this code was written
@jainavmutha7019
@jainavmutha7019 3 жыл бұрын
Can you please share the code
@najeemfazil2219
@najeemfazil2219 4 жыл бұрын
sir i have a doubt since the sensor gives the digital o/p(0 and 1) so only 0 AND 1 only displayed in the serial monitor right.then how it displays values greater then 50
@tegaryudha1641
@tegaryudha1641 4 жыл бұрын
it is the duration of pulseIn function
@najeemfazil2219
@najeemfazil2219 4 жыл бұрын
Thanks bro...
@lokeshd5753
@lokeshd5753 3 жыл бұрын
Whats the unit
@calebprenger3928
@calebprenger3928 3 жыл бұрын
I really freaking need someone to use a vibration sensor that measures intensity and not freaking on and off
@maxmuss4969
@maxmuss4969 3 жыл бұрын
any luck? bc same
@_MisbahShaikh
@_MisbahShaikh 2 жыл бұрын
Can we use the ADXL345 accelerometer? If yes then how to convert acceleration to Vibrations?
@TechTooB2
@TechTooB2 5 жыл бұрын
what is 50 in your code ...what is the unit ??? and what is the max value we can give ??..what is output unit of the vibration sensor?/??it=s it hertz or something else
@ethanzeller3289
@ethanzeller3289 5 жыл бұрын
I would also like to know.
@EveeSolange
@EveeSolange 5 жыл бұрын
i'd also like to know...
@manofmesopotamia7602
@manofmesopotamia7602 4 жыл бұрын
it will make a delay for 50 millisecond between each time to apply the vibration(); meaning: the function vibration will feed arduino with vibration reads every 50 millisecond to display the events on serial
@rajeshl9096
@rajeshl9096 4 жыл бұрын
No measurements shown
@gokulpriya-y4u
@gokulpriya-y4u 3 ай бұрын
Code pls
@ElectroniClinic
@ElectroniClinic 3 ай бұрын
@@gokulpriya-y4u it's available on electroniclinic.com
@ramp8724
@ramp8724 5 жыл бұрын
Bro loop is not verified
@HORIZONTOURISMEMOROCCO
@HORIZONTOURISMEMOROCCO Жыл бұрын
سلام هل يمكنكم عمل لايك واشكرك
@sjkshaynne
@sjkshaynne 4 жыл бұрын
can u send the code?
@ElectroniClinic
@ElectroniClinic 4 жыл бұрын
its available on my website electroniclinic.com
@Lowsenberg
@Lowsenberg 3 жыл бұрын
What is the unit of this mesurement
@dichoukarima2454
@dichoukarima2454 2 жыл бұрын
Did you found the answer please?
@Lowsenberg
@Lowsenberg 2 жыл бұрын
@@dichoukarima2454 From the datasheet it is Microsecond
ESP8266 + Arduino + database - Control Anything from Anywhere
13:51
Electronoobs
Рет қаралды 642 М.
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 11 МЛН
SIZE DOESN’T MATTER @benjaminjiujitsu
00:46
Natan por Aí
Рет қаралды 3,7 МЛН
This Should Be Impossible...
23:05
Alec Steele
Рет қаралды 912 М.
Designing a simple vibration sensor
17:13
Nicholas Piegdon
Рет қаралды 112 М.
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,4 МЛН
How to do Object Detection using ESP32-CAM and Edge Impulse YOLO Model
16:50
Effective Ways To Detect People With Common Sensors
7:43
Core Electronics
Рет қаралды 89 М.
Attiny85 Vibration Sensor Security Alarm | Motorbike Security
6:30
Viral Science - The home of Creativity
Рет қаралды 28 М.
Разобрали jaecoo j8 - Был не прав, Уаз это топ!
25:00
Клубный сервис
Рет қаралды 208 М.
Arduino UNO Vibration Analysis
5:13
HKSpowered
Рет қаралды 34 М.
Vibration Analyzer for $20
24:22
siu automotive
Рет қаралды 57 М.
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 11 МЛН