johnny78
Full Member level 5
- Joined
- Jun 28, 2017
- Messages
- 270
- Helped
- 1
- Reputation
- 2
- Reaction score
- 5
- Trophy points
- 1,298
- Activity points
- 3,468
Linear regulators can be cascaded under circumstances, in switching regulators the switch is stressed with the full input voltage and must be designed for it. There are various HV switching regulators on the market, but probably not within your reach. Check the selection guides of major manufacturers and see what's available for you.
As you consider a linear regulator (LM317), I presume current consumption of your circuit is relative low. A simple solution would be series zener diode to drop part of the input voltage. Other solution could be a buck converter with discrete switching transistor or a flyback converter.
As for 60 V measurement, you should observe the maximal source impedance specification for ADC input. It's no absolute limit but related to possible accuracy degardation.
hi KlausHi,
Important information is missing: What load current should it be designed for?
For low currents / low power, one can add a series zener to reduce input voltage. Benefit is, that the voltage is much more stable (vs load current) than with a resistive voltage divider.
So my first idea: Zener, capacitor, step down, capacitor
Klaus
float in_voltage = 0.0;
float R1 = 30000.0;
float R2 = 5555.556;
float ref_voltage = 5.0;
///////////////////////////////////////// Battery voltage routine
ADCVal = analogRead(batMonPin); // read the voltage on the divider on pin A4
pinVoltage = (ADCVal * ref_voltage) / 1024.0;
if ((timerCurrentSeconds) != tm.Second) {//1 second delay uisng ds1307
batteryVoltageV = pinVoltage / (R2 / (R1 + R2));
}
///////////////////////////////////////// Battery voltage routine END
unfortunately the HV series of all converters is not available here in the shopsThere are a few options for regulating a 60V supply. One option is to use a high voltage buck converter, such as the TI LM5160. This will allow you to adjust the output voltage to whatever you need it to be. You can also use a high voltage linear regulator, such as the Murata LDO-HV. This will provide a constant output voltage, but it will not be adjustable. You can also use a combination of high voltage MOSFETs and a low voltage linear regulator, such as the LM317, to step down the voltage to the desired level.
this is what im looking for would you please guide me for this solutionYou can also use a combination of high voltage MOSFETs and a low voltage linear regulator, such as the LM317, to step down the voltage to the desired level.
unfortunately this solution is more expensive than my device itselfA pile of >= 60V regulators available :
Regards, Dana.
hi FvMLinear regulators can be cascaded under circumstances, in switching regulators the switch is stressed with the full input voltage and must be designed for it. There are various HV switching regulators on the market, but probably not within your reach. Check the selection guides of major manufacturers and see what's available for you.
As you consider a linear regulator (LM317), I presume current consumption of your circuit is relative low. A simple solution would be series zener diode to drop part of the input voltage. Other solution could be a buck converter with discrete switching transistor or a flyback converter.
As for 60 V measurement, you should observe the maximal source impedance specification for ADC input. It's no absolute limit but related to possible accuracy degardation.
My handheld calculator does not accept text like "ATMEGA.."the load is an ATMEGA328p MCU - 16x2lcd - ds1307 RTC moc3021 triac driver & voltage divider for measuring input voltage
ok SirHi,
My handheld calculator does not accept text like "ATMEGA.."
--> if you did not yet, then it's high time for you to get an idea of load current. As number.
Now you mix two problems, and it's not clear for me what is what?
Your first line of post#6 talks about the power supply problem, the next about measurement, then supply, supply measurement...and so on
I just did talk about the power supply problem...maybe I already was confused by the mix in post#1
Klaus
thanks SirBelow is the LTspice sim of a circuit that uses two LM317 to give 5V output from a 60V supply.
The first is set to give 30V out so the voltage is never more than 30V across each LM317 even if the output is shorted.
The LM317's will need to be on heat-sinks, their size depending upon the output load current.
The nominal dissipation will be 30V * load-current for U2 and 25V * load-current for U1.
View attachment 181899
Below is the LTspice sim of a circuit that uses two LM317 to give 5V output from a 60V supply.
The first is set to give 30V out so the voltage is never more than 30V across each LM317 even if the output is shorted.
The LM317's will need to be on heat-sinks, their size depending upon the output load current.
The nominal dissipation will be 30V * load-current for U2 and 25V * load-current for U1.
View attachment 181899
hi Klaus
the load is an ATMEGA328p MCU - 16x2lcd - ds1307 RTC moc3021 triac driver & voltage divider for measuring input voltage
but this easy solution will not effect the voltage i need to measure ?
unfortunately i've tried to reduce the input voltage with some 1N4007 diodes on series
as i know this diode drops 0.7 volt but this didnt work
the other issue is the voltage devider for measuring on analog pin
using voltage devider calculator ive used 30k for R1 & 5555 ohm for R2 to measuring 32 volts
then i needed to measure 60v so i re calculated it using the same R1 value 30K & the R2 value is 2727.273 ohms
the first calculated values is working for 12-32 reading but the second values are good for voltage more than 45 but cant measure low voltages accurately
so i tried to increase the R1 value to 100k & calculate the R2 value
But i dont see accuracy for measuring various range of volt
what do you suggest for reading 0-60v ?
im using atmega328 & this is the code
Code:float in_voltage = 0.0; float R1 = 30000.0; float R2 = 5555.556; float ref_voltage = 5.0; ///////////////////////////////////////// Battery voltage routine ADCVal = analogRead(batMonPin); // read the voltage on the divider on pin A4 pinVoltage = (ADCVal * ref_voltage) / 1024.0; if ((timerCurrentSeconds) != tm.Second) {//1 second delay uisng ds1307 batteryVoltageV = pinVoltage / (R2 / (R1 + R2)); } ///////////////////////////////////////// Battery voltage routine END
thanks for help
--- Updated ---
unfortunately the HV series of all converters is not available here in the shops
(
this is what im looking for would you please guide me for this solution
& will this solution effect the input voltage which i need to measure ?
thanks for help
--- Updated ---
unfortunately this solution is more expensive than my device itself
i need to do this with common parts
& the new version of regulators like the HV is not available in the shops here
thanks
--- Updated ---
hi FvM
unfortunately as a friend suggested i've used 2 lm2569 buck converters in series & set the output of one of it to 5v & used it to power the board But everything got exploded so i lost my board & the 2 lm2569 mudules
i dont know why & sure i will not try this again for any reason
the easy solution as Klaus suggested is the solution i will try to test
do you suggest to use the zener diode before the lm317 regulator Or use the zener to regulate 5v from the 60?
thanks
View attachment 181896
this is the only way i know to use zener diodes
* it seems you use VCC as ADC_VRef .... (which I never do for absolute voltage measurements). VCC is a supply voltage, which is not reliable, it is not accurate, nor is it stable. And every error of VRef you will see as 1:1 error in the ADV result. VCC may be +/-10% off, or 5% ... maybe better. It will vary from part to part, drift with time, drift with temperature, drift with load current and it will be noisy.
40V with respect to what?This seems to say input V of first LM317 is limited to 40 V (TI Datasheet) :
Agreed datasheet is incomplete. I took it to be standard test circuit, althoughHi
40V with respect to what?
The LM317 has no GND pin, thus it can´t be referenced to GND.
7.1 and 7.3 make it more clear: It is the difference between input and output.
Klaus
Because likely the LM317 is cheaper than a high power, high voltage Zener (and also reduces the number of different parts needed).I don't understand the benefit of using 2 LM317 in series .... vs a voltage drop with a series zener (instead of first LM317 circuit).
It's not clear, but it's the input to output voltage, since the LM317 has no ground pin.This seems to say input V of first LM317 is limited to 40 V
Because likely the LM317 is cheaper than a high power, high voltage Zener (and also reduces the number of different parts needed).
It's not clear, but it's the input to output voltage, since the LM317 has no ground pin.
See the OnSemi data sheet snip for the LM317 below:
View attachment 181911
Hi,
definitely YES.
Haven´t you seen birds on a 100kV transmission line? The only diference is: Birds have two legs and the LM317 has three.
Klaus
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?