In each electronic device in one form or another there is a power supply unit (PSU). Of course, because no one will work for free. Before connecting to the circuit, it would be nice to see how the PSU works at different loads.
Personally, I am not inspired by the search for a set of different-sized resistances with subsequent testing of the power supply with each of them; it is much more convenient to make a “load” that can be smoothly adjusted.
What did you want
So what did I want to get as a result?
- Current consumption 0-5A (enough almost everywhere)
- Power consumption – up to 100W (enough for almost any power supply)
- Maximum voltage – 200V
- Current indication
- Mode when the load is periodically turned on and off ( for testing and setting feedback )
The body (like almost all the other parts), I pulled out of the old stock. Yes, I bought only an indicator and M2.5 screws for it, the rest I already had.
The case from some old switch LPT ports of ancient times, the giblets were pulled out and put to the trash can.
Cutting out the holes for the indicator and for the fan was absolutely epic, because the body is made of mercilessly thick steel.
Stalyuk I cut Dremel, and here’s what I can say:
- Self-made cutting discs for Dremel from grinders are absolutely steering.
- It is necessary to cut thick metal with a disk standing at 45 degrees to the metal plane, then the cut is smooth.
I cut such a huge hole, and not just drilled a dozen small holes because the power transistor did not have enough body height.
The photo shows how it happened. Taking into account the fact that this is a handwork, it turned out pretty well.
Active load electronics are as simple as boots. You can see the scheme here:
There is nothing fundamentally new there for you.
- What surprised me is that there are very specific datasheets for computer fans. In the diagram, the FanPower leg turns on the fan. At the same time it starts spinning at minimum speed. Theoretically, it is possible to start PWM on the FanSpeed foot and control the fan smoothly. But I just turn it on or off.Three stages will turn out: Off, low speed, high speed.
- Current adjustment is assembled as a divider on resistors R5, R18 and resistors R20 and R21 (in gray square.)
- The current switch is quite exotic (it was stuck when the board was ready) – when the DisableCurrent leg is in the input mode on the microcontroller, the U6 U op-amp normally controls the current of the power transistor. When the controller wants to turn off the current, it puts this foot in a high state. OU ofigevat from, as it seems to him, a huge current through the power transistor, and quickly closes it.
- As a protective (reversal) diode, I found the BYV32E-200. Quite an interesting diode – physically it is a normal pn diode, but its fall is more like a Schottky diode.
Software is my attempt to lose with C ++ on microcontrollers. On the one hand, it turned out to be interesting, on the other hand, there are a lot of places in the pros where they just make me furious.Firmware for AVR under IAR. It turned out, as always when trying to play, crooked.
In any case, the advantages for microcontrollers are the topic of a separate article.
Download all the documentation here (there is also a hex):
This work weighs quite well, and causes a sensation of a well-made device. One hundred watts dissipates, though with decent heating (And no one said it would be easy).
Some of the parameters did not turn out the way they wanted, but they’re too lazy to redo them, moreover, they are not too critical for me. For example, the turn-on time is 80µS. This is not exactly a delta pulse, and the feedback cannot show the transition process in all its glory. On the other hand, frankly I get on in OS it will help to reveal.
Vidushnik with a demonstration
Yes, yes, I myself know that the quality is terrible and it is time to buy a new camera. I am now in her active selection. I don’t know what to do with my congenital inhibition, but I hope I’ll fix it))
Protel pcb project’s source code and have the schema files, IAR.