JLM Electronic Load, 0-30V, 0-4A, 1mV/1mA resolution - Page 1
Forum section: electronics / projects

author: JeanLeMotan
author_rank: Contributor
timestamp: May 01, 2019, 09:59:28 pm
content: [edit: updated the links]This is the 3rd revision of the load first discussed here:https://www.eevblog.com/forum/projects/programmable-electronic-load-0-5a/As pointed out by several forum members, the previous revision had some issues:- The PWM ref voltage was unstable as it relied only on the stability of the AMS1117 LDO - which is not great- The MOSFET was not good for a load. A linear one gives way better performance, both in therms of max continuous power but also because it has a DC region specified in the datasheet SOA- The reverse polarity was not ideal as the MOSFET went into the linear region at low voltages and heated up considerably- The opamps (TL071) were too noisy for this application- Several other smaller issues - like the screen being too small and hard to read, lack of SD card for saving the data, incomplete schematic (opamp voltages were generated outside, no fan mosfet on the PCB) etcI've been working on an improved version during the past month and I finally managed to get something working.Specs:0-4A (it was 5A in rev2, dropped now due to shunt de-rating)1mA, 1mV resolution. Accuracy should be similar if calibrated0-30V100W continuous with the recommended heatsink & FAN3D Printed caseReverse polarity protection (opamp driven, improved from rev2)2 & 4 wire measurements (rev2 had only 4 wire)Autoranging for both V&A using the ADS1115 PGA to get the max resolution/accuracy I can get from that partTemperature sensingFan control (mosfet on pcb this time)Fully programmable: it can execute a programmed sequence of operations and output the data through serialSDCard for data saving (a csv per session)320x240 TouchscreenProper linear power MOSFET (IXTQ 42N25P)Voltage reference REF3120AIDBZR (rev2 used PWM for this)Precision DAC DAC8571IDGKR (rev2 used PWM)Digital section on the PCB (rev2 PCB had no room for the esp32)USB Powered (rev2 needed 3v3 input and +/- 12V for the opamps)The software has the following features (some are WIP)Voltage/Current/Power/Resistance displayEnergy - both Wh and AhGraphs for the whole sessionConstant Current/Power/Resistance ModesSD card data savingTime/Energy/Voltage limitsI had to switch to a 4-layer PCB for rev3 in order to fix the esp32.Possible improvements for a rev4:Better shunt, double the current capabilityUse a raw esp32 module instead of a devkit, to cut BOM costs2-3 power mosfets, each with load regulation for way more powerI made a video with it in action:https://youtu.be/jkzM7wHbVtESchematic:https://easyeda.com/jeanlemotan/jlm-electronic-loadGithub project:https://github.com/jeanlemotan/jlm-electronic-loadLet me know what you think.I plan to do some more videos analyzing the schematic - including TINA sims for the load regulation and so on. I'm a SE, not an EE and I don't want to spread false info so your scrutiny is appreciated.Second video here with the PCB & Schematic and details about the load regulation.https://youtu.be/gcrGE7rbWiYHopefully I haven't made any embarrassing mistake

author: Dubbie
author_rank: Unknown
timestamp: May 01, 2019, 10:42:45 pm
content: Can you post some photos of your board?

author: thm_w
author_rank: Super Contributor
timestamp: May 01, 2019, 11:13:14 pm
content: Links got cut off:https://easyeda.com/jeanleflambeur/electronic-loadhttps://github.com/jeanleflambeur/electronic-loadLooks like some good improvements.

author: trinhvanthien
author_rank: Contributor
timestamp: May 02, 2019, 01:15:47 pm
content: Hi JeanLeMotan,When i try compile the electronic-load project had failured.

author: exe
author_rank: Unknown
timestamp: May 02, 2019, 01:25:52 pm
content: Quote from: trinhvanthien on May 02, 2019, 01:15:47 pmLooks like it actually succeeded and uploaded. Those yellow lines are warnings, not errors.

author: JeanLeMotan
author_rank: Contributor
timestamp: May 02, 2019, 03:45:56 pm
content: Quote from: thm_w on May 01, 2019, 11:13:14 pmThanks, I corrected the post.

author: JeanLeMotan
author_rank: Contributor
timestamp: May 02, 2019, 04:13:56 pm
content: Quote from: Dubbie on May 01, 2019, 10:42:45 pmDefinitely, as soon as I get 1h I'll post some high res photos of the insides.Are you interested in something in particular?

author: Dubbie
author_rank: Unknown
timestamp: May 02, 2019, 06:56:43 pm
content: Not really, I just like to see how others do things.

author: JeanLeMotan
author_rank: Contributor
timestamp: May 12, 2019, 11:30:24 pm
content: It took a while but I finally uploaded the second video with the PCB and schematic. I go over the load regulation a bit - hopefully it's relevant for someone.In the next video I plan to go over the voltage reference section and how to get a negative voltage for the bias required to cancel the input offset voltage.https://youtu.be/gcrGE7rbWiY

author: JeanLeMotan
author_rank: Contributor
timestamp: May 13, 2019, 03:05:44 pm
content: I'm thinking to do a next video about dummy loads and I have a few options:How to create a voltage reference for the load regulation: filtering a PWM signal or using a proper voltage reference and DACReverse polarity protection: diode, mosfet, opamp + mosfetBreadboarding the load regulation from the prev video and showing how it works, preventing oscillation etcMaking a new PCB from scratch, double layer vs 4 layerSimulating a dummy load in Tina-TI, stability, gain & phase marginsESP32 programming in PlatformIO vs Arduino IDEMaking a pretty and ergonomic UI on a small screenGetting 100 FPS on the ESP32 with a SPI screen (ili9431)Which would be the more interesting topic?

author: trinhvanthien
author_rank: Contributor
timestamp: May 25, 2019, 02:23:13 pm
content: Hi @JeanLeMotanYour project sometimes runs very unstable, ESP32 normally runs but the screen is not displayed.I checked the display is good with Arduino.

author: JeanLeMotan
author_rank: Contributor
timestamp: May 25, 2019, 03:32:22 pm
content: Quote from: trinhvanthien on May 25, 2019, 02:23:13 pmIn what way unstable? Does it crash or reboot?Double check that the display is connected correctly - check the schematic for that.Also - are you using the same display? This will only work with 320x240 ILI9341 displays.

author: trinhvanthien
author_rank: Contributor
timestamp: May 26, 2019, 04:56:50 am
content: Quote from: JeanLeMotan on May 25, 2019, 03:32:22 pmThanks so much for your replay.It does not crash or reboot but is not displayed, I use Display 2.8 "TFT and connected correctly as diagrams.Link:https://www.aliexpress.com/item/2-8-240x320-SPI-TFT-LCD-Serial-Port-Module-With-PCB-Adapter-Micro-SD-ILI9341-5V/32889801161.html?spm=a2g0v.10010108.1000001.11.16c17dc9EDKcL9&transAbTest=ae803_4&ws_ab_test=searchweb0_0%2Csearchweb201602_7_10065_10068_10547_319_10059_10884_317_10548_10887_10696_321_322_10084_453_10083_454_10103_10618_10307_537_536%2Csearchweb201603_52%2CppcSwitch_0&algo_pvid=dc7332f9-fb71-47b6-be6b-7a42c4b5aa04&algo_expid=dc7332f9-fb71-47b6-be6b-7a42c4b5aa04-1

author: JeanLeMotan
author_rank: Contributor
timestamp: May 31, 2019, 10:01:38 am
content: Quote from: trinhvanthien on May 26, 2019, 04:56:50 amYou need to double check your display connections according to the schematic.Can you post a few photos of your setup?Can you run any other ILI9431 demos to see if they work with your wiring? Make sure you configure whatever demo to your actual pin mapping.Another thing to do is use an oscilloscope to see if the clock and data signals look ok.

author: JeanLeMotan
author_rank: Contributor
timestamp: May 31, 2019, 07:33:00 pm
content: I just saw your photo: you have to connect the LCD Led and Reset to VCC for the screen to work.

author: trinhvanthien
author_rank: Contributor
timestamp: June 01, 2019, 01:47:12 am
content: Quote from: JeanLeMotan on May 31, 2019, 07:33:00 pmGreat! it worked

author: JeanLeMotan
author_rank: Contributor
timestamp: June 01, 2019, 10:22:52 am
content: Quote from: trinhvanthien on June 01, 2019, 01:47:12 amGreat!What will you be using for the case? If you have a 3d printer you could try the one that I use, it's uploaded on github.

author: trinhvanthien
author_rank: Contributor
timestamp: June 05, 2019, 02:57:30 am
content: Quote from: JeanLeMotan on June 01, 2019, 10:22:52 amthank you for the suggestions....I will try.

author: Rerouter
author_rank: Super Contributor
timestamp: June 05, 2019, 09:26:49 am
content: Possible suggestion. If you divide the load voltage into the dac vref pin. You end up with a constant resistance mode with a few 10s of KHz bandwidth

author: trinhvanthien
author_rank: Contributor
timestamp: June 06, 2019, 02:25:28 pm
content: To @JeanLeMotanI have 2 problems:1 - Fan does not run when temperature reaches 70 degrees2 - The value is not saved to the memory card...

author: trinhvanthien
author_rank: Contributor
timestamp: August 08, 2019, 03:21:55 am
content: @JeanLeMotanDid you stop developing your project ??