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

  Рет қаралды 111,484

Electronic Clinic

Electronic Clinic

5 жыл бұрын

Download:
www.electroniclinic.com/vibra...
Subscribe to my New KZfaq 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.aliexpress.com/e/tixuqos
Arduino Mega2560:
s.click.aliexpress.com/e/cIcEEY4u
Jumper wires set:
s.click.aliexpress.com/e/QiqeaSk
Arduino Starter kit:
s.click.aliexpress.com/e/MtfuccY
12V adaptor:
s.click.aliexpress.com/e/9V5Z9J2
digital Multimeter:
s.click.aliexpress.com/e/cYadIN7a
Soldering Iron complete set with tools: Best kit ever.
s.click.aliexpress.com/e/bwOSJakY
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 KZfaq 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.

Пікірлер: 102
@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 👍
@fidgetspinner1403
@fidgetspinner1403 5 жыл бұрын
Thanks for the great tutorials. keep up the great work :)
@geniustechnology3358
@geniustechnology3358 5 жыл бұрын
GOOD job
@jindrakuswoyo8315
@jindrakuswoyo8315 4 жыл бұрын
Thanks!
@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 2 жыл бұрын
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?
@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
@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.
@rioaditiyono8442
@rioaditiyono8442 3 жыл бұрын
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.
@zenmirae93
@zenmirae93 4 жыл бұрын
If i want to measure the vibration of dc motor, is this suitable sensor to use
@losangeleslakers727
@losangeleslakers727 4 жыл бұрын
Cam you make a video for vibration measurement using adxl345 accelerometer sensor
@Random.07
@Random.07 2 ай бұрын
can i use a 220 ohm resistor instead of 330? plz answer
@gulshan8819
@gulshan8819 8 ай бұрын
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?
@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.
@audk9968
@audk9968 5 жыл бұрын
Where can you download the Arduino software? I want to download but I don't know where I can find it.
@shivarammurthy5999
@shivarammurthy5999 3 жыл бұрын
What is the unit of those values in the serial window ??
@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
@mohammedbaageil5459
@mohammedbaageil5459 4 жыл бұрын
can u help me, i need the code for two or more vibration sensor like that SW-420 ,
@wskwong2000
@wskwong2000 3 жыл бұрын
Instead of powering a LED, can I get it power something that draws power from a USB cable?
@aakashvarthan4031
@aakashvarthan4031 9 ай бұрын
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
@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?
@lokeshd5753
@lokeshd5753 3 жыл бұрын
Can we interface load cell and vibration sensor inthat how the code should be???
@ethanzeller3289
@ethanzeller3289 5 жыл бұрын
would there be an application for sensing seat (Such as a car) vibrations specifically measuring vibrations as a frequency.
@nartymmd
@nartymmd 4 жыл бұрын
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 3 жыл бұрын
@@nartymmd Have you find out something because I currently need it?
@nartymmd
@nartymmd 3 жыл бұрын
@@florianbourchenin1206 Yes, ADXL345 accelerometer :)
@florianbourchenin1206
@florianbourchenin1206 3 жыл бұрын
@@nartymmd Can you share me your code ? :)
@awihamzahrambe3012
@awihamzahrambe3012 2 жыл бұрын
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?
@anilkhandelwal01
@anilkhandelwal01 4 жыл бұрын
i like your voice
@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?
@rajatpowade1920
@rajatpowade1920 3 жыл бұрын
What is practical application of this set up
@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
@sharankumargoudar7828
@sharankumargoudar7828 4 жыл бұрын
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 4 жыл бұрын
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 ???? @
@user-ts9bz1jo4b
@user-ts9bz1jo4b 4 жыл бұрын
Can this thing wake an Esp8266 from deep sleep if a vibration is detected?
@matthewfelgate
@matthewfelgate 4 жыл бұрын
Does it trigger if you are holding the breadboard in the air?
@ElectroniClinic
@ElectroniClinic 4 жыл бұрын
yes
@scenekyahaibhai
@scenekyahaibhai 3 жыл бұрын
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 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
@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.
@andreicabuquin710
@andreicabuquin710 5 ай бұрын
can we use this to convert vibration into electricity?
@ElectroniClinic
@ElectroniClinic 5 ай бұрын
Use piezoelectric sensors.
@_MisbahShaikh
@_MisbahShaikh Жыл бұрын
Can we use the ADXL345 accelerometer? If yes then how to convert acceleration to Vibrations?
@durvankurrasal6059
@durvankurrasal6059 Жыл бұрын
In which language this code was written
@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
@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 Жыл бұрын
Did you figure it out...?It is hertz or something?if u know plzz tell me
@rama_adi_purnama2105
@rama_adi_purnama2105 5 ай бұрын
What name arduino?
@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
@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
@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
@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
@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 4 жыл бұрын
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
@ramp8724
@ramp8724 5 жыл бұрын
Bro loop is not verified
@rajeshlaware7607
@rajeshlaware7607 4 жыл бұрын
No measurements shown
@chanaweechanwirawong3204
@chanaweechanwirawong3204 3 жыл бұрын
What is the unit of this mesurement
@dichoukarima2454
@dichoukarima2454 2 жыл бұрын
Did you found the answer please?
@chanaweechanwirawong3204
@chanaweechanwirawong3204 2 жыл бұрын
@@dichoukarima2454 From the datasheet it is Microsecond
@sjkshaynne
@sjkshaynne 4 жыл бұрын
can u send the code?
@ElectroniClinic
@ElectroniClinic 4 жыл бұрын
its available on my website electroniclinic.com
@HORIZONTOURISMEMOROCCO
@HORIZONTOURISMEMOROCCO 9 ай бұрын
سلام هل يمكنكم عمل لايك واشكرك
@Proracing37
@Proracing37 4 жыл бұрын
Thanks!!!
Things that go Bzzzzzz (Haptic Feedback Motors)
7:50
Dustin Watts
Рет қаралды 63 М.
Arduino Prototyping Inputs #49: Knock Sensor
5:10
Marc de Vinck
Рет қаралды 23 М.
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 57 МЛН
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 131 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
What can you do with a Smart Vibration Sensor?
11:25
ShortWithTech
Рет қаралды 5 М.
I built my own computer. by hand.
13:03
jdh
Рет қаралды 1,1 МЛН
Arduino UNO Vibration Analysis
5:13
HKSpowered
Рет қаралды 32 М.
What's the difference? Arduino vs Raspberry Pi
6:21
Tinkernut
Рет қаралды 1,8 МЛН
Main filter..
0:15
CikoYt
Рет қаралды 11 МЛН
Gizli Apple Watch Özelliği😱
0:14
Safak Novruz
Рет қаралды 3,8 МЛН
Lid hologram 3d
0:32
LEDG
Рет қаралды 7 МЛН