How To Wire It! Piezo Disks

  Рет қаралды 92,292

ItKindaWorks

ItKindaWorks

Күн бұрын

Learn how to wire up piezo disks to your Arduino and see the basic code for how to control them as both inputs and outputs
Link to code & breadboard layout used in this video:
Subscribe for more weekly videos!
Follow me on Twitter @itkindaworksinc
My site with even more tutorials is itkindaworks.com!

Пікірлер: 88
@glenmerwyn5195
@glenmerwyn5195 4 жыл бұрын
A sigh of relief. I'm glad there's people in the world who can teach like you, and are on KZbin. Cheers !
@emiremiroglu
@emiremiroglu 4 жыл бұрын
A piezo tutorial could not be any better than this! Thanks! All questions answered!
@codersexpo1580
@codersexpo1580 Ай бұрын
This is just wonderful and it only took me 7 years to find it. 😐 I use a Raspberry PI though, which does not have an analog connector. 😐 I WISH someone would provide a step by step guide as good as this for Raspberry PI using an MCP3008 analog to digital converter. 😐 I love this stuff but finding examples and explanations ....its a struggle...for real. 😐 Kodos on this wonderful walk through. You are a hero to many... 🙂
@Sick1982
@Sick1982 3 жыл бұрын
Thank you very much for actually explaining the resistor values!!
@vfThome
@vfThome 7 жыл бұрын
Subscribed! Great video!
@FinnPayton
@FinnPayton 2 жыл бұрын
You're great at conveying information. You have a real knack for it! Consider being a professor or something, I think it would suit you well. Best of luck to you in the future. Thanks!
@henryrobinson9837
@henryrobinson9837 5 жыл бұрын
good video,i use one for vibration analysis with an oscilloscope on auto repair,thanks for the resistor information
@vacdrduval
@vacdrduval 7 жыл бұрын
Great video for a beginner like me!
@FuzzyMannerz
@FuzzyMannerz 7 жыл бұрын
Interesting and informative, many thanks! :)
@animeanibe
@animeanibe 3 жыл бұрын
Thanks, awesome video.
@alexandermedinapeschiutta9325
@alexandermedinapeschiutta9325 Жыл бұрын
Hi, I have seen that these piezo sensors come in different diameters. In another video, I saw that the bigger piezo can produce louder sounds (65mm vs 15mm). I was wondering if the same is true for the sensitivity, does a larger piezo means a more "sensitive" sensor? Thank you!
@Swenser
@Swenser 2 жыл бұрын
Would adding a capacitor smooth out the pulse and extend the pulse width a little for cleaner switching involving attached electronics? Sometimes my presses are not registered to serial port.
@jflory0207
@jflory0207 2 жыл бұрын
I was wondering if I can mix them or add a speaker as an output and have the sensor detect vibration and tell the arduino when it gets a spasific input volume to play a text message tone or something recorded.
@dalesmart1216
@dalesmart1216 5 жыл бұрын
So do these discs create a steady output during a steady pressure? Or do is just voltage spikes during changes in pressure?
@Sacrifice13
@Sacrifice13 5 жыл бұрын
why do you apply DC to the piezo sensor? Is it better with 5V DC? I've seen circuits on net without DC. Red to input from disc, black to ground, resistor in paralell. Please tell!
@ncaneto
@ncaneto 6 жыл бұрын
Very Nice and very well done tutorial! Thank you!
@bettermetalsnake95
@bettermetalsnake95 4 жыл бұрын
Great, now I have to learn how to program an arduino.
@stk42
@stk42 3 жыл бұрын
Google will most likely cover what you need
@Ds4lmon
@Ds4lmon 5 жыл бұрын
Is it possible to be both an input and output at the same time? i.e. could you tap it and it made a sound back?
@buzzwerd8093
@buzzwerd8093 4 ай бұрын
You can use direct port manipulation to make sound or sense with many piezos at once.
@AdityaKadamMechanical
@AdityaKadamMechanical 3 жыл бұрын
Sir how to make a circuit for high power capacity PZT to make it vibrate at 2 MHz, 4 MHz & 8 MHz. I took sq. wave generator. Filtered to make near sine wave. Then added Amplifier buffer circuit & finally Common Emitter Transistor Amplifier circuit. The PZT does not vibrate. Is there any standard procedure to design a circuit for PZT according to its resonating frequency?
@samyvik2888
@samyvik2888 2 жыл бұрын
what is the unit thats being measured and graphed - is it voltage or current? if either, then is it in mV or V OR Amp or mAmp?
@dunkco
@dunkco 3 жыл бұрын
Can you tell me how to wire a 2 wire( out of a smoke alarm) Piezo in order to make a small handheld 9v battery powered personal alarm?
@scircuit2citadel
@scircuit2citadel 6 жыл бұрын
can it count the no.of time it's sensing the signals?
@merkabaenergy9558
@merkabaenergy9558 3 жыл бұрын
Can you please link to the code for this project :)
@LlamaJWX
@LlamaJWX 4 жыл бұрын
what happened to the link to the code/ breadboard layout? what arduino did you use?
@innerresonance6682
@innerresonance6682 5 жыл бұрын
If one was hooking up a Potentiometer as a variable resistor, how would one wire that up?
@marinehm
@marinehm 2 жыл бұрын
I realize this is a really old video. However, watching this video. I realized why I wasn't getting any results, thus scraped my project. Revisiting my piezo as an input listening device idea.
@brucewilliams6292
@brucewilliams6292 5 жыл бұрын
Thank you for the great video! I hope you do a few more on chibiOS. Do you know how the speed fo chibiOS compares to regular Arduino and RTOS? Also, I really like your IDE. What are you making your code in? Thank you again for the great video!
@makermatrix9815
@makermatrix9815 4 жыл бұрын
This helped me a lot thank you.
@lordrahulcool
@lordrahulcool 4 жыл бұрын
Can you make a vid of making pre amp of piezo disc.. alex rice pre amp
@jonnupe1645
@jonnupe1645 3 жыл бұрын
Thank you
@harieshramanathanmanickam528
@harieshramanathanmanickam528 7 жыл бұрын
Hi great video !! Can I have the link for the code
@AbdullahMohsin
@AbdullahMohsin 4 жыл бұрын
does this require any voltage?? i thought it didn't. why do you connect to power side?
@Sick1982
@Sick1982 3 жыл бұрын
Good question.. I guess it's an active piezo.. not sure though
@benkuba0405
@benkuba0405 4 ай бұрын
4:43 does a higher resistor make it more sensitive?
@Cobra44144
@Cobra44144 Жыл бұрын
Is the circuit board a arduino trinket?
@travismoore7849
@travismoore7849 5 жыл бұрын
Try using it as a resonator in joule thief.
@sarahhoward9081
@sarahhoward9081 4 жыл бұрын
What about a 3 leg piezo speaker?
@laloespino240
@laloespino240 6 жыл бұрын
Hi, I can't see the link to the code, I would be very grateful if you could provide it to me, and also I have a question, what model of Arduino did you use?
@ItKindaWorks
@ItKindaWorks 6 жыл бұрын
The code is the standard "graph" program under the communication section of the examples built into the Arduino software
@minskie
@minskie Жыл бұрын
Will it work to detect the weight of a coin?
@c0r0y
@c0r0y 6 жыл бұрын
How do I connect a piezo to an ESP-12? Want to use it for mail box detection and send a message via IFTTT to my phone.
@c0r0y
@c0r0y 6 жыл бұрын
I would like to use the piezo as a reset button that way if it takes up a vibration it resets the ESP but i am afraid of frying the ESP. :/
@johnnypolex
@johnnypolex 4 жыл бұрын
Wondering if you ever figured this out. I have a similar problem I’m trying to solve to detect a race car driving over different spots. I’m thinking a shock sensor should be able to pull your reset down via ground. The shock sensor is just a normally open switch.
@aenasee7349
@aenasee7349 4 жыл бұрын
This is fantastic but can I ask if it can also detect dynamite explosion if possible?
@oskarmohar6073
@oskarmohar6073 4 жыл бұрын
Sure it can, hook it up exactly the same, just make sure that you hold the piezo really close to the dynamite.. you have to keep it pressed right up to the moment of explosion, then you can let go.. you will detect that it went off for sure..
@MrBobWareham
@MrBobWareham 3 жыл бұрын
@@oskarmohar6073 But only once!!
@codersexpo1580
@codersexpo1580 Ай бұрын
Kids DO NOT TRY THIS AT HOME.
@hoboman303
@hoboman303 6 жыл бұрын
Forgive me for my ignorance, but do I need an arduino to use the piezo trigger? I just want to use it to light up a 12v light strip and I really don't know what to do.
@ItKindaWorks
@ItKindaWorks 6 жыл бұрын
While I'm sure it is possible to wire up a piezo sensor to control an LED strip without an Arduino, it would certainly require other components (some kind of 555 timer circuit could probably work...). It would be most easily done with an Arduino though and would require less circuit fiddling/building.
@hoboman303
@hoboman303 6 жыл бұрын
Since it seems you know what you are doing unlike I who has practically no electrical experience, maybe you can help me (if you have the time). I want to add led strips to my drum set so that when I hit each drum it lights up. I've seen this done a lot but I still don't understand how it works. Any thoughts? Thanks for the help so far :)
@DiegoSynth
@DiegoSynth 6 жыл бұрын
Out of my head, I believe it's not very straightforward, and probably using Arduino is the easiest. Although as you are dealing with 12v, you need other components to enable / disable the current flow individually to each item on your drum set. It's not "difficult", but the burden relies on the number of items to control. And again, it's more complex than in this video, because here he doesn't need external power, he just uses the 5v from the Arduino. I advice you to search for "control led stripes with Arduino" or so, and combine that knowledge with the one in this video. Cheers!
@DiegoSynth
@DiegoSynth 6 жыл бұрын
You are welcome :) You can learn a lot of things here in KZbin. Anyway, if you have any particular question, I can try to help!
@JuicyVids1
@JuicyVids1 6 жыл бұрын
What resistor did you use?
@daviddickey9832
@daviddickey9832 3 жыл бұрын
First he uses a 10K resistor then a 100K. The 100K increases the sensitivity over the 10K.
@blakewes88
@blakewes88 5 жыл бұрын
What is the auto scaling? mV or V . Can you achieve a 14 V?
@InputBlackBoxOutput
@InputBlackBoxOutput 4 жыл бұрын
Autoscaling is done to fit the plot on screen 14V peak overshoot is kinda ok for the pin but a long duration 14V will damage the pin BTW 14V peaks were observed only when piezo was hit
@matsodelstig6922
@matsodelstig6922 5 жыл бұрын
Hi can I contact you on FB ,have a question , reg Piezo disk ?? Brgds Mats O Sweden
@MrPlastkort
@MrPlastkort 5 жыл бұрын
can you use one of these to make vibrations on flat surfaces? (not detect but generate)
@tze-ven
@tze-ven 2 жыл бұрын
I would never connect a piezoelectric directly to the analog pin like you do; ItKindaWorks, but probably an ill-advised idea. This can kill the pin over a period of time if the voltage spikes constantly exceeding the MCU's absolute maximum/minimum analog pin voltage. You should put protection diodes from the piezoelectric signal line to both rails (AVCC (or VCC) and GND) to clamp it and a series resistor (something like 100Ω to 200Ω) from the signal line to the analog pin to limit the injection current (below the absolute maximum, of course) when the signal voltage slightly overshoots/undershoots after the clamping.
@shvideo1
@shvideo1 4 жыл бұрын
What voltage value are you using, 5VDC? Thank you for this great video.
@ItKindaWorks
@ItKindaWorks 4 жыл бұрын
Yeah but it would also work at the 3.3v level too
@hannesmorgenroth7149
@hannesmorgenroth7149 6 жыл бұрын
Piezo as Input: what happens if you connect it directly without any resistor?
@ulaB
@ulaB 5 жыл бұрын
You probably have found out by now, but just if others have the same question: You might destroy the analog input on your Arduino because of too much voltage/current. I've seen spikes up to 30 volts with these discs., depending on the disc and such.
@h7opolo
@h7opolo Жыл бұрын
R2D2's vocal box
@nandavardhanthupalli6931
@nandavardhanthupalli6931 4 жыл бұрын
there is no link in the description
@kalashsharma4344
@kalashsharma4344 6 жыл бұрын
Can I use buzzer for sensing knocks
@ItKindaWorks
@ItKindaWorks 6 жыл бұрын
You sure can!
@kalashsharma4344
@kalashsharma4344 6 жыл бұрын
ItKindaWorks thanks
@scircuit2citadel
@scircuit2citadel 6 жыл бұрын
and can we use aurdino uno to take input from piezoelectric sensors?? plz answer ASAP
@ItKindaWorks
@ItKindaWorks 6 жыл бұрын
You sure can, the same setup can be used on any Arduino! And you can totally use them to count the number of sensed signals
@amyjojinkerson6745
@amyjojinkerson6745 3 жыл бұрын
I have a set of picture frame set of speakers
@aloneinanearthship4010
@aloneinanearthship4010 Жыл бұрын
Link to code?
@abdulkarimhalai6708
@abdulkarimhalai6708 6 жыл бұрын
Hey how can you connect one terminal of the sensor to the resistor as well as the Arduino pin?
@abdulkarimhalai6708
@abdulkarimhalai6708 6 жыл бұрын
Oh actually I got it!
@abdulkarimhalai6708
@abdulkarimhalai6708 6 жыл бұрын
Doesn't it need a resistor (for the speaker)
@ItKindaWorks
@ItKindaWorks 6 жыл бұрын
Does it? I've never used one while using it for a speaker. But then again I dont often use these for speakers...
@Sick1982
@Sick1982 3 жыл бұрын
No, it has internal resistance.
@nightshining5662
@nightshining5662 3 жыл бұрын
Thanks for the tutorial! I wired it up and it works nicely. I’m baffled as to why 1. The ground going to Pin A0 gives a signal and 2. The resistor is placed before the ground and not the input pin???
@abdulkarimhalai6708
@abdulkarimhalai6708 6 жыл бұрын
Why can you only connect one pin for a tone at a time?
@ItKindaWorks
@ItKindaWorks 6 жыл бұрын
From what I understand, tone utilizes one of the Arduino's onboard timers to create custom timed pulses which generate the tone. The reason you can only do one pin at a time is because there is only one extra timer available on the Arduino.
@abdulkarimhalai6708
@abdulkarimhalai6708 6 жыл бұрын
But if I have a mega?
@ItKindaWorks
@ItKindaWorks 6 жыл бұрын
I'm not sure about the Mega. I believe it has more/extra timers but It's been years since I've played with one. I would do a google search for "Arduino mega multiple tone" or "Arduino Mega simultaneous tone". Depending on what you're purpose is it might be worth looking into whether there is a separate module that can communicate with the arduino that would give you the functionality you want.
@martinhorner642
@martinhorner642 2 жыл бұрын
Usually.
@samantharobinson2700
@samantharobinson2700 6 жыл бұрын
what happened to the link? Can you put it up again?
@Gabo_1457
@Gabo_1457 5 жыл бұрын
Doesnt Work :(
Force Sensing Materials
10:03
0033mer
Рет қаралды 38 М.
Piezoelectric motor
3:06
Applied Science
Рет қаралды 407 М.
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:26
CRAZY GREAPA
Рет қаралды 18 МЛН
piezo demo
3:11
tbg3tbg3
Рет қаралды 80 М.
Power For Your Electronics Projects - Voltage Regulators and Converters
37:26
DroneBot Workshop
Рет қаралды 1,2 МЛН
Uses for piezo transducers from old smoke alarms
6:26
Amateur Radio VK3YE
Рет қаралды 44 М.
Watch This Puzzle Box Transform into a Puzzle Village!!
26:44
Chris Ramsay
Рет қаралды 79 М.
Java Is Better Than Rust
42:14
ThePrimeTime
Рет қаралды 125 М.
AMD Almost Went Bankrupt…but were saved by Sony and Microsoft?
5:35
You can learn Arduino in 15 minutes.
16:34
Afrotechmods
Рет қаралды 9 МЛН
DIY FYI: Piezo Sensors
3:51
Blitz City DIY
Рет қаралды 96 М.
Arduino Prototyping Inputs #49: Knock Sensor
5:10
Marc de Vinck
Рет қаралды 24 М.
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 6 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 465 М.
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 2,5 МЛН
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 1,4 МЛН