Help designing an Arduino add-on board
- By xt0rted
- Electronic Design
- 4 Replies
I have a DAC, pre-amp, and headphone/pre-amp which use an Arduino, specifically the LCDuino, to control them. The power/config switch is a capacitive touch style with configurable RGB LEDs. I wanted to build a board to make hooking this up easier, then had the idea to modify the LCDuino firmware to use an extra pin to indicate when mute is enabled. Between the SSR trigger pin and this extra mute pin I can use that to turn the switch's LED on when the device is powered on, and change it's color when mute is enabled.
What I've come up with is a dip switch to configure the colors, and a couple logic gates to determine which transistor/dip switch combo should be active. On my breadboard this is working fine but now I want to turn it into a board I can plug in to the LCDuino. I've built a bunch of things over the years, but never designed anything, so before I go buying parts or having PCBs made I was hoping to get some feedback on what I have so far.
I think the circuit itself is ok, but maybe there's a way to simplify it a bit that I'm overlooking? When the device is powered off the SSR trigger goes low, but the mute pin stays high, so in this scenario I need to make sure the mute indicator also goes off. I can certainly work around that in code which would remove the need for the logic gates, but there's very little memory left and I don't want to add more code than I need to. This is especially true in the event of a firmware update where I could lose some of the currently available free space.
I went SMT because of space constraints on the board and in my pre-amp where there's very little extra space to add this in. I've worked with components of these sizes so soldering them won't be an issue. I also added some jumpers so I don't need to populate all of the components depending on how this is used. If I know what colors I want I don't need a dip switch, and if I don't want the mute function I can use JP1 and skip populating most of the circuit. Not all of the headers will be used either, so some of them will be left off depending on where it's used.
The ICs are the same series used in the DAC this will be going in so I don't see why there'd be any issues with those. The resistors and capacitors all seem like ok versions of the through hole parts I've been using. The diodes I picked are what I'm really not sure about. With my breadboard version I'm using 1N4148 because that's what I had extra of but I'm not sure if I picked a good alternative for the PCB version.
The switch is a Schurter 3-101-412 and each LED control line draws 0.05mA when shorted to ground to turn on it's corresponding LED. These are the parts I've picked out so far:
I've gone through more PCB iterations than I can count. The current version should have the pin headers in all the right locations which is what dictated the rest of the layout. I also need to be mindful of components on the board this is plugging into which is why there's nothing on the back aside from the headers. It's a 4 layer board with the back side facing the LCDuino when plugged into it. It's setup as as follows:
Front: LED control circuit
Inner 1: power
Inner 2: ground
Back: connector passthrough
Here's a quick demo of the breadboard version in action.
Login to view embedded media
What I've come up with is a dip switch to configure the colors, and a couple logic gates to determine which transistor/dip switch combo should be active. On my breadboard this is working fine but now I want to turn it into a board I can plug in to the LCDuino. I've built a bunch of things over the years, but never designed anything, so before I go buying parts or having PCBs made I was hoping to get some feedback on what I have so far.
I think the circuit itself is ok, but maybe there's a way to simplify it a bit that I'm overlooking? When the device is powered off the SSR trigger goes low, but the mute pin stays high, so in this scenario I need to make sure the mute indicator also goes off. I can certainly work around that in code which would remove the need for the logic gates, but there's very little memory left and I don't want to add more code than I need to. This is especially true in the event of a firmware update where I could lose some of the currently available free space.
I went SMT because of space constraints on the board and in my pre-amp where there's very little extra space to add this in. I've worked with components of these sizes so soldering them won't be an issue. I also added some jumpers so I don't need to populate all of the components depending on how this is used. If I know what colors I want I don't need a dip switch, and if I don't want the mute function I can use JP1 and skip populating most of the circuit. Not all of the headers will be used either, so some of them will be left off depending on where it's used.
The ICs are the same series used in the DAC this will be going in so I don't see why there'd be any issues with those. The resistors and capacitors all seem like ok versions of the through hole parts I've been using. The diodes I picked are what I'm really not sure about. With my breadboard version I'm using 1N4148 because that's what I had extra of but I'm not sure if I picked a good alternative for the PCB version.
The switch is a Schurter 3-101-412 and each LED control line draws 0.05mA when shorted to ground to turn on it's corresponding LED. These are the parts I've picked out so far:
I've gone through more PCB iterations than I can count. The current version should have the pin headers in all the right locations which is what dictated the rest of the layout. I also need to be mindful of components on the board this is plugging into which is why there's nothing on the back aside from the headers. It's a 4 layer board with the back side facing the LCDuino when plugged into it. It's setup as as follows:
Front: LED control circuit
Inner 1: power
Inner 2: ground
Back: connector passthrough
Here's a quick demo of the breadboard version in action.
Login to view embedded media
Attachments
-
1743881588132.png331 KB · Views: 43
-
1743884140323.png23.4 KB · Views: 41
-
1743884161391.png36.1 KB · Views: 27
-
1743884181444.png34.4 KB · Views: 27
-
1743885260304.png199.9 KB · Views: 24
-
1743885278738.png201.7 KB · Views: 29
-
1743885323900.png1.3 MB · Views: 27
-
1743885351288.png1.2 MB · Views: 44