How to best change orientation of diode, and other errors?

Thank you thank you thank you. This was very helpful. Have som work to do. Half a year of work, one month more wont hurt.

A PCB designer would probably laugh at the questions and the time it takes for me.

But I love this and that is most important.

if you look at this link: PCB Manufacturing & Assembly Capabilities - JLCPCB see that 1Oz equals 35um for jlcpcb.

It would be better to use a mosfet with the possibility of operating with a gate voltage of 3v3 like this: TTD20N04AT

The signals from the MCU are 3V3 or 5V?

GIPO PWM signal is 3.3V. Is ther a better mosfet I can use? The one you showed me?

Nice finding! I have bin asking and searching for month.
I only selected the mosfet I have becose this N-Drive shield use it. I bought that and it worked, so thats the only reason why i selected the mosfet I have.

This is when I tested: Perfect dimming! - YouTube

What is the main diferance betwen that mosfet and the one I selected. Will the footprint I have fitt that mosfet?

You basicly solve all my problems. Only return curent, and input power, left!

Once again big thank you!

By the way 12V and 28 dose not have to be so powerful as 5V

Will my footprint work with that mosfet?

They look fairly similar?

The mosfet that I recommended is better for 3v3 gate signals, has a minor RDSOn and has a 40V VDS that is fine for your circuit.
The footprint is identical to yours and the pads function is also identical.
It also costs less and maybe you find it on jlcpcb.

From the video I don’t see a use of the shield with a load that absorbs a large current, 5A - 10A

What current do you need on 12V and 28V?

[EDIT]However the shield is designed for arduino uno.

[EDIT]You tested with 3V3 control signals this shield?

[EDIT]What MCU you use to control the card?

I found it on JLC PCB, so that is perfect then they can mount it also. I dont have any SMD mounting gear.

From the video I don’t see a use of the shield with a load that absorbs a large current, 5A - 10A

When I tested it I started test it with a Arduino UNO that it is designed for. But when I tried to get higher resolution on the PWM signal, UNO was not that good. Then I got the tip of ItsyBitsy M0 Express, fastere cpu more PWM port and higher resolution. Smaller footprint, I decided to use that insted. I tested it with the N-Drive Shield and it worked. Each Original Boeing 737 Panel Backlight uses min lightbulbs as backlight, about 2.5A per panel. My dimmer card is supose to work with a hole Forwar Over Head, a friend of mine that have a hole OEM setup told me it draws about 150W of power, about 2.5 A per panel. Then I thought that I can have 3 panels on each chanel. This dimmer card will also be designed so that you can use LED backlight panel if you want. Mix and match what ever back light and voltage you have. And with my initial tests it workt perfect, with the N-Drive Shield.

Main purpes of this PCB is to get it buteful. With out alot of cables.

What current do you need on 12V and 28V?

That is mainly for LED, or if it happens to be any 28V Backligt. So basicly it can be what ever AMP I want. For exampel ther is som “MAP” light that could be 28V, that draws some power.

[EDIT]However the shield is designed for arduino uno.

Yes

[EDIT]You tested with 3V3 control signals this shield?

Yes, thats what you see on the video. But I rather select what is more sutable for 3.3V
Ther is no probem to PWM 7.5A in 5V threw the Mosfet you found?

[EDIT]What MCU you use to control the card?
What does that meen?

Now I have changed most of the things:

Dimmer project4.zip (1.4 MB)

I am still not happy about the designe of the power input, how can I improve this?

How would you have done?

Also the mounting hole placement, is not perfect.

  1. I noticed a singular thing, you have no capacitors in the
    schematic. You need at least the 100n ones on the logic chips.
    I would also put an electrolytic one on the 3V3 near the input connector. 330uF 6v3 Electrolytic polymeric.

  2. I would put electrolytic capacitors at least at the input of the supply voltages. Since dim-channels work in pwm.
    A flying calculation would put at least 1000uF for each power supply, they should be with greater capacity on the lower voltages as the currents increase compared to what you reported in the previous posts.

  3. I don’t know what you need the D37, D2, D4 diodes for or put those suppressors or put nothing.

  4. I’m looking at the GND plan under the mosfets and I can’t understand how it’s done.
    I do not like.

  5. Switch footprint pads do not have the welding mask layer. If you look at the 3d view, the pads are covered with the welding mask and in this way you will not be able to solder the pins.

Schermata del 2022-08-21 21-27-53

[EDIT] You have another problem here :
Schermata del 2022-08-21 21-43-16

What do you mean by logic chip? How can that help?

  • I would put electrolytic capacitors at least at the input of the supply voltages. Since dim-channels work in PWM.

A flying calculation would put at least 1000uF for each power supply, they should be with greater capacity on the lower voltages as the currents increase compared to what you reported in the previous posts.

Why do I need cap, what would they do?
On the relay card they have 2 100uF caps on the input power. Different types what it looks like. Don’t know why? But I guess I have to have some caps.

  • I don’t know what you need the D37, D2, D4 diodes for or put those suppressors or put nothing.

The relay card have that on the 5v power input. Don’t know if it is needed.
I imagine I need that if any reverse current feeds + to the minus side so it doesn’t get back to the PSU.

  • I’m looking at the GND plan under the mosfets and I can’t understand how it’s done.
    I do not like.

I just copied the N-Drive Shield because that looked professional. I don’t know if it’s supposed to be done that way, but a big copper plane under and over, solder mask removed, so you can fill it with solder to have more mass to cool down the Mosfet, or put a heatsink, I don’t know why “Freetronics” have done it that way? Maybe someone else can answer that?

  • Switch footprint pads do not have the welding mask layer. If you look at the 3d view, the pads are covered with the welding mask and in this

I used the footprint in the end of this thred : DPDT/SPDT footprints anyone?

How do I change the footprint with solder mask?

Also should I change the return current path? I can’t visualize how the current would flow. I have put visas on several places. But I don’t known if that is enough. It feels like it would be simpler to draw cables from inputs to each Chanel. But that feels like a workaround.

By the way wrote this in bead with iPhone, so have to review it, maybe change some things.

I have looked alot at busbar, but that increes price to unrealistic. That’s why I went away from 80A.

https://www.google.se/search?q=busbar+pcb&client=safari&hl=sv-se&prmd=isnv&sxsrf=ALiCzsY1ILvuLML5bOjJEsg-cYFzhVXq9w:1661113124574&source=lnms&tbm=isch&sa=X&ved=2ahUKEwjC7-LN4Nj5AhWQvosKHSPHCCoQ_AUoAXoECAIQAQ&biw=390&bih=664&dpr=3

For one pcb I would need to pay 27 euro. Without copper rod.

U1, U4 as close as possible to the chip’s power pins.

The electrolytic capacitors on the power supplies.
They are used to stabilize the power supply otherwise you would have very large voltage peaks generating a lot of noise.
It also depends on the length of the input power wires and the type of load.
I understand that the load is resistive and not very inductive. And this is good.
It is a good practice to put capacitors on the inlet in order to reduce noise.

On the 3V3 it is certainly needed since it also feeds analog parts.

There would be another trick on the analog A0 network, an RC network but it must be sized well since I believe you have a fast reading cycle for the potentiometers and if you miss the values of the two components, read incorrect values.
You would have a more stable signal for reading potentiometers, without having to make averages in the software.

For Diodes, read previous posts well.
You would have negative tensions if you were wrong to connect the wires and in that case either burn the diodes or the tracks that connect them.
They are not needed.
On the relay card the diode is on the 5V which is assumed to have a small short circuit current.
And this is true if it comes from Arduino Uno.
It’s not good protection though.

Use copper wires as bridges between GND zones with a large section instead of the BusBar.
It won’t be very nice to see but functional.
It is inexpensive.
Or review the design of the power part, I think there is important room for improvement.

To fix the switch footprint you must open the footprint editor to load the impression and for each pad you must add the welding mask both front and back. (F.Mask, B.Mask)

I had to make the video very quickly for file size reasons for uploading to the forum.

In the 3d view you must see the copper pads not covered by the welding mask :

First of all I am very very grateful for your very informative answers.You realy help! :sparkling_heart:

I am so sory but I don’t realy understand and don’t know how I would do that? Should I move the chips?

The electrolytic capacitors on the power supplies.
They are used to stabilize the power supply otherwise you would have very large voltage peaks generating a lot of noise.
It also depends on the length of the input power wires and the type of load.

I am planing to use a PSU like this, or similar:

UHP-350R-5 - Switched-Mode Power Supply, Industrial, 300W, 5V, 60A, MEAN WELL

But I don’t know what is good. I guess low “ripple” high efficiency, many different types of protection is good.

I understand that the load is resistive and not very inductive. And this is good.

It will probably be mostly LED, but the chance of it being mixed is high. As said, you should also be able to use it, as a relay card if you want. I would therefore not like to say that it will mostly be resistive load.

It is a good practice to put capacitors on the inlet in order to reduce noise.

I understand. But isn’t this handled by the PSU? Eg what I linked to?

On the 3V3 it is certainly needed since it also feeds analog parts.
There would be another trick on the analog A0 network, an RC network but it must be sized well since I believe you have a fast reading cycle for the potentiometers and if you miss the values of the two components, read incorrect values.
You would have a more stable signal for reading potentiometers, without having to make averages in the software.

Super good that I get an explanation why.

For Diodes, read previous posts well.
You would have negative tensions if you were wrong to connect the wires and in that case either burn the diodes or the tracks that connect them.
They are not needed.

But what I have learned, if you connect an inductive load, such as a solenoid or contactor, relay, on a relay card like the one I linked to. Then you send an EMF back to the PSU which can even cause the protections to trip. (That’s my experience) To solve this I have previously mounted a diode as close to the coil as possible which I learned is the best. But technically there wouldn’t be much difference if I have a diode in parallel with the supply voltage, right? So it can’t hurt in any way except if you connect the + and minus incorrectly, as you describe.

If there is a better way I am naturally open to it?

On the relay card the diode is on the 5V which is assumed to have a small short circuit current.
And this is true if it comes from Arduino Uno.
It’s not good protection though.

Aren’t the diodes on the relay board flyback diodes to take care of the energy that comes from the relay when you turn them off so that it doesn’t spread/comes back into the PSU?

What protection would you recommend otherwise?

That’s how I thought mine should work anyway.
That is, if I connect a solenoid to the board, I should not need a diode across the coil of the solenoid.

Flyback-diod

Use copper wires as bridges between GND zones with a large section instead of the BusBar.
It won’t be very nice to see but functional.
It is inexpensive.
Or review the design of the power part, I think there is important room for improvement.

If you come up with something that makes it look nicer and that I avoid expensive solutions. Or solder copper wires. I mean with the design of the PCB, I will be very grateful. If I can get close to the 80A I was aiming for from the beginning, that wouldn’t be wrong either.

Is there a program that a home user can use to simulate the current in the circuit board?

To fix the switch footprint you must open the footprint editor to load the impression and for each pad you must add the welding mask both front and back. (F.Mask, B.Mask)

//kicad-info.s3.dualstack.us-west-2.amazonaws.com/original/3X/b/8/b815ac2a45f3ed7d52f8fe89786ec0819a7e4907.mp4

I had to make the video very quickly for file size reasons for uploading to the forum.

In the 3d view you must see the copper pads not covered by the welding mask :

Incredibly helpful video, shouldn’t I be able to update the original footprint, then update the PCB? It’s important to get it right the next time I use the footprint, isn’t it?
[EDIT]
I fixed this. thank you.

@JacobW

That’s what he ment:

You have no ground plane, so connections to GND as short and as solid as possible.

  1. capacitors on U1, U4
  2. Electrolytic capacitors on power supplies. You have enough space to assemble even more capacity.
  3. Suppressants on the feeds may also not be mounted, in this case of dubious efficacy, it depends on the load. They don’t hurt.
  4. Space is available for welding copper bridges or as I have already suggested you review the design of the power part. In order not to have signal traces that do not allow you to make a good GND plan, you can use copper wire jumpers to be welded.
  5. Move the Diode D37 and put it near the entrance to the power supply.

I added the components to the scheme and to the PCB but the tracks must be made and you see where to place them but I would be nearby where I placed them.

Dimmer project4_Mod.zip (1.4 MB)

I added the components to your project.

For the 330uF capacitor on the 3V3 I assumed that the power input connector was the D-Sub 15pins

If you can move the tracks of the 5Vs that feed the relays on the B-Cu the ground plane already improves and you should also move the resistances placed on the mosfet gates. R25 for example, which only serve to have an i mosfet off at power on.

You have to move as many tracks as possible on one side of the PCB in order to have more space for GND on the other side.

If you work in that area you can create a correct copper GND area for your project.

GND plan is there. He also positioned vias in positions that are not needed.

[EDIT]


This is perhaps the least suitable example since it connects two areas of GND .
There are many throughout the PCB .

Be aware whenever google translate says ‘plan’ the correct word is ‘plane’.