Skip to content

Commit 9c654c6

Browse files
author
ScrapComputing
committed
Adds a low-pass filter for PWM audio
Improves the audio quality of PWM audio with a simple low-pass filter. This uses R3-C3 and R4-C4 (one filter for each channel).
1 parent 7a98f37 commit 9c654c6

File tree

4 files changed

+1277
-942
lines changed

4 files changed

+1277
-942
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/kicad/*-cache
2+
/kicad/*-cache.lib
3+
/kicad/*-bak
4+
/kicad/gerbers/*

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ For controlling the mt32-pi from DOS, please use [mt32-pi-control](https://githu
1616

1717
- It currently supports two modes of audio: using the raspberry pi's PWM audio out (which is noisy and sounds pretty bad), and an external Hi-Fi PCM5102A based DAC.
1818
- You can also attach a 0.91 OLED SSD1306 I2C 128x32 display.
19+
- Starting from rev 0.3 PWM audio is filtered by a simple low-pass filter (R3-C3 and R4-C4).
1920

2021
# I want to build one myself!
2122
- Please note that the current version of the WavetablePi board is quite tall (76mm x 40mm) so please check if it fits your sound card, especially if it needs to be placed perpendicularly to the ISA slots.
@@ -26,16 +27,18 @@ For controlling the mt32-pi from DOS, please use [mt32-pi-control](https://githu
2627

2728
# Bill of materials
2829

29-
Item | ## | Description
30+
Item | # | Description
3031
-----------------------------------------|-----|-----------------------------------------
3132
Raspberry Pi Zero 2 W | 1 | The older RPi Zero is not fast enough
3233
40-pin 2x20 male header 2.54mm pitch | 1 | For attaching the RPi to the board.
3334
26-pin 2x13 female header 2.54mm pitch | 1 | For attaching the board to the wavetable header
3435
6-pin 2x3 pin male header 2.54mm pitch | 1 | For the audio select jumpers
3536
Jumper 2.54mm pitch | 2 | Jumpers for the audio selection header
36-
10uF through-hole ceramic capacitors | 2 |
37+
Capacitor 10uF through-hole ceramic | 2 |
38+
Capacitor 100nF through-hole ceramic | 2 | C3 and C4 which form the PWM audio low-pass filter along with R3 and R4. 100nF is for a 1.6KHz cutoff frequency. Use lower values for higher cutoff
3739
Resistor 22K Ohm | 1 |
3840
Resistor 10K Ohm | 1 |
41+
Resistor 1K Ohm | 2 | R3 and R4, which along with C3 and C4 form a low-pass filter of the PWM audio
3942
0.91 OLED SSD1306 I2C 128x32 module | 1 | (Optional)
4043
PCM5102A I2S DAC Module | 1 | (Optional but highly recommended) Please check the PCB for the supported dimensions and form factor!
4144

0 commit comments

Comments
 (0)