The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [piezo]

refers to the prefix of Piezoelectricity.

Filter by
Sorted by
Tagged with
0
votes
0answers
30 views

How to stop the screeching noise that comes from buzzer?

I use sfm-27 dc 3-24v Buzzer. It sounds fine if i close the buzzer using my palm but if i doesn't close it, it will make a screeching noise. I play melody using the buzzer so the sound is important. ...
-2
votes
1answer
95 views

how to set buzzer on and off

I have a project that require me to use magnetic contact sensor. I will put the sensor at the door. So the idea is i want every time someone open the door, the buzzer will make a sound, but it will ...
0
votes
0answers
17 views

Arduino Setup for RF Transmit and Receive, IR Receive, WS2812 LEDs and a Piezo Speaker

I am new to Arduino and microcontroller in general and just finished one Project (TonUINO - a DIY music box for kids). Now I am planing and working on my next project. A IR shooting range. The guns ...
-1
votes
2answers
37 views

Load Resistor Use for Voltage Sensing by Arduino

I connected a piezoelectric film to a Arduino Uno board via analog input. However, as I was getting very high voltage values (reaching 5 volts without much movement). Therefore, I added a 1 megaohm ...
0
votes
0answers
21 views

Shall an active piezo buzzer module draw as much as 10mA on its signal pin?

I have connected an active piezo buzzer to my arduino: KY-012 Active buzzer module. I was a bit surprised that it drew like ~10mA on the signal pin from my nodemcu, which I find a bit weird, since ...
0
votes
1answer
92 views

Proper use of the tone() function within the loop () function [duplicate]

I am trying to have my sketch run a short series of tones (melody) through a Piezo buzzer after a selection is made by the user. I am getting a compilation error with my use of the tone function in ...
0
votes
3answers
1k views

Passive buzzer works with analogWrite(), but not with digitalWrite(). It also has constant static noise

I have a YL-44/MH-FMD passive piezo buzzer hooked up to an ESP8266/NodeMCU. It's connected like this: Buzzer ---> NodeMCU - GND ---> G - VCC ---> 3V - I/O ---> D2 This code makes a clear beep. ...
0
votes
2answers
93 views

Won't break out of for loop

I'm new to Arduino and I'm trying to use PWM to generate a tone through a buzzer. I've created a for loop, however, the for loop doesn't seem to break when the variable ms is < 1000000. int ...
0
votes
2answers
62 views

Using 2 piezo buzzers to emit the same tone with phase difference

For a physics project, I want to record the effect of 2 speakers emitting 100hz at different phase differences. Trouble is, the Arduino can only send one tone() signal at a time. How do I create a ...
0
votes
1answer
76 views

Serial monitor doesn't work with piezo buzzer

So I can't see the distance of the proximity sensor anymore as soon as I type the code for the piezo buzzer. I've tried many things but it doesn't work.. Can anybody help me fixing this? int trigPin =...
0
votes
1answer
42 views

everything works independitly but not together. Piezo not generating a tone

My goal with the code is simple. Let the Piezo buzz when temperature reaches 25 degrees. My piezo is hooked up correctly, because It makes a buzz when the arduino boots or when I put this line of code ...
1
vote
1answer
202 views

Triggering both LED and buzzer [closed]

I am attempting to create a motion detector that triggers both a 12V LED and a piezo buzzer, but have read that you cannot use delay() with them both. How do I trigger the LED and the buzzer ...
1
vote
1answer
450 views

How to stop a loop when using attachInterrupt to catch the change of a button

This what the program does: There is 1 button to start/stop the engine, when the motor is running the green LED will go on, when stopped the red LED is on. The second button is used to change ...
-1
votes
2answers
101 views

how can I break from this case by IRremote even if it's not finished yet?

I want to give a pause to case 0xFF02FD or at least to break from that case by entering the case 0xFFA25D even if the 1st case not finished, when I press power button wich has hexa code ( 0xFFA25D) I ...
0
votes
1answer
84 views

Arduino UNO Intro to Engineering Project [closed]

I am a college student in an intro to engineering class looking to create a final project. My goal is to create a small "present" that opens its lid via a servo and plays jingle bells with LEDs ...
0
votes
1answer
697 views

What's the problem with program , continously beeping buzzer

I have used PIR motion sensor with arduino Uno r3, alongwith one piezo buzzer. and the program is as /* * PIR sensor tester */ int ledPin = 13; // choose the pin for the LED int ...
0
votes
1answer
196 views

Coding or Wiring? Dual Piezo sensor not triggering LED lights

I am running two piezos off an Arduino UNO and trying to get 10 LED lights to trigger when the piezo voltage exceeds a certain threshold. Problem is, the LEDs wont fire when the Piezo voltage exceeds ...
0
votes
1answer
420 views

My Arduino Uno buzzer isn't working [duplicate]

/* */ void setup() // Built in initialization block { Serial.begin(9600); Serial.println("Beep!"); } void loop() // Main loop auto-repeats { // Serial.println("Beep!"); tone(4, ...
-2
votes
1answer
470 views

Why is the piezo buzzer not looping/making sound? [closed]

/* */ void setup() // Built in initialization block { Serial.begin(9600); Serial.println("Beep!"); tone(4, 3000, 1000); // Play tone for 1 second delay(1000); // Delay to finish tone } void ...
1
vote
2answers
454 views

My button stays on high if I press it once, what did I do wrong?

If I press my button once, I get characters on all of the 32 character places and I get an infinite tone with my piezo. Can someone help me with this? #include <LiquidCrystal.h> const int ...
0
votes
0answers
71 views

my button won't work, why?

I have been trying to get the button to work properly for over a day, but it just won't, can you help me. The lcd display is for another part of this project, not important at the moment, but I can't ...
1
vote
2answers
3k views

How can I read a piezo sensor and have it output a fixed voltage?

I'm trying to creature an instrument out of a few boards I have. The plan is to have piezo sensors wait for a hit, then be read by a digital pin, then execute code based on what piezo sensor was hit. ...
0
votes
1answer
246 views

Execute function until called again?

I am building a simple security system with my Arduino Uno. I have an alarm() function: void alarm() { tone(8, 3300, 200); delay(200); tone(8, 3000, 200); delay(200); } When I call it in the ...
1
vote
0answers
128 views

Arduino timer library for piezo [closed]

I found a library called Timer. I want to use timers for pieso. My code is: long ids[10]; void playNote(int pin, unsigned long freq) { float ms = 1000/freq; ids[pin] = t.oscillate(pin, ms, LOW); ...
2
votes
1answer
113 views

Arduino play many piezo at once

I need to play sound on 10 piezos at once. How to do that without delay() function.
0
votes
1answer
2k views

How do I make specific tones with a piezo buzzer?

I am using a piezo buzzer and fiddling around with it a little bit. I currently have different tones with delays in between and I have to do a lot of trial and error for the piezo buzzer to play ...
0
votes
1answer
2k views

Why is the piezo buzzer not making any sound?

My ciruit: My code: // Pin 13 has a LED connected on most Arduino boards. // give it a name: int led = 13; const int buttonPin = 2; // the setup routine runs once when you press reset: void setup() ...
3
votes
2answers
4k views

Multiple tones with one piezo buzzer

I have figured out how to make a piezo buzzer play two tones at once with analogWrite() and tone() but how would I make an actual song by playing both bass and treble, such as this one. Here is the ...
0
votes
1answer
1k views

Several Piezo contact mics with Arduino

I'd like to connect about 6 contact mics to my arduino and receive simultaneous signals to be used in my computer for an art installation. Nonetheless, I don't know what's the ideal way to go. Shall ...
2
votes
1answer
1k views

Amplify Piezo Sensor

I am trying to amplify a piezo sensor per the instructions found at the link below. I am not trying to trigger a buzzer only print to the serial monitor whether the vibration was detected or not. I ...
0
votes
1answer
563 views

Amplified piezo sensor wiring problem

I am trying to amplify the signal from an Adafruit Small enclosed piezo. The piezo is working using the Arduino Knock example but I want to increase the sensitivity using an amplifier. The wiring ...
0
votes
2answers
639 views

Piezo not loud enough

I'm trying to get 110dB out of a 25khz Piezo Transducer. This piezo resonates at 25khz and as per the illustration in its datasheet should emit 110dB with 10 volts and 25khz frequency. Any ...
0
votes
2answers
520 views

Is a 9v battery appropriate for a piezo and 1 LED?

I'm making a basic "door open" detector that, when a door is opened, it turns on an LED and then sounds an alarm via a piezo. This is controlled via a 5v Adafruit Trinket. Is a 9v battery the ...
1
vote
1answer
439 views

How to Serial read two consecutive chars sent by computer to Arduino?

My program reads the input and plays the appropriate note for 500 milliseconds. If I type in 'a', tone(8, 440, 500) will be called. I now want to add different note lengths so that in the future, I ...
0
votes
1answer
55 views

Piezo connection causing RTC to go haywire

When I connect a piezo (to pin 8), it causes the output of my RTC to go haywire and throw 165 errors into the results. 2016/3/25 13:36:4 2016/3/25 13:36:4 2016/3/25 13:36:4 2016/3/25 13:36:4 2016/3/...
0
votes
1answer
126 views

Piezo not making sound

I've used the piezo on other projects with no problem, but for some reason this project isn't working out so hot. Here's a photo of my current set up. Here's the basic code that I presumed would ...
0
votes
1answer
210 views

Why does analog sensor “hum” when plugged into common ground?

I have the ground for an SD card module, LED, and piezo sensor all plugged into the same ground rail. When doing this I get a low "hum" in the piezo readings where instead of reading ground voltage (0)...
2
votes
1answer
245 views

Push-Pull tone code

I wanted to use a piezo sounder to sound an alarm in an application. Testing indicated that tone() was not very loud. I could use some external circuitry to swing the pins ±5V but as I have plenty of ...
1
vote
1answer
3k views

What is the correct way to wire a piezzo buzzer with a potentiometer and a button?

I'm working on a morse transmitter (kind-a), this how it looks like now: It's working, but is it correct? My piezo buzzer is 3-24V. I use the potentiometer as a volume control. The button is for ...
1
vote
2answers
468 views

How do I know which is ground and power in Piezo?

I have a piezoelectric sensor. Both pins are the same length. I have one like this: Piezo picture. On the Piezo it's written muRata and 01P. How do I know which do I send to the digital pins and which ...
1
vote
2answers
115 views

How Add Piezo Buzz to Pong Sketch

I am junior high teacher teaching students how to program using Arduino. I know the basics of programing but the students wanted to program a game which is a little above my skill set. I am using the ...
1
vote
1answer
160 views

Using Piezzo Electric buzzer 10V with an Arduino Lilypad USB

I bought a 10 V Piezzo electric buzzer and I wonder how to connect it to an Arduino (in my case a Lilypad USB, but the question stands for any Arduino I guess...). I hadn't realized this was a 10V ...
0
votes
2answers
5k views

Drive 12V Piezo Buzzer (Arduino)

I want to drive this 12V piezo buzzer: http://www.conrad.com/ce/en/product/130256/Kemo-L001-High-Freqeuncy-Piezo-Speaker-Component-12-24-V This is the circuit I am using. The Arduino is powered by a ...