Relay Board Hardware Design

eetech00

Joined Jun 8, 2013
4,705
General guidelines for schematic annotations-
1. Signal flow - left to right (in to out).
2. Supply voltages - Top to bottom (Positive top, Neg/ground at bottom).
3. Notes - lower left
4. Title - lower right

1774106755069.png
 

Jon Chandler

Joined Jun 12, 2008
1,596
I suggest ditching the autorouting – that's a right proper mess. The tracks from the relay contacts should be large and direct to the terminal block as possible. What's with the two angled parallel tracks on the left, going a long distance before joining together?
 

Thread Starter

Vihaan@123

Joined Oct 7, 2025
244
I suggest ditching the autorouting – that's a right proper mess. The tracks from the relay contacts should be large and direct to the terminal block as possible. What's with the two angled parallel tracks on the left, going a long distance before joining together?
Yes i remove auto routing and do manually i have never done before.
1774258941585.png
The input connector contains the +5V, 3.3V and Gnd signals, I will work to check why it is showing in parallel.
 

Jon Chandler

Joined Jun 12, 2008
1,596
I like manually routing circuit boards. It's kind of like a puzzle, finding the best ways to place components and route tracks.

Look at the schematic, and move parts around to make the most direct connections. Sometimes, rotating a component makes things much simpler.

I suggest making the tracks wide where room allows. It will make the board more reliable. Also, you may want to add some mounting holes in the corners of the board.
 

Thread Starter

Vihaan@123

Joined Oct 7, 2025
244
After reviewing the forum threads i found this thread for interfacing the FET with 3.3V logic.
Using 2n7000 as switch with 3.3V MCU | All About Circuits
The circuit used is
1774494401985.png

Few clarifications are
1774495161858.png

1774495031238.png

Power Dissipation at 25DegC:
P = (71.4mA)^2 * 5.3 Ohm = 0.025 Watts
1774495469556.png
I hope Drain current and Power Dissipation are within the limits. Please correct me if i am wrong.

Did manual routing easy eda has feature to bring the schematic into layout.

1774496146449.png

3D model
1774496335781.png

I plan to add additional features like a. reverse polarity protection, b. short circuit protection c. Input port protection, i have to update the schematic accordingly so that once i understand and test it, i can reuse for future projects as well.
 

Jon Chandler

Joined Jun 12, 2008
1,596
How about something like this? This is a quick sketch, which may not be your exact circuit.

A few points:

> Relay contacts have big fat traces to handle any load the relay may switch.

> Short fat traces to the coil back emf diode - this helps to eliminate transients getting to other parts of the circuit.

> Rearranged fet, resistors and caps to make most direct connections while maintaining good clearances between traces and component pads.

> Mounting holes with clearances for nuts and tools shown in the document layer.

> Rounded corners on the PCB - square corners are sharp!

> Made reference designators face consistent directions and be visible around parts.

relay board.png
 

Thread Starter

Vihaan@123

Joined Oct 7, 2025
244
I feel the circuit has a problem since when the output is low (relay is OFF) there will be fixed voltage of 1.4V applied across the port pin. To know the amount of sink current i have to know the input impedance of the pin, and when i verified the data sheet it says if the pin is configured as input then either the pull up or pull down can be 40 kOhms, the current will be 1.4V / 40 kOhms = 0.035mA = 35uA, but i am not clear in case if i configure it as output how much impedance the pin will have, how do i proceed, is the continuous current of 35uA when relay is off is acceptable?
Sorry the problem will be with the VGS threshold value it is mentioned as minimum of 0.8V and max 3V, so 1.4V will fall in between so the MOSFET will start to conduct not fully OFF.
 
Last edited:

eetech00

Joined Jun 8, 2013
4,705
I feel the circuit has a problem since when the output is low (relay is OFF) there will be fixed voltage of 1.4V applied across the port pin. To know the amount of sink current i have to know the input impedance of the pin, and when i verified the data sheet it says if the pin is configured as input then either the pull up or pull down can be 40 kOhms, the current will be 1.4V / 40 kOhms = 0.035mA = 35uA, but i am not clear in case if i configure it as output how much impedance the pin will have, how do i proceed, is the continuous current of 35uA when relay is off is acceptable?
Sorry the problem will be with the VGS threshold value it is mentioned as minimum of 0.8V and max 3V, so 1.4V will fall in between so the MOSFET will start to conduct not fully OFF.
That circuit is worse than the others.

The mosfet was only a suggestion from someone. Just use an NPN transistor driver like you started out to use.
Then the 3.3v MCU voltage problem basically goes away. Drive the NPN base with about 3mA.
 

panic mode

Joined Oct 10, 2011
4,984
most people just order standard PCB with 1oz copper. that is 35um thick. in that case for 10A relay traces should be 4mm or wider.
if the relay contacts are used to switch any loads powered by higher voltage such as mains. add U shaped slot in the PCB between low and high voltage:
1774629490677.png
 

Thread Starter

Vihaan@123

Joined Oct 7, 2025
244
How about something like this? This is a quick sketch, which may not be your exact circuit.
A few points:

> Relay contacts have big fat traces to handle any load the relay may switch.

> Short fat traces to the coil back emf diode - this helps to eliminate transients getting to other parts of the circuit.

> Rearranged fet, resistors and caps to make most direct connections while maintaining good clearances between traces and component pads.

> Mounting holes with clearances for nuts and tools shown in the document layer.

> Rounded corners on the PCB - square corners are sharp!

> Made reference designators face consistent directions and be visible around parts.
1774678239110.png

Thank you for support and clarifications, it is taking time to adjust with terminology and understanding of PCB design. The problem i am facing is the relay footprint does not flip vertically hence the long trace near the diode, can i use a Via? I have added fuse for protection, but the size is big. I am confused on the trace width for the relay how much i have to set? (the default is 0.254mm) at present i have used 0.554mm.
 

Jon Chandler

Joined Jun 12, 2008
1,596
The relay coil does not care about polarity (almost always true unless the relay includes an integral diode).

Screenshot_20260327_234228_Edge.jpg

As far as trace width, for the relay contacts, you want wide traces to carry the load. Simple test – compare the width of the trace to the width of the fuse link. If the trace won't carry the current the fuse will, an overload will blow the trace off the board before the fuse blows.

If you have space, there's no advantage to thin traces. The thinner the trace, the greater chance of fabrication defect.
 
Top