# Speaker PHAT no sound or light

**URL:** <https://forums.pimoroni.com/t/speaker-phat-no-sound-or-light/6883>\
**Category:** Support\
**Created:** [January 8, 2018, 8:07pm UTC](https://forums.pimoroni.com/t/speaker-phat-no-sound-or-light/6883 "2018-01-08T20:07:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpage12](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/mpage12/32/3595_2.png) [@mpage12](https://forums.pimoroni.com/u/mpage12)\
**Post date:** [January 8, 2018, 8:07pm UTC](https://forums.pimoroni.com/t/speaker-phat-no-sound-or-light/6883/1 "2018-01-08T20:07:12Z")

</div>

Hello,

I have a phat stack with a drum and piano hat attached. Also a speak phat at the top. I followed these steps. [https://opensourcelab.wixsite.com/raspi/pianohat](https://opensourcelab.wixsite.com/raspi/pianohat)

Also, I literally had it working since I got it. Then today, I ran the script to get it working (see below).

My issue is my speaker phat lights and sound are not working.  
I have tried: - reboot the pi

- unplug and plug in the speaker phat
- run the script in the terminal for the speaker phat again.

This hasn’t worked yet. Looking for advice. Thanks

#!/usr/bin/env bash

python /home/pi/Pimoroni/pianohat/examples/simple-piano.py \> /dev/null 2\>&1 &  
python /home/pi/Pimoroni/drumhat/examples/drums.py \> /dev/null 2\>&1 &

running=true

echo “Press control-c to quit!”

trap ctrl\_c INT

function ctrl\_c() {  
killall python  
running=false  
}

while $running  
do  
sleep 1  
done

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [January 8, 2018, 9:32pm UTC](https://forums.pimoroni.com/t/speaker-phat-no-sound-or-light/6883/2 "2018-01-08T21:32:23Z")

</div>

Do you see any error output when you run simple-piano or drums?

What happens if, before you run the examples, you run:

```auto
sudo systemctl stop pulseaudio

```

---

<div class="post-metadata">

**Author:** ![mpage12](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/mpage12/32/3595_2.png) [@mpage12](https://forums.pimoroni.com/u/mpage12)\
**Post date:** [January 8, 2018, 10:18pm UTC](https://forums.pimoroni.com/t/speaker-phat-no-sound-or-light/6883/3 "2018-01-08T22:18:25Z")

</div>

Sweet. That works for the piano now but the drum doesn’t work now. Thoughts?

---

<div class="post-metadata">

**Author:** ![mpage12](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/mpage12/32/3595_2.png) [@mpage12](https://forums.pimoroni.com/u/mpage12)\
**Post date:** [January 8, 2018, 10:24pm UTC](https://forums.pimoroni.com/t/speaker-phat-no-sound-or-light/6883/4 "2018-01-08T22:24:34Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/1/192c907aef55092f7258ebbc7dd00b6724070aae.jpg)

Drum works. Piano doesn’t. This is my script.

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [January 9, 2018, 12:50pm UTC](https://forums.pimoroni.com/t/speaker-phat-no-sound-or-light/6883/5 "2018-01-09T12:50:22Z")

</div>

Could you use `cat yourscriptname.py` to get a readable output of your script and paste it here?

Use three backticks to format code:

````
```
like so
```
````

---

<div class="post-metadata">

**Author:** ![kenjara](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/kenjara/32/1953_2.png) [@kenjara](https://forums.pimoroni.com/u/kenjara)\
**Post date:** [January 17, 2018, 8:35am UTC](https://forums.pimoroni.com/t/speaker-phat-no-sound-or-light/6883/6 "2018-01-17T08:35:56Z")

</div>

Just thought I would mention that I tested my speaker phat for the first time last night and audio did not work until I ran **sudo systemctl stop pulseaudio** either.

After that I listened to the bilge tank theme for the rest of the evening.
