- Build Rating
- 5.00 star(s)
Hi all,
This is a thread summarising my experience building MattG's v5.1 relay switching system, and some information I thought might help others.
For those who are not aware, MattG has done a huge amount of great work designing a relay switching system which is all open source and hosted here:
github.com
I stumbled across this by chance and it saved me so much pain.
There's a few versions of his pcb layout, I selected v5.1 as it was the smallest however it involves extensive use of SMD components so consider an earlier through hole version if that puts you off.
I used an ATtiny13A microcontroller and Panasonic TQ2-L2-3V relay. All other components are as follows:
R1-R5 - 1k (0805 Package)
CLR1 - 10k (0805 Package)
C2 & C5 - 100nF (0805 package)
C3 - 10nF (0603 Package)
C4 - 4.7uf (1206 Package)
C6 - 10uF (1206 Package)
D1-D3 - BAT54J (SOD-323 Package)
Q1-Q3 - 2N7002 (SOT-23 Package)
U3 - MCP1799T (SOT-23 Package)
What I particularly liked about this SMD version is that there is an empty space on the back (not interrupted by through hole components) just big enough to place some strong double sided tape allowing the board to be fixed directly to the switch. A couple of short wires from the switch terminals to the switch through holes coming from underneath make for a neat arrangement.
I opted to wire everything else up using JST-XH connectors which have 2.5mm spacing that suits the pcb and allows for a few tests to be made before installation. For example, an LED and DC jack mounted on XH connectors allow function testing on the bench and once made can sit in the toolbox for next time. A similar test connector allows a pedal pcb to be checked without wiring in a switch, giving you some options for QC during the build.
During the build I only found two things that could be improved, at least from my perspective. I offer these in good faith and completely accept that these are both preferential and will not impact functionality at all, which is a testament to MattG's work.
1. The solder pads for the diodes are really very small. I had some difficulty soldering these components and suspect that larger pads would make it easier. This might be a skill issue.
2. Given the use of very small components to keep size down, I'd have preferred to use the JST-PH connectors which have 2.0mm spacing, simple tweak to the pcb I'd imagine. Little detail but seems a more natural fit.
I hope this helps someone out there. If you have any questions, let me know and I'll try to help.
This is a thread summarising my experience building MattG's v5.1 relay switching system, and some information I thought might help others.
For those who are not aware, MattG has done a huge amount of great work designing a relay switching system which is all open source and hosted here:
GitHub - matt-garman/mcu-relay-controller: Use a small microcontroller (e.g. ATtiny13) to respond to a momentary switch and drive a relay and status LED
Use a small microcontroller (e.g. ATtiny13) to respond to a momentary switch and drive a relay and status LED - matt-garman/mcu-relay-controller
I stumbled across this by chance and it saved me so much pain.
There's a few versions of his pcb layout, I selected v5.1 as it was the smallest however it involves extensive use of SMD components so consider an earlier through hole version if that puts you off.
I used an ATtiny13A microcontroller and Panasonic TQ2-L2-3V relay. All other components are as follows:
R1-R5 - 1k (0805 Package)
CLR1 - 10k (0805 Package)
C2 & C5 - 100nF (0805 package)
C3 - 10nF (0603 Package)
C4 - 4.7uf (1206 Package)
C6 - 10uF (1206 Package)
D1-D3 - BAT54J (SOD-323 Package)
Q1-Q3 - 2N7002 (SOT-23 Package)
U3 - MCP1799T (SOT-23 Package)
What I particularly liked about this SMD version is that there is an empty space on the back (not interrupted by through hole components) just big enough to place some strong double sided tape allowing the board to be fixed directly to the switch. A couple of short wires from the switch terminals to the switch through holes coming from underneath make for a neat arrangement.
I opted to wire everything else up using JST-XH connectors which have 2.5mm spacing that suits the pcb and allows for a few tests to be made before installation. For example, an LED and DC jack mounted on XH connectors allow function testing on the bench and once made can sit in the toolbox for next time. A similar test connector allows a pedal pcb to be checked without wiring in a switch, giving you some options for QC during the build.
During the build I only found two things that could be improved, at least from my perspective. I offer these in good faith and completely accept that these are both preferential and will not impact functionality at all, which is a testament to MattG's work.
1. The solder pads for the diodes are really very small. I had some difficulty soldering these components and suspect that larger pads would make it easier. This might be a skill issue.
2. Given the use of very small components to keep size down, I'd have preferred to use the JST-PH connectors which have 2.0mm spacing, simple tweak to the pcb I'd imagine. Little detail but seems a more natural fit.
I hope this helps someone out there. If you have any questions, let me know and I'll try to help.
Attachments
Last edited: