DIY Adjustable Constant Load (Current & Power)

  Рет қаралды 384,355

GreatScott!

GreatScott!

Күн бұрын

Пікірлер: 509
@JonPrevost
@JonPrevost Жыл бұрын
This is an old video and I'm just realizing how happy it makes me to see somebody assemblying circuitry the way I always wanted to... in free-air. Now that I've been in the research/educational industry, it makes me very happy to know that this haphazard approach isn't so rare. I'm constantly opening old equipment to fix, or reverse engineer them and finding this type of assembly. Love it! Wish I wasn't so afraid when I was younger of making a mistake :)
@wondertwins2222
@wondertwins2222 6 жыл бұрын
I always get excited for a GreatScott notification!
@greatscottlab
@greatscottlab 6 жыл бұрын
Glad to hear that :-)
@rahulskumar3062
@rahulskumar3062 6 жыл бұрын
Me too
@RomanoPRODUCTION
@RomanoPRODUCTION 6 жыл бұрын
Me I am getting sweat (not wet because language) IRL
@gorillaau
@gorillaau 6 жыл бұрын
A GreatScott notification... or a Great Scott notification. Either one works!
@dunhilljanvilardo831
@dunhilljanvilardo831 6 жыл бұрын
@@greatscottlab can you make a 12Vdc to 220Vac inverter please?
@darthvader8433
@darthvader8433 6 жыл бұрын
Good opportunity to get your sponsor involved - do a part B where you put the design into their online PCB software and order a PCB. Then build and show off how much tidier and easier the PCB option is.
@WarthogARJ
@WarthogARJ 3 жыл бұрын
Yeah. I thought same, but it would be premature. This is really only a very rough prototype. The theoretical power it MIGHT handle is never going to be seen because of thermal limitiations. He mentions 3amps at 6 volts is what it WILL do. So that's 3% of the theoretical potential. See my reply on its own.
@theschnilser7962
@theschnilser7962 6 жыл бұрын
Project idea: since you have already attempted to build a simple radio receiver, how about some kind of radio transmitter? The simple low power ones are pretty easy to build... This could be a great opportunity to show how AM and FM work in detail. Greetings from Gotha, Thuringia, Germany.
@sebadg5702
@sebadg5702 6 жыл бұрын
yeees, or maybe an DIY radio transmitter for old cars (with aux input)
@kevinbowman7572
@kevinbowman7572 6 жыл бұрын
I like the old school way that you pitch a product in your videos - it makes a connection to the things you try to teach, thanks.
@Maddhung1
@Maddhung1 6 жыл бұрын
I really like your in depth insight on your tutorials, without dragging it on....straight up and to the point with excellent video editing, parts list, schematic, and links...truly professional work, and vast knowledge of electronics. Keep up the great work, and thank you for the videos, have enjoyed every one and will be building this tonight as I have all the components, plus always have nano's on hand, these days more and more hobbyists are incorporating them straight in the the schematic as above...awesome
@JamieBainbridge
@JamieBainbridge 6 жыл бұрын
OMG I ACTUALLY UNDERSTAND THIS ONE! I've cooked plenty of 3D printer control boards by putting a big load on the MOSFET and overheating RAMPS Q3. Guess it's time to add Electronics Engineer to my resume. Thanks Scott!
@saurabhjambotkar9077
@saurabhjambotkar9077 6 жыл бұрын
Your videos never fail to pique curiosity in creating something new. And amazing thing is the project you choose are perfect in scope. Keep inspiring and leading the DIY world!
@xmetguy1
@xmetguy1 6 жыл бұрын
After watching this man, I realize my knowledge of electronics is that of a tiny child. Always impressed by him.
@Lazar-w9u
@Lazar-w9u 4 жыл бұрын
Hey! Don’t be ashamed of yourself, you will eventually be better than him if you try hard enough!
@kevdagoat1
@kevdagoat1 6 жыл бұрын
This is great! I will build one. One suggestion: Add mAH discharging so I can discharge my batteries down to a specific capacity and add a discharge voltage cutoff mode: The Arduino will discharge at a set current until a specified voltage is reached
@johnwashell4351
@johnwashell4351 6 жыл бұрын
The STM32F103 would be nice, with its 12 bit ADC, and higher resolution timers. But a great tool for the workbench. Nice job!
@movax20h
@movax20h 6 жыл бұрын
ADC in STM32F103 are also much faster and have DMA capability. You can get 1MS/s. and uC itself is faster, so you can get tighter regulation. But I think max voltage is 3.6V. Unfortunately even STM32F103 doesn't have DACs. Only timers, but they are 16-bit ones, which is nice.
@Disparus
@Disparus 5 жыл бұрын
@@movax20h no DAC on STM32F103RB ? Oo
@BeyondDuctTapeFixItRight
@BeyondDuctTapeFixItRight 5 жыл бұрын
Your video is fantastic! I'm impressed with your clarity, cadence and infectiously passionate delivery. I'm honored to be one of your million plus subscribers.
@spudhead169
@spudhead169 5 жыл бұрын
You can use a differential amplifier to not only drop the hall sensor output voltage at 0A to 0V but also amplify the output at max current to 5V giving you as much resolution as possible for the current sensing.
@kenjihirai5141
@kenjihirai5141 3 жыл бұрын
I just recreated your circuit today! it was Awesome! This is very useful diy constant current load, I like it, and I'm happy to say that this is my first time using Arduino, Awesome!
@obnovec
@obnovec 6 жыл бұрын
The "see you next time" closing sentence is getting better and better each video...
@priyabratasadhukhan6435
@priyabratasadhukhan6435 5 жыл бұрын
You can use use STM32 in place of atmega328 for better ADC and PWM resolution. Or INA219 with a lower value shunt resistance can offer you higher current range and stable power measurement.
@MrDaniyalAh
@MrDaniyalAh 6 жыл бұрын
This could have been a Diy vs Buy episode. You could compare it to the commercial available ones and tell which option is better
@surajdey5993
@surajdey5993 6 жыл бұрын
Happiness is suddenly watching the notification of new video from great scott!!
@bauerb738
@bauerb738 6 жыл бұрын
Hi, I think you have missed a few components in your order list: - case and frontpanel - banana plugs female / terminal - rotary encoder button - low pass filter components - cooling heat sink and fan? Can you add links in your video description? greetings from germany and thanks for your videos! This is exact the project i could use right now.
@greatscottlab
@greatscottlab 6 жыл бұрын
- case and frontpanel : I got it from a local store. So there is not link for it. - banana plugs female / terminal: I will add those to the list - rotary encoder button: the button is integrated in the rotary encoder - low pass filter components: just a resistor and capacitor. Look for the values in the schematic. I did not feel like including such a minor component in the list. - cooling heat sink and fan?: I salvaged my heatsink. So there is no link.
@zygfrydmierzwinski6041
@zygfrydmierzwinski6041 6 жыл бұрын
@GreatScott! How do you power it up? Do you use old ATX or something? Don't you think, that it* would be simpler solution for people who want to make own adjustable power supply. it*: www.aliexpress.com/item/LM2596-DC-DC-Step-down-Adjustable-CC-CV-Power-Supply-Module-Converter-LED-driver/32639718756.html?spm=a2g0s.9042311.0.0.27424c4dUcY3V6
@telefon72
@telefon72 6 жыл бұрын
But it's NOT an adjustable powersupply...
@zygfrydmierzwinski6041
@zygfrydmierzwinski6041 6 жыл бұрын
#facepalm Now you know how it looks when you like watching videos about electronics, but are still learning English :D
@telefon72
@telefon72 6 жыл бұрын
Haha, no worries mate, I have been there.
@budandbean1
@budandbean1 6 жыл бұрын
Really, Really like this build, thank you! Love the Arduino display programming, been trying to figure out how to do this. I might try to build it now. :-) Great Scott, I’d also like to put in a vote for a nice Class A Amplifier, I really think you are the man to take on the task. Stay super creative my friend, you have to take up all the slack I leave...
@albertogregory9678
@albertogregory9678 4 жыл бұрын
Hey, did you ever build this project? I'm working on it now and having some trouble.
@xWonderxBreadx
@xWonderxBreadx 9 ай бұрын
I've been meaning to build one of these. I'm currently planning on building this to stress test 3∅ 30A connectors. Our Hubbell supplier in the US has been pushing spring-loaded clamp connectors instead of the standard screw-clamps. If they didn't come from Hubbell, I would've already said "No" to them but I want to be sure they won't fail under full load
@helenbulmer5426
@helenbulmer5426 3 жыл бұрын
Great scott is amazing. The king of electronic projects
@johnb003
@johnb003 5 жыл бұрын
Instead of "don't touch it" for the undervoltage pot, I learned how to tune it so that it's least likely to cause problems: I accidentally fried my LTC3780, and I did a lot of probing and I noticed that the under voltage regulation caused some problems when set to 0. The fried LTC3780 could only tune from 0.8v to 2.5v (fault light on above that) and had no current limiting. So here's what I learned: If you set the under-voltage pot to as low as it goes, then the full supply voltage will pass to the LM358 to an opamp input while the supply voltage is at a regulated 5v. Even though it's supposed to only produce 5v out, it started to fail for me and will go up to near the supply voltage which feeds the run pin of the LTC3780. The LM358 still worked if the trimmer was set closer to the supply voltage though, so clearly it puts more stress on the LM358 to pass much higher voltages to the inputs than the 5v regulated voltage. If the undervoltage pot is tuned closer to the supply voltage this creates a voltage divider that will make the input voltage to the LM358 closer to the regulated voltage. Any voltage above about 6v to the LTC3780 on the run pin will destroy it. So, my advice is turn the undervoltage regulator all the way up, so that you get the fault light and the output goes to 0, and then turn it down until the fault light turns off, and overshoot a little (but don't set it to the minimum). As long as you're using a constant supply voltage it'll continue to run, and this will reduce risk of frying the LM358 which will fry the LTC3780 (The IC is same cost as the whole board really, so you don't want to have to replace it).
@venugopalganesh2974
@venugopalganesh2974 4 жыл бұрын
Thanks, buddy!
@isprithul
@isprithul 6 жыл бұрын
It would have been great if you used an op amp to drive the MOSFET. But, whatever, Great job! Please use op amp in next version, that should get rid of the oscillation and would make it more precise.
@tyvaughnholness1985
@tyvaughnholness1985 6 жыл бұрын
I would actually love a tour of your work space, seems like its completely decked out!
@voltlog
@voltlog 6 жыл бұрын
One possible issue with this type of load is the control loop which is run by the microcontroller. That would make it quite slow which could possible create oscillation under the right conditions or even worse it could react very slow to a rapid change in current.
@spanhuis8731
@spanhuis8731 6 жыл бұрын
Hi Scott, the current ADC should be suitable when increasing the sensor voltage range. the range in your setup is around 300mV. by amplifying (with a opamp) this signal and correcting the 2.5V, you can transform your 300mV sensor signal into 0 till 5V
@Plarker99
@Plarker99 6 жыл бұрын
What's the purpose of the MOSFET driver (instead of using the Arduino directly with RC filter) since it's only being supplied 5V?
@mohamedlaminedrame3204
@mohamedlaminedrame3204 3 жыл бұрын
I watch you from Sénégal in Africa
@dansmith6909
@dansmith6909 3 жыл бұрын
love the way you make circuit boards. Dead bug wiring taken to the point of art
@muh1h1
@muh1h1 6 жыл бұрын
Halogen Lightbulbs make an Awesome, Cheap power resistor for such a project!
@LorenzoBravi
@LorenzoBravi 6 жыл бұрын
Good video! Constant Load and Constant current is very useful!. I remember the mosfet work like resistor in linear (ohmic) region and it's use in switching mode in saturation region for increase efficency.
@alexanderdaum8053
@alexanderdaum8053 6 жыл бұрын
If you want to use a MOSFET as a switch, you use it in the omic region.That is the reason, why the RDS-on is stated in the datasheet as static on resistance. This is because, when the MOSFET switch is in the 'ON' state, it has a almost constant resistance, as opposed to a bipolar transistor. The confusion arises, because in a bipolar transistor the saturation region is where the Vbe is so high, that an increase in Vbe does not decrease Vce (Vce,sat is reached). On a MOSFET on the other hand, the saturation region is the region, where an increase in Vds does not increase Ids, that means, even though you apply more voltage across the MOSFET, the current does not increase. But if you increase Vgs in the saturation region, the current does increase. The terminology is really confusing, because in bipolar transistors you want to switch in the saturation region, but in MOSFETs, the saturation region is completely different.
@alexanderdaum8053
@alexanderdaum8053 6 жыл бұрын
It's the other way around, the typical mosfet Ids over Vds graphs, Vds is on the x axis and Ids on the y axis. So in the omic region an increase in Vds creates a proportional increase in Ids, but in the saturation region (line is almost flat) an increase in Vds does not increase Ids (or only very slightly)
@Li0rE
@Li0rE 3 жыл бұрын
Yes, i think he has it confused in this tutorial. I am making a similar device using IRFZ44N and by using the low pass filter, the mosfets keep getting cooked since they are in linear mode. Using a PWM signal at the mosfet gate is less stable, but it also allows the mosfet to function without breaking and shorting out after a few seconds/minutes with any real power dissipation.
@66mickeyzg
@66mickeyzg 5 жыл бұрын
Thanks for this Project. With it I learned how to build Menu for LCD screen. I didn't have a 16x2 LCD, but I did have a few Nokia 5110 LCDs, so I decided to adjust the code for that LCD. And guess what... It works :)
@frankbose544
@frankbose544 4 жыл бұрын
Thanks for the code on instructables I'm working on a lab power supply and I'm reverse engineering your code to build my menu without your code I'd be so lost thank you
@DanielsGameVault
@DanielsGameVault 6 жыл бұрын
Those ACS sensors seem like a good alternative to a current sense resistor...got myself some and I plan to use them on some motors to stop them when the current gets too high.
@mikehell2854
@mikehell2854 4 жыл бұрын
Hello, Scott is it possible to get a variable DC Voltage on the Gate of the MOSFET without the TC4420? A simple low pass filter on the PWM PIN should be good enough or not? What do you mean? Thank you for the short and informative Video ;)
@johnrubensaragi4125
@johnrubensaragi4125 3 жыл бұрын
9:07 You can do small improvement by not subtracting OCR1A when curcurrent = current to prevent oscillations.
@sethlavinder
@sethlavinder 2 жыл бұрын
In 2022 it seems the TC4220 is both obsolete and impossible to locate, is their a suitable replacement part that would be a drop in fit? I am not an engineer just a tinker hobbyist so could use some advice? Thanks
@yosyp5905
@yosyp5905 6 жыл бұрын
I don't get anything from your videos. But I like watching them.
@shyamrakshit2232
@shyamrakshit2232 3 жыл бұрын
Me too
@RomanoPRODUCTION
@RomanoPRODUCTION 6 жыл бұрын
I am sweating with the heat of the constant load. Thanks to SweatScott for the good job and nice video 💓 💝 💟 💖 👏 👏 👏 🎉 🎉 🎉
@djredrover
@djredrover 3 жыл бұрын
hey bro. Love your videos. Just a tip, you should use a DeEsser on before compressing your vocal recording. Don't try to get rid of the hissing with EQ. Cheers.
@FlatFace986
@FlatFace986 6 жыл бұрын
Solder the wires directly on the current sensor. Used those before, the copper traces aren't good enough and they heat up at around 10 amps plus that ic is very dependant on temperature.
@greatscottlab
@greatscottlab 6 жыл бұрын
Good to know
@ferihun8858
@ferihun8858 6 жыл бұрын
You could have used an STM32 Bluepill for the project. Since you reviewed it, I think you still have one. That one has a 12 bit ADC, a much more precise PWM and it's cheaper too.
@meanxmeanx1763
@meanxmeanx1763 6 жыл бұрын
STM32 Adc is very likely to be noisy if you dont take extra care
@narayanbandodker5482
@narayanbandodker5482 6 жыл бұрын
Also note that you cant connect the supply backwards (reverse polarity) as the voltage divider will send negative voltage to the arduino. Nevertheless, great build!
@prabhav2469
@prabhav2469 4 жыл бұрын
Is it necessary to add TC4420 mosfet driver ic?
@platinumystic
@platinumystic 4 жыл бұрын
Hi, I'm nearly finished building this project and the output voltage (measured with a multimeter) of my setup doesn't change when I set an output via the interface. I'm using Scott's code and the same components that were recommended. The only difference is that I'm using an Arduino pro mini. I'm using a 20V 6A power supply to supply any load and a buck converter to supply power to the equipment. I lost my 5 volt regulators and I had a spare buck converter. Regardless of the value I change the either the current or load values to, I always get a 2.4V output. The voltage drops to 0 when I 'stop' the output but it seems as though the duty cycle of the PWM signal doesn't change. I tied pin 9 directly the gate of the mosfet and the my output voltage was 2.1V and didn't change when I varied any values in settings. My mosfet is fine, I tried 2 of them, and bot were adjustable with a 50k pot. Can anyone help me here?
@danielnavarrogalizi6885
@danielnavarrogalizi6885 4 жыл бұрын
Hello. is it possible without the mosfet driver? could you suggest a replacement or another circuit? tks!! :-)
@theredstormer8078
@theredstormer8078 6 жыл бұрын
I literally just looked for videos like this yesterday.
@Jimmyng1968
@Jimmyng1968 6 жыл бұрын
I love your video, every week I am waiting for your video online.
@greatscottlab
@greatscottlab 6 жыл бұрын
Thank you
@alexandergalustov1986
@alexandergalustov1986 3 жыл бұрын
I wonder how Great Scott fights noisy rotary encoder? Is there any special trick to avoid noise while rotating a knob? Debouncing?
@peetre
@peetre 4 жыл бұрын
Nice penmanship!
@jensschroder8214
@jensschroder8214 Жыл бұрын
3:05 When the transistor is saturated it has the lowest resistance. So little loss on the transistor If the transistor is in the non-saturated area, it works like a resistor. Ohmic range.
@NNNILabs
@NNNILabs 6 жыл бұрын
With this level of abstraction, I wonder if future electronics hobbyists will know anything about how things really work.
@techtechnicalgaming
@techtechnicalgaming 11 ай бұрын
Hey, it's me Arpit Kumar remember
@NNNILabs
@NNNILabs 11 ай бұрын
@@techtechnicalgaming hello arpit kumar how are you doing
@rafnael8807
@rafnael8807 10 ай бұрын
I don't understand. What do you mean?
@techtechnicalgaming
@techtechnicalgaming 10 ай бұрын
​@@NNNILabsgot jailed in stypro server but I am in Eletroboom discord
@dakata2416
@dakata2416 9 ай бұрын
This is literally what programming has become.
@PandorasBox2
@PandorasBox2 2 жыл бұрын
great one but just 1 question for some reason i need 30A not 3A what should i change to be able achieve this?
@gotbread2
@gotbread2 6 жыл бұрын
Im a bit concerned about your way of regulating the output. The slow increase and decrease can make the whole system unstable and it might go into oscillations. The usual solution is to use a PI-controller instead.
@STONEDay
@STONEDay 6 жыл бұрын
Your videos are so informative and project inspiring. If only I were not so high right now I just might try this!
@Darieee
@Darieee 6 жыл бұрын
100% building myself one of these !!!
@qwaqwa1960
@qwaqwa1960 6 жыл бұрын
Keep in mind this and most MOSFETs are not specified for high-power linear operation, and will thermally runaway and die when pushed too hard (e.g., SOA shows no longer than 10 ms).
@fredfredburger2454
@fredfredburger2454 6 жыл бұрын
There is some confusion with "saturation" positioning. It is effect, witch can be seen on "Gate-to-source" graph, not "Drain-to-source", and it can be archived by increasing gate voltage above some "threshold".
@RexxSchneider
@RexxSchneider 3 жыл бұрын
An updated version of this could make use of a more modern mcu. I would suggest looking at the Seeeduino XIAO which has an on-board DAC which removes the need for filtering to drive the MOSFET and has 12-bit resolution on its ADCs. All of the voltages are only 3.3V maximum so you'd need a logic-level MOSFET but those are readily available.
@experimente9912
@experimente9912 6 жыл бұрын
3:00 I think you mixed up the linear region with the saturation region of the MOSFET. The MOSFET has a lot of losses in the linear region and that is why you want to switch as fast as possible without transient spikes in power electronics. When the MOSFET is fully on (saturation region), your losses decrease by a lot and only the conduction losses remain. I have succesfully built a large DRSSTC using IGBT-Bricks and it is the same with those.
@zanpekosak2383
@zanpekosak2383 6 жыл бұрын
Adding a thermistor and a small fan would help you get bigger voltages and currents...or a CPU cooler. Those are good up to 150W constant or more.
@electron-1979
@electron-1979 6 жыл бұрын
I've been told to use masking tape to mark my holes/cut-outs. It avoids our ugly marks on the finished product ;)
@rakn3501
@rakn3501 6 жыл бұрын
Very inspirational stuff. Why do you use mosfet drivers instead an op-amp (like lm358) in a negative feedback configuration? What are the drawbacks of the latter? Thanks for answer, I am waiting for next week video.
@oniruddhoalam2039
@oniruddhoalam2039 4 жыл бұрын
Probably the MOSFET driver is easier and more convenient.
@GRBtutorials
@GRBtutorials 6 жыл бұрын
You should add a constant resistance mode as well, measurements (Ah, Wh...) and programming capabilities. That are just simple firmware changes. I could do it and upload the code to Github. And there's another problem: the tolerance of the Hall effect current sensor is ± 1.5 %, which is pretty bad. You should use a shunt resistor with a lower tolerance. Plus, you should amplify the signal from the current sensor so that it uses the full dynamic range of the ADC and maybe oversample it. That way you'll get rid of such bad oscillations.
@mikemesec
@mikemesec 5 жыл бұрын
I built one but I'm horrible at writing code. If you wrote an updated firmware I'd love to try it out.
@WarrenGarabrandt
@WarrenGarabrandt 6 жыл бұрын
I love the idea of building one of these so I can use it for logging discharge curves and testing my batteries. I would need much better precision though, so here are some thoughts on this. The interface between the digital electronics and the analog electronics is the biggest limitation in precision here. Both the reading of current and voltage, and the control of the power MOSFET are noisy because of the limited resolution of the ADC and PWM. I was thinking of using a SPI controlled 16-bit variable potentiometer and an opamp to assist with driving the MOSFET. By using the feedback of the current sensor and the variable potentiometer connected to an opamp, would it not be possible to very precisely control the driving of the MOSFET? When reading the current and voltage values, of course using a more precise DAC would be simplest as you have mentioned. But if I wanted to experiment with getting more precision with the 10 bit ADC we have already have, How does this scheme sound: Read the voltage from the voltage divider with the ADC (10 bit). Output the read value via SPI to a variable potentiometer . Using an opamp, we can connect the digital pot and the voltage we want to measure, and the opamp will amplify the difference in voltage so we can read that error difference with another ADC on the Arduino. The second ADC read would be a measure of how far off our originally read value is from the actual value, which we could calibrate against. We have more precision in the digital potentiometer than our ADC, so we would just nudge up or down the output value of the digital pot until the error feedback on the second ADC goes as close to zero as possible. Then we know based on what value we write to the digital pot what the actual voltage must be. Let's walk through an example; it might make this more clear. Say we want to measure a current coming from the current sensor. It is outputting 2.954265v, which obviously our ADC can't even come close to in precision. Our 10 bit ADC can only read in steps of 0.00488 mv, so the value is going to be 605 or 606, giving us a reading somewhere around 2.951 to 2.956 volts. We spilt the difference and output 2.9535v to the digital pot. If the digital pot is 16 bits, that would be a value of 38711d, giving an output value of somewhere between 2.9534v to 2.9535v. The opamp magnifies the error difference between our actual 2.954265v and our pots output by say, 500x the voltage difference. We set it up so that the opamp output range is 0 to 5 volts, and a center voltage of 2.5v means no difference between the digital pot and the actual voltage from the current sensor, and it amplifies any difference in the two inputs by 500x the voltage difference. In this example, our voltage difference woudl be around 0.000765v, so let's say the opamp is actually putting out 2.1175v now, which our second ADC reads as 433 or 434, giving us a reading of 2.11v to 2.12v. We split the difference to 2.115. Now we have to adjust the digital pot output by some value to see how much closer we get. We calculate it like this. Subtract 2.5 from the new reading to find out how far off we are from center (-0.385v), divide by 500 (to scale it down by the amplified value of the opamp), which gives us -0.00077v. We now know we are reading higher on the ADC than we should be, so we adjust out output up. (or the other way around if we get a positive value instead of negative, of course). We subtract this calculated value from the value we last wrote the digital pot, giving us 2.95427v, which we write to the digital pot as 38721. Our new output is 2.954222v to 2.954299v. Do the whole feedback read again, and we get a much smaller error reading from the opamp. Every time we nudge up or down slightly in this way, we in theory get closer to the real world value. Since we are reading with a 10 bit DAC, 9 bits of which we consider significant figures we magnify the error by 500 (512 would sound better, but I'm approximating), then reading again, we can probably get closer to 14 significant bits of precision. Of course, every time our most significant bits (first ADC read) change by more than 3 or so up or down, we have to start over in our calculations, but it should only take 2 or 3 cycles to gain enough precision again to be confident. The ADC takes like 1/10,000th of a second to read a value. So, I figure we can read at least 400-500 times a second. with calculations and re-reads, every 5-10 ms we should be able to get a very accurate read. We use the 10 bit course read for fast responses, and the higher precision reads for accurate adjusting of our MOSFET. Before, we were limited to 0.00448mv resolution in the ADC. We might be able to achieve an effective resolution of 0.0003v this way (that's about 14 bits). That's enough for millivolt measurements anyway. Most times, such short durations of time are not going to result in very much change in readings, and therefore we will spend most of our time in precision calculation, giving us very good accuracy. How plausible does this sound? Worth putting the time into building to test out, or a waste of time and never going to work out correctly? I know this is bonkers over the top complicated compared to just getting a better ADC and calling it good, but I like the idea of something like this if it can be done.
@zanpekosak2383
@zanpekosak2383 6 жыл бұрын
You lost me at the intro...so many leds and so many solder! Hahaha awsome vid. Love it.
@stylesuxx
@stylesuxx 5 жыл бұрын
Why was an IRFZ44N used instead of an IRFL44N? If using the IRFL44N the mosfet driver would not be needed - or am I missing something?
@-robo-
@-robo- 3 жыл бұрын
How would you control all the parameters via software? USB direct connection or wifi, or both. My goal is a spark generator that can be controlled via software and pc. Frequency control is an additional factor.
@reubenkriegel7639
@reubenkriegel7639 2 жыл бұрын
Instead of the MOSFET driver, can I use an Arduino with a DAC?
@SIKHGT650
@SIKHGT650 6 жыл бұрын
Great Scott ...Plz continue ESC project
@jrioublanc
@jrioublanc 6 жыл бұрын
Perfect timing for this video, exactly what I need. Very good explanation, thanks.
@Ceelvain
@Ceelvain 8 ай бұрын
I'm not sure what's the purpose of the TC4420. It's supposed to be a gate driver, but it looks like it's used as a buffer for an RC filter.
@doktordinkel8864
@doktordinkel8864 6 жыл бұрын
*gets sponsored by JLCBCB* *creates own pcb* Great vid btw!
@greatscottlab
@greatscottlab 6 жыл бұрын
I would love to use their PCBs more often. But when you got 1 week to create a project from scratch then you can not wait a week for PCBs.
@ecurepair
@ecurepair Жыл бұрын
Great video, thank you.
@electronic7979
@electronic7979 6 жыл бұрын
Excellent project
@moclan582
@moclan582 5 жыл бұрын
You could add an automatic Lithium Ion/lithium polymer Battery Test function, by measuring the Current/Time while drawing a constant current like 500mA.
@karankumarrao3459
@karankumarrao3459 6 жыл бұрын
hey Scott currently i am working on a 12v dc to 220 ac inverter. now since i am just a electonic enthusiast and not an engineer i am afraid i will burn my load or myself. Can you make a detailed video on inverter its principle, components and whether it is practical to make it yourself or just buy a new one. please accept this challenge
@DrewLSsix
@DrewLSsix 6 жыл бұрын
I have been wanting to get familiar with electronics like this strictly because I think it would be handy for playing with my car lol. Have a couple ideas but no skill in making them happen!
@__MINT_
@__MINT_ 3 жыл бұрын
Wouldn't it be easier to use just an opamp?
@abyssunderground
@abyssunderground 6 жыл бұрын
For the current reading on my PWM charge controller using the same current sensor I used a loop which runs for a full second counting the current values, then dividing by the number of loops it did to get an average. I found this gave me a much more stable value. However, if you're using it to control current that wouldn't work so you'd need both the instantaneous value and an averaged one. Instantaneous used in your control loop but the averaged value shown on the screen.
@RomanoPRODUCTION
@RomanoPRODUCTION 6 жыл бұрын
Scott, you may have skipped the testing of the constant load or are you gonna use it in the next video ? 💘
@adriansmith31
@adriansmith31 6 жыл бұрын
Very helpful, I made a test constant current load using a couple of op amps and some mosfets salvaged from an old UPS which worked for testing 12V SLA batteries but the FETS blew when testing (lithium) 24V batteries. I think the FET's were unsuitable and / or I had over engineered it somewhat making a mistake in the circuit design somewhere. You design is much simpler so I'll give it a try.
@alexanderdaum8053
@alexanderdaum8053 6 жыл бұрын
The FETs probably were only designed for a maximum Vds of 20V or 16V, that are typical values. Would work fine at 12V, but they let out the magic smoke at too high voltages. Always google for a Datasheet before using any mosfet with higher voltage than the original device!
@adriansmith31
@adriansmith31 6 жыл бұрын
Yeah I think that was the problem. I was gonna re-visit that CC load tester later but may look at integrating Great Scott's solution into a battery tester. Perhaps change the LCD for a 4 line and add display for time elapsed and calculated Ah rating. Also feature to disconnect the battery when it reaches it's fully discharged state.
@prabhav2469
@prabhav2469 5 жыл бұрын
Great Scott! The mosfet driver you use has a current limit of only 6A. Is it works with 49A? How. Plz tell me
@ExplosionCrafter
@ExplosionCrafter 5 жыл бұрын
The driver is only used to >drive< the mosfet. Of course the mosfet can handle a lot more current than it's driver. In case of a static operation (no change of Vgs) there is no power needed to drive the mosfet, so 0 A, while the mosfet draws 10 A for instance.
@prabhav2469
@prabhav2469 5 жыл бұрын
@@ExplosionCrafter thanks bro
@mutaroex
@mutaroex 6 жыл бұрын
Always came up with the best explanation Nice...............
@hobbyelectronics9385
@hobbyelectronics9385 4 жыл бұрын
Hello Big Scott. This is a wonderful project that I want to assembly. However it has some particularities as described in the audio of the video. I noticed that there is English subtitles .My question is if you have a manual of this project, or if you have the text spoken in the video. I need to translate to Portuguese for the correct understanding of the operation. Thank you for your attention
@aduedc
@aduedc Жыл бұрын
Nice project. Another important factor of the load is its impedance. For example, when you draw a 2 A current from 2V source with Saturated FET or BJT, you differential impedance is almost ro where as when you use a one ohm resistor to do this your differential impedance is 1 Ohm. Now, for example, if you are trying to measure the noise of the supply or a DC or AC generator, this makes huge difference if you have your differential output impedance is 1 ohm or ro. So how can you get low differential output impedance? I can think of two ways. 1st: you have several say 1K Ohm parallel resistors which can be switched in and out of circuit by small MOSFETs in series with each resistor. ( ie. If you put 1000 1KOhm resistors in parallel you get 1 Ohm , and even if you use 1/4 watt resistors you can dissipate 250W without heat sink). Here to control the gate of the MOSFETs you need a Binary to Thermometer code converter. Then you can generate the binary code with something like Arduino. 2nd: You can cascode several MOSFET transistors, so each MOSFET stays in saturated region.
@sumit_kashyap..
@sumit_kashyap.. 6 жыл бұрын
I think IGBT are better suited for this task since they consist transistors for driving output.. and they are inefficient and they can handle more power then MOSFET... Correct me if I am wrong .. :-)
@experimente9912
@experimente9912 6 жыл бұрын
The problem with IGBTs is that they have almost linear losses across the CE-Path. A MOSFET on the other hand has more losses because the the losses square with the current which is wanted in such an application. So i think that a MOSFET is better suited than an IGBT for this task.
@emreaytac25
@emreaytac25 3 жыл бұрын
Thank you very much for this device. I need your help. When I press the start button, the load (which is my bench power supply, voltage set to 4v, current limited to 1 amp), output load shows short circuit. If I press the stop button, short circuit gone. Also I see negative current on lcd when I press start button. I cannot find the problem. Please help me! I stuck on this and can't move on.
@ChriseanAdolfoElechrisean
@ChriseanAdolfoElechrisean 6 жыл бұрын
It's greatscott day!!! This is awesome!
@movax20h
@movax20h 6 жыл бұрын
You could have used a shunt resistor (or transformer based on for over 50A), analog multiplier (could be one quadrant multiplier even), Norton opamp, normal opam, and single high res DAC, with multiplier in the feedback loop, to create constant power load without micro control. That would be beneficial for very quickly changes voltages, i.e. these generated by some SMPSs. But micro is good for testing batteries, where reaction speed is not that super important. Also micro allows you do simulate inefficiencies of load (i.e. ~constant power, but depending on input voltage, the import power could vary), just like most SMPSs are not really constant power, as they vary (by about 10%) their input power (for the same output power!), depending on a voltage. What you could do in your current setup, which is relatively simple, and requires just code update, is pulsed loads. I.e. every second a 1W or 100mA pulse for 10ms. Or something like this. Useful for various applications.
@Pahariviners
@Pahariviners 4 жыл бұрын
We have required 1000 to 1500 watt for energy meters with minimum heating effect and with minimum price please suggest
@y2ksw1
@y2ksw1 6 жыл бұрын
In order to make programs fast, you have to use as many constants as possible, and make computations only when needed, once. For example, you used correctly the ++ operator, but did not use --. You had also going a lot of 1
@alexanderdaum8053
@alexanderdaum8053 6 жыл бұрын
using 1
@themonkey4465
@themonkey4465 6 жыл бұрын
This is posted on the Arduino website right now!
@slackvictor
@slackvictor 6 жыл бұрын
That fet will runaway and die shorted just around the 40-50W mark. I ran some tests with those exact fets a while ago - they fail fairly consistently. Best bet is to use some beefy linear mosfets from IXYS, although they are expensive.
@rutaElectronics
@rutaElectronics 6 жыл бұрын
I would like to see you building or launching an electronic product into the world market.
@AboubakrA
@AboubakrA 6 жыл бұрын
are you sure that your loop is stable though ?, your have a pole from the RC filter of the PWM and another pole from the time delay it takes for the ADC to read and adjust the PWM, all this in a feedback loop with loop gain equal to (transconductance of the MOSEFT * gain of the current sensor * ADC gain)
@mrmizan2514
@mrmizan2514 Жыл бұрын
Any driver can be used instead of tc4420cpa MOSFET driver
@TimSavage-drummer
@TimSavage-drummer 6 жыл бұрын
Could those oscillations be reduced by feeding the output of the current sensor back (via an opamp) to drive the MOSFET? EEVBlogs simple constant current load uses this approach although uses a resistor bank to dissipate energy. Your approach, however, will have a more consistent current draw.
@gabrielenitti3243
@gabrielenitti3243 6 жыл бұрын
Why did you use a Mosfet driver and not just a low pass filter?
Homemade Digital Electronic Load | Multiple Modes
18:02
Electronoobs
Рет қаралды 91 М.
One day.. 🙌
00:33
Celine Dept
Рет қаралды 49 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 45 МЛН
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,7 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 187 МЛН
Building a Test Load (4-30V 0-4A)
12:35
DiodeGoneWild
Рет қаралды 34 М.
Analog Constant Load/Current Controller Circuit
13:18
Electronoobs
Рет қаралды 79 М.
Linear DC Power Supplies - Designing & Building Custom DC Power Supplies
1:12:39
I tried finding Hidden Gems on AliExpress AGAIN! (Part 11)
15:01
GreatScott!
Рет қаралды 764 М.
DIY Mini Lab Bench Power Supply (With Switchable DC and AC Input)
11:12
K R A L Y N 3D
Рет қаралды 1,2 МЛН
Young Reps wasting time and materials: IGBT Electronic Load
7:35
Viral logic puzzle from China
9:08
MindYourDecisions
Рет қаралды 72 М.
Fake Samsung Galaxy S25 Ultra Plus на iOS
0:59
Wylsacom
Рет қаралды 190 М.
Me Charging My Phone Before Going Out
0:18
Godfrey Twins
Рет қаралды 14 МЛН
Новый iPhone 👍 @JaySharon
1:07
История одного вокалиста
Рет қаралды 3,2 МЛН
ПРОДАЛИ ЮТУБ КНОПКУ ЗА ПК
1:00
VA-PC
Рет қаралды 130 М.
СДЕЛАЙ ТАК . Пульт будет работать вечно
9:39
Мужские интересы 79
Рет қаралды 245 М.