Questions tagged [piezo]

refers to the prefix of Piezoelectricity.

Use this tag when asking a question related to the use of a piezoelectric component.

52 questions
4
votes
2 answers

Noise on piezo analog read due to Arduino power supply

I am making a device that measures temperature and vibrations and records the values onto an SD card. It will be a standalone device. The hardware used: - Arduino Uno - PCF8523 RTC clock - MAX3186 + PT100 RTD temperature sensor - Adafruit data…
3
votes
2 answers

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 circuit I had to do it: and here is the code I had…
user29569
3
votes
1 answer

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 spare pins, it seemed feasible to use 2 pins…
Milliways
  • 1,645
  • 2
  • 18
  • 29
2
votes
3 answers

How do I make my piezo buzzer only hum once without repetition?

I have a problem with getting my buzzer to only do the tones I programmed in once. I know I have to add some sort of code but I'm relatively new to this so I don't really know. I want it to start playing the tones I have in the code once I press the…
Éemia
  • 33
  • 4
2
votes
0 answers

1.7 MHz generator for a water atomizer

I'm creating a controller for a small greenhouse, I have a DHT22 for measuring and two relay module that controls heating and cooling systems, and I will use a piezo to produce humidity when it goes below X amount. This piezo works at 1.7 MHz and I…
Edgard
  • 21
  • 3
2
votes
1 answer

Arduino play many piezo at once

I need to play sound on 10 piezos at once. How to do that without delay() function.
Lowder
  • 27
  • 5
2
votes
1 answer

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 am a NOOB with respect to circuits and unable to…
GBG
  • 178
  • 1
  • 8
1
vote
2 answers

Using millis() instead of delay() when playing a melody

I want to make my Arduino to play several simple melodies, and also be able to skip a melody by pressing a button and go on with the next song. therefore I cannot use delay() because the code should constantly check if a button is pressed. So I…
Rsoc2002
  • 11
  • 2
1
vote
1 answer

Multitasking with Arduino?

I am making a Christmas Tree with Arduino. I found a 12 led chaser code on internet so I made 12 rows of leds and hook them up to my Arduino pro mini. They are working just fine. However, I also want to add music with piezo buzzer while running the…
1
vote
0 answers

Piezo sensor requires parallel or pull-down resistor?

Apologies but I didn't happen to find ultimate answer to this. I'm trying to make a simple piezo sensor (https://www.sparkfun.com/products/10293) which triggers something (e.g. a sound or lights up a LED) when it's pressed. This is similar to…
kuma
  • 111
  • 2
1
vote
0 answers

Arduino IDE on Attiny45: What kind of power does a chip need?

I have this little AtTiny45 which I'm loading a program with Arduino as ISP. My goal to use this chip along with a op amp, a piezo buzzer and a press button, and have it automatically sleep between uses. I intend to use 2 3V pill batteries in…
B7th
  • 167
  • 7
1
vote
0 answers

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 the signal generator itself is powered separately.…
1
vote
1 answer

Proper use of the tone() function within the loop () function

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 the code I've written. I would kindly ask if…
Stevie_D
  • 11
  • 1
  • 2
1
vote
2 answers

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 phase difference effect using one Arduino?
Dan
  • 11
  • 1
1
vote
1 answer

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 the direction of the DC-motor. When the …
Steven
  • 113
  • 6
1
2 3 4