How to make piezo disc louder

See post#7.

its too confusing can you literaly just tell me

Do you have a 2N2222 transistor ?

Do you have any transistors ?

If so, what is written on it/them ?

Do you have a solderless breadboard ?

Do you have a soldering iron ?

https://create.arduino.cc/projecthub/SURYATEJA/use-a-buzzer-module-piezo-speaker-using-arduino-uno-89df45

No

Yes

Yes

Yes

I have a pn222 transistor.

Is this a
pn2222

Does it look like this ?

image

image

Yes and the first line says: 2N The second one says: 2222A the last one says: -1726

Just to confirm, ?
2N
2222A

yes

Are we now going to have one post and reply for each individual component? Or several posts?

1 Like

What resistors are being used? Also, do I need code?

1 Like
void setup()
{

}

void loop()
{
  for (unsigned int x = 200; x <= 4000; x += 100) 
  {
    tone(8, x);
    delay(200);
  }

  for (unsigned int x = 4000; x >= 200; x -= 100) 
  {
    tone(8, x);
    delay(200);
  }

} //END of loop()
1 Like

reply #7

Why "tone", and why the transistor.
Didn't anyone read reply#12.
Leo..

too bad

Has @anon57585045 reserved #100 yet?

Gotta keep up with it. :+1:

No. I will be #100.