# Buzzer pico explorer no sound

**URL:** <https://forums.pimoroni.com/t/buzzer-pico-explorer-no-sound/21151>\
**Category:** Support\
**Created:** [January 7, 2023, 12:47pm UTC](https://forums.pimoroni.com/t/buzzer-pico-explorer-no-sound/21151 "2023-01-07T12:47:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pa0akv](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@pa0akv](https://forums.pimoroni.com/u/pa0akv)\
**Post date:** [January 7, 2023, 12:47pm UTC](https://forums.pimoroni.com/t/buzzer-pico-explorer-no-sound/21151/1 "2023-01-07T12:47:13Z")

</div>

Hi, I am Andre new to the pico explorer!  
After playing with micropython on the LCD display (great results) I try to make a sound when I push key A-B\_X or Y

Until now no sound at all…

Here are some code snips

from pimoroni import Button  
buzzer = Buzzer(0)  
while True:  
if button\_x.read():  
display.set\_pen(WHITE) # change the pen colour  
display.text(“Button X pressed”, 10,200,scale=2) # display some text on the screen  
display.update()  
buzzer.set\_tone(1750)  
time.sleep(1)  
buzzer.set\_tone(0)  
display.set\_pen(RED)  
display.rectangle(10,200,239,16)  
display.update()  
else:  
time.sleep(0.1)

Is buzzer.set\_tone implemented in the latest micro python release?

greetings Andre

---

<div class="post-metadata">

**Author:** ![ahnlak](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/ahnlak/32/5610_2.png) [@ahnlak](https://forums.pimoroni.com/u/ahnlak)\
**Post date:** [January 7, 2023, 2:05pm UTC](https://forums.pimoroni.com/t/buzzer-pico-explorer-no-sound/21151/2 "2023-01-07T14:05:54Z")

</div>

From the example readme - “(you’ll need to connect AUDIO to GP0 with a jumper wire to hear noise)”.

For reasons (that I don’t _entirely_ understand!), you need a jumper to connect up the buzzer!

---

<div class="post-metadata">

**Author:** ![pa0akv](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@pa0akv](https://forums.pimoroni.com/u/pa0akv)\
**Post date:** [January 7, 2023, 4:26pm UTC](https://forums.pimoroni.com/t/buzzer-pico-explorer-no-sound/21151/3 "2023-01-07T16:26:59Z")

</div>

Thanks, I did understand to connect the buzzer to a gpio pin. So I did but even if I connect audio for a short time to 3V3 no sound…

---

<div class="post-metadata">

**Author:** ![ahnlak](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/ahnlak/32/5610_2.png) [@ahnlak](https://forums.pimoroni.com/u/ahnlak)\
**Post date:** [January 7, 2023, 5:05pm UTC](https://forums.pimoroni.com/t/buzzer-pico-explorer-no-sound/21151/4 "2023-01-07T17:05:44Z")

</div>

Hmm; have you tried running the examples? That at least should narrow the issue down to a hardware issue or trouble with your code.

I know it _was_ working, and while it’s possible it’s broken without anyone noticing in the latest releases it seems improbable. If you can’t get it to work with the examples I’ll try and dig mine out, stick a fresh firmware on it and try to make it beep :-)

---

<div class="post-metadata">

**Author:** ![pa0akv](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@pa0akv](https://forums.pimoroni.com/u/pa0akv)\
**Post date:** [January 7, 2023, 5:20pm UTC](https://forums.pimoroni.com/t/buzzer-pico-explorer-no-sound/21151/5 "2023-01-07T17:20:15Z")

</div>

Thanks ahniak for the quick response. Later this evening I will put in a new firmware. Fine evening!

Andre

---

<div class="post-metadata">

**Author:** ![pa0akv](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@pa0akv](https://forums.pimoroni.com/u/pa0akv)\
**Post date:** [January 7, 2023, 6:43pm UTC](https://forums.pimoroni.com/t/buzzer-pico-explorer-no-sound/21151/6 "2023-01-07T18:43:13Z")

</div>

Hello ahnlak, I just managed to get the buzzer make any sound…  
I make some changes to the example  
import time  
from picographics import PicoGraphics, DISPLAY\_PICO\_EXPLORER  
from pimoroni import Buzzer

display = PicoGraphics(display=DISPLAY\_PICO\_EXPLORER)

# Create a buzzer on pin 0

# Don’t forget to wire GP0 to AUDIO!

BUZZER = Buzzer(0)

BLACK = display.create\_pen(0, 0, 0)  
GREEN = display.create\_pen(0, 255, 0)

# this handy list converts notes into frequencies, which you can use with the explorer.set\_tone function

tones = {  
“B0”: 1220,  
“C1”: 1230,  
“CS1”: 1240,  
“D1”: 1250

}

# put the notes for your song in here!

song = [“B0”, “C1”, “CS1”, “D1”]

def clear(): # this function clears Pico Explorer’s screen to black  
display.set\_pen(BLACK)  
display.clear()  
display.update()

def playtone(frequency): # this function tells your program how to make noise  
BUZZER.set\_tone(frequency)

def bequiet(): # this function tells your program how not to make noise  
BUZZER.set\_tone(-1)

def playsong(song): # this function plays your song  
a = 0 # this variable keeps track of the visualiser bars  
for i in range(len(song)):  
if (song[i] == “P”):  
bequiet()  
else:  
playtone(tones[song[i]])  
time.sleep(5) # change this number if you want to alter how long the notes play for  
bequiet()

clear()  
playsong(song)  
clear()

The sound is not very loud and I was wondering is there a way to increase the volume?

Also if I want to play just one tone like  
Buzzer.set\_tone(1750)  
and increase volume with Buzzer.duty(70)

I hope in the next library there will be something like this…  
Anyway thanks for your help!  
greetings Andre

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 7, 2023, 7:29pm UTC](https://forums.pimoroni.com/t/buzzer-pico-explorer-no-sound/21151/7 "2023-01-07T19:29:06Z")

</div>

JFYI, code tags are three ` at top of code and three more at end of code.  
Doing that will retain indents etc. And stop the accidental bold text etc.  
I had to ask how it was done, ;)

---

<div class="post-metadata">

**Author:** ![pa0akv](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@pa0akv](https://forums.pimoroni.com/u/pa0akv)\
**Post date:** [January 9, 2023, 2:18pm UTC](https://forums.pimoroni.com/t/buzzer-pico-explorer-no-sound/21151/8 "2023-01-09T14:18:37Z")

</div>

sorry for this I will use them in the next posts!

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 9, 2023, 3:08pm UTC](https://forums.pimoroni.com/t/buzzer-pico-explorer-no-sound/21151/9 "2023-01-09T15:08:46Z")

</div>

No worries, there is no easy obvious way to do it. That’s why I mentioned it.

---

<div class="post-metadata">

**Author:** ![Tonygo2](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/tonygo2/32/7814_2.png) [@Tonygo2](https://forums.pimoroni.com/u/Tonygo2)\
**Post date:** [February 17, 2023, 2:18pm UTC](https://forums.pimoroni.com/t/buzzer-pico-explorer-no-sound/21151/10 "2023-02-17T14:18:19Z")

</div>

![code 2](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/c/cf04e8e64ca47f528cf730e4c7e4d868f8715fc0.jpeg)
