Re: How to calculate current in R2 with an LM317
No, I haven't seen that before. Very interesting... I'll have to play with it and see how it works.
How to calculate current in R2 with an LM317
Collapse
X
-
Re: How to calculate current in R2 with an LM317
In my LM317 calculator spreadsheet, I did extra math so there are three possible equations:
Given Vout, R1, solve for R2
Given Vout, R2, solve for R1
Given R1, R2, solve for Vout
Also included the resistor's power dissipation calc and load, and what if the REF is high 1.30V or low 1.20V I think over temperature that is the case.Leave a comment:
-
Re: How to calculate current in R2 with an LM317
I've actually written an LM317 calculator in Java ... with everything graphically laid out, you fill in the values you know it figures out what you don't know ... what I really like about it is that I can tell it that I want it to give me a list of values for R2 when I pre-select R1 then tell it I want the LM317 to have a specific voltage range... it will tell me what values of R2 will satisfy the sweep so I can pick the POT accordingly.
It does some other stuff too ... once I've got the program complete, I was gonna see if anyone in here wanted to check it out and maybe even offer some ideas for improving it.Leave a comment:
-
Re: How to calculate current in R2 with an LM317
This is actually a great idea ... I had not thought of using a servo to control a pot ... I mean ... setting aside the obvious - COMPLETE impracticality of such a design ... but then again Im not wanting to do the project to mass produce ... they sell chips for less than 50 cents that will charge an 18650 ... this is just for the satisfaction of actually doing it.
So why not just throw the batteries on the charger every night after you're done working?Leave a comment:
-
Re: How to calculate current in R2 with an LM317
you dont reset a watchdog from a damned interrupt - you do it from the main program loop!Leave a comment:
-
Re: How to calculate current in R2 with an LM317
dammit write good software from the get go, not expect firmware updates to save you after something goes up in flames...Leave a comment:
-
Re: How to calculate current in R2 with an LM317
A watchdog doesn't work unless you know what you are doing.
One engineer had a 100Hz real-time interrupt (RTI) for timing things in his firmware, seconds counters etc. and he put the watchdog reset code there. Of course, his main software hung and the RTI kept happening, the product did not reboot- despite being hung up
My buddy doing automotive ECU drive-by-wire code, one of (many) techniques is for every important subroutine, increment a counter everytime it's executed.
He has a supervisory routine that looks at all the counters, if a count gets stuck you know the routine is dead or hung. Then you can attempt to restart it (that task/routine). If the counts are OK, kick the watchdog. The ECU you don't really want a reboot, that is a separate H/W chip doing that.Leave a comment:
-
Re: How to calculate current in R2 with an LM317
any mcu used in a risky way needs a watchdog circuit.Leave a comment:
-
Re: How to calculate current in R2 with an LM317
Careful almost all Digipots are only good to 5V max, so the LM317 max. output voltage would be 6.25V as R2 can see 5V max. There are HV ones.
Some Arduino's MCU has a DAC output. Most PWM solutions are an extra op-amp, not too complex.
MCU-controlled battery charging is a bit risky, if your code crashes or hangs you want it to be safe.
You can setup the Vreg hardware to output the highest safe voltage possible and then use the MCU to only lower that with software control.Leave a comment:
-
Re: How to calculate current in R2 with an LM317
Yeah voltage control is not too bad. Current control ... now that's another ball of yarn.Leave a comment:
-
Re: How to calculate current in R2 with an LM317
This is not what you were asking about in your original post but have you seen this, "Control an LM317T with a PWM signal": https://www.edn.com/control-an-lm317...-a-pwm-signal/Last edited by R_J; 05-23-2021, 06:45 PM.Leave a comment:
-
Re: How to calculate current in R2 with an LM317
and neither the synchronous interface or the 128 bit (or do you really mean 128-step) attenuation are the problems encountered with implementing a microcontroller controlled constant current source with the LM317 or L200...Leave a comment:
-
Re: How to calculate current in R2 with an LM317
you can get 128bit digital pot chips with syncronous interface.Leave a comment:
-
Re: How to calculate current in R2 with an LM317
This is why I bought the computer controlled battery charger which can work off line and if you want the results you just connect it to the computer for the results
Yes I know it only for charging batteries but it does work very well for I use it forLeave a comment:
-
Re: How to calculate current in R2 with an LM317
what has the world come to when one needs a 32-bit microcontroller to build a power supply...
and the L200 has the same problem as the LM317 when it comes to microcontroller-controlled current limiting it looks...Last edited by eccerr0r; 05-23-2021, 09:58 AM.Leave a comment:
-
Re: How to calculate current in R2 with an LM317
i'm pretty sure the whole concept of LM317 current regulation is obsolete for about 30years because of the L200
https://duckduckgo.com/?q=l200+regulatorLeave a comment:
-
Re: How to calculate current in R2 with an LM317
This is one of the topic of Nuts and Volts magazine this month
HIGH VOLTAGE OP-AMPS, A CURRENT SENSOR, AND A 32-BIT MICROCONTROLLER: HOW ABOUT A LAB POWER SUPPLY?Leave a comment:
-
Re: How to calculate current in R2 with an LM317
Now this is the challenge: design a LM317 circuit that allows digital control (128 steps or better) that implements adjustable current limiting to a circuit up to 1A...Leave a comment:
-
Re: How to calculate current in R2 with an LM317
STJ
I found this from your post earlier
I have not seen this type of setup before using this LM317 regulator device
Circuit Operation
Referring to the shown circuit diagram, the configuration looks pretty straightforward, two LM317 IC s can be seen, one configured in its standard voltage regulator mode and the other in a current control mode.
To be precise the upper LM317 forms the current regulator stage while the lower acts like a voltage controller stage.
The input supply source is connected across the Vin and ground of the upper current regulator circuit, the output from this stage goes to the input of the lower LM317 variable voltage regulator stage. Basically both the stages are connected in series for implementing a complete foolproof voltage and current regulation for the connected load which is a laser diode in the present case.Last edited by sam_sam_sam; 05-23-2021, 07:23 AM.Leave a comment:
-
Leave a comment:
Related Topics
Collapse
-
by sam_sam_samI have a battery operated tab welder and the battery does not have enough current for the battery tab welder because after about 30 welded it does not have the same current output it voltage has gone down by at least 0.500 volts or maybe a more than that
I can fit 21700 battery cells in the enclosure it is very tight fit for four of them that are 35 amp high current capacity 35X4=140 high current output this should work a lot better than what is installed right now
I tested the battery cells there are installed right now and they are testing good with no issues that I... -
The AP2182 and AP2192 (AP21X2SG-13 AP21X2MPG-13) are integrated high-side power switches optimized for Universal Serial Bus (USB) and other hot-swap applications. The family of devices complies with USB 2.0 and available with both polarities of Enable input. They offer current and thermal limiting and short circuit protection as well as controlled rise time and under-voltage lockout functionality. A 7ms deglitch capability on the open-drain Flag output prevents false over-current reporting and does not require any external components.
All AP21X2SG-13 AP21X2MPG-13 devices are available...-
Channel: Common Parts Library - Datasheets
10-23-2024, 03:33 AM -
-
by DynaxSCHi Folks
I'm looking for a extreme high current short killer solution for a reasonable cost.
I have an LGA1700 motherboard (ASUS PRIME Z790-P WiFi) where I exchanged the LGA socket already 3 times, and every time after the socket exchange I get a short of power supply lines VCORE (V variable) and VCCIN_AUX (1.8V).
After taking off the socket, the shorts dissappear again.
The soldermask on the socket is already partially demaged from the heat, so I have reconstructed the soldermask by manually painting the missing soldermask parts with a very small top of a...10-15-2024, 10:13 AM -
by sam_sam_samI want to know if I could hook up a solar panels to this boost converter would I have any issues doing and I would have issues what would they be
Adjustable Boost Power Supply DC-DC Constant Voltage Current Charging Module
https://www.ebay.com/itm/116497313155?var=416785404161
Here are some of the description from the eBay seller
The main parameters:
1. Product name: High-power non-isolated DC boost module power supply.
2. Product model: 100A2000W.
3. Input voltage: DC12V-60V.
4. Input current: 100A (maximum).... -
by EasyGoing1I'm supplying a LM317 that's configured for 5.0V output with a source voltage of 7 volts. The LM317 is supplying power to a 5 volt sensor. The sensor is drawing 110ma of current, but the LM317 gets really hot and when i check the current draw from the 7V supply to the LM317, the LM317 is drawing a little over 400ma ...
This means that the LM317 is consuming almost 3 times the energy that it's supplying.
Is this normal for a LM317? - Loading...
- No more items.
Leave a comment: