Simple PWM Filter PCB Build Guide

Here are the build notes for my Simple PWM Filter PCB Design. Below you can see it connected to my Pico Touch Board.

Warning! I strongly recommend using old or second hand equipment for your experiments.  I am not responsible for any damage to expensive instruments!

If you are new to electronics and microcontrollers, see the Getting Started pages.

Bill of Materials

  • PWM Audio Filter PCB (GitHub link below)
  • 2x Suitable filter components, for example, per channel:
    • 3x 1KΩ resistors
    • 2x 100nF ceramic capacitor
    • 1x 2u2 electrolytic capacitor
  • Optional: Pin headers
  • Optional: 2x 3.5mm TRS sockets (pcb mounted, see photos for footprint)

Build Steps

Taking a typical “low to high” soldering approach, this is the suggested order of assembly:

  • All resistors.
  • TRS sockets (if used).
  • Disc capacitors.
  • 3-way jumper headers (if used).
  • Electrolytic capacitors.

Here are some build photos.

If the electrolytic capacitors will be bent over, then they should be bent and soldered in place before the header pins.

Testing

I recommend performing the general tests described here: PCBs.

PCB Errata

There are no known issues with this PCB at present.

Enhancements:

  • As previously mentioned it might have been useful to label the left and right channels and use the alternative resistor circuit symbol.
  • It might have been useful to include solder jumpers to allow the simple combining of the left and right inputs and outputs
  • Some additional connection points for an oscilloscope might have been useful too.

Find it on GitHub here.

Sample Applications

Here are some applications to get started with:

Experimenter board

Rather than fixed components, it is possible to solder on round pin header sockets to allow components to be pushed into place. This means that it is fairly easy to experiment with alternative component values to see what difference they make.

When doing this, I only soldered up one channel, but joined the left/right inputs and outputs by adding a solder bridge across the pin headers. I also soldered additional pins to the spare GND connections from the second channel. This allows plenty of pin connections for an oscilloscope.

The connections for components aren’t as tight as they could be, especially for low-wattage components with pretty thin legs.

It might be that just continuing to use solderless breadboard for experiments is simpler, but it was pretty useful to be able to leave oscilloscope connections and the input and output connected whilst experimenting.

Board Manufacturing

These boards are sized to allow them to be ordered in a 2×4 panel if required, and still remain within a 100x100mm footprint. I used jlcpcb’s panel options with v-cuts and it was really quite inexpensive to do.

Closing Thoughts

I’m still not sure I really understand enough analog electronics to get the theory of how a dual-stage filter incorporating a potential divider still works, and any simulation is still not quite matching my theory to experiment.

As has been said, “in theory, theory and practice are the same, in practice they are different”.

This might make some proper practicing a bit easier.

Kevin

#filter #lpf #pcb #pwm

Simple PWM Filter PCB Design

Having spent a bit of time attempting (although I’m not sure I’m succeeding yet) to understand how to get a useful filter for my Pico Touch Board Audio, I thought it would be useful to have a simple template PCB that could be used for a range of PWM low-pass filtering options.

This is my design.

Warning! I strongly recommend using old or second hand equipment for your experiments.  I am not responsible for any damage to expensive instruments!

If you are new to electronics and microcontrollers, see the Getting Started pages.

The Circuit

This is following on from the discussion in Pico Touch Board Audio creating the template for a simple two-stage low-pass filter with an option for including a potential divider resistor to drop the overall voltage too.

I’ve doubled the circuit to allow for stereo in and out if required and have included both 3.5mm TRS sockets and pin jumper headers for both input and output.

It requires no power, being a completely passive filter.

If stereo is not required, then just one of the circuits can be populated – ideally the one connected to the TRS tip.

PCB Design

There isn’t much to this pcb layout really. I was particularly keen to keep the PCB away from specific values of components, so instead used the silkscreen to present a pseudo-circuit diagram to make it clear which components are which.

I’ve also tried to leave enough room for the electrolytic capacitors to allow them to be bent over if required.

Closing Thoughts

With hindsight, I can think of a couple of additions that would have been useful on the silkscreen – labelling which circuit is left and right for example.

And having the boards back, I should have added manual “wavy line” resistor diagrams rather than rectangles, but it is enough for what I need.

And it might have been useful to include some additional test points for connecting an oscilloscope.

Kevin

#filter #lpf #pcb #pwm

#EAS #WEA for Zones LPF-009, #LFP-010, #LPF-012, #LPF-013, #SLC-222, #SLC-223, #SLC-261 and SLC-262.: Gifford Fire Officials have lifted the remaining Evacuation Warnings for the following Zones: LPF-009, LFP-010, LPF-012, LPF-013, SLC-222, SLC-223, SLC-261 and SLC-262. Area includes S. of West/East Pozo Rd., W. of Avenales Rach & Caldwell Mesa, E. of Rinconada Trail to Hi Mtn Lookout, area of Stony Creek & Joaquin Cyn. For more info go to: ReadySLO.org/WEA Source: San Luis Obispo County ** DO
Are you interested in the #LPF? E. Dinas and J. van Spanje. “Crime Story. The Role of Crime and Immigration in the Anti-Immigration Vote”. In: Electoral Studies 30.4 (2011), pp. 658-671. http://dx.doi.org/10.1016/j.electstud.2011.06.010.
Are you interested in the #LPF? B. Castanho Silva. “Populist Radical Right Parties and Mass Polarization in the Netherlands”. In: European Political Science Review (2017), pp. 1-26. http://dx.doi.org/10.1017/S1755773917000066.
#EstherOuwehand heeft één compliment: dit kabinet was een grotere puinhoop dan dat van de #LPF. Klopt #Debat
Want to know more about the #LPF? H. Pellikaan, T. van der Meer, and S. L. de Lange. “The Road from a Depoliticized to a Centrifugal Democracy”. In: Acta Politica 38 (2003), pp. 23-49.
Are you interested in the #LPF? B. Castanho Silva. “Populist Radical Right Parties and Mass Polarization in the Netherlands”. In: European Political Science Review (2017), pp. 1-26. http://dx.doi.org/10.1017/S1755773917000066.
Are you interested in the #LPF? B. Castanho Silva. “Populist Radical Right Parties and Mass Polarization in the Netherlands”. In: European Political Science Review (2017), pp. 1-26. http://dx.doi.org/10.1017/S1755773917000066.