Tahmid
Advanced Member level 6
- Joined
- Jun 17, 2008
- Messages
- 4,764
- Helped
- 1,799
- Reputation
- 3,590
- Reaction score
- 1,662
- Trophy points
- 1,413
- Location
- Berkeley, California
- Activity points
- 30,716
#define UComp 3
#define UComp1 0.04
#define UCompMin 190
#define UCompMax 240
#define Led0_on output_bit(PIN_E0,0)
#define Led0_off output_bit(PIN_E0,1)
#define rel_Ry0_on output_bit(PIN_E1,1)
#define rel_Ry0_off output_bit(PIN_E1,0)
#define rel_Ry1_on output_bit(PIN_E2,1)
#define rel_Ry1_off output_bit(PIN_E2,0)
#define U_nul input(PIN_A1)
void Rel_0_on()
{
while (U_nul);
while (!U_nul);
delay_us(4300);
Rel_Ry0_on;
delay_ms(20);
}
void Rel_1_on()
{
while (U_nul);
while (!U_nul);
delay_us(4300);
Rel_Ry1_on;
delay_ms(20);
}
void Rel_0_off()
{
RelFlg0=0;
while (U_nul);
while (!U_nul);
delay_us(6500);
Rel_Ry0_off;
delay_ms(20);
}
void Rel_1_off()
{
RelFlg1=0;
while (U_nul);
while (!U_nul);
delay_us(6500);
Rel_Ry1_off;
delay_ms(20);
}
float read_voltage()
{
float Ut,U1,U2,U3,U4,U5,U6,U7;
float U8,U9,U10,U11,U12,U13,U14;
while (U_nul);
while (!U_nul);
delay_us(4000);
output_bit(PIN_B2,0);
U1 = Read_ADC();
delay_us(250);
U2 = Read_ADC();
delay_us(250);
U3 = Read_ADC();
delay_us(250);
U4 = Read_ADC();
delay_us(250);
U5 = Read_ADC();
delay_us(250);
U6 = Read_ADC();
delay_us(250);
U7 = Read_ADC();
delay_us(250);
U8 = Read_ADC();
delay_us(250);
U9 = Read_ADC();
delay_us(250);
U10 = Read_ADC();
delay_us(250);
U11 = Read_ADC();
delay_us(250);
U12 = Read_ADC();
delay_us(250);
U13 = Read_ADC();
delay_us(250);
U14 = Read_ADC();
output_bit(PIN_B2,1);
Ut=(U1+U2+U3+U4+U5+U6+U7+U8+U8+U9);
Ut=(Ut+U10+U11+U12+U13+U14)/15;
Ut=Ut*AdcConst/Utrim;
return(Ut);
}
float read_voltage_80ms()
{
float Ut,U1,U2,U3,U4;
U1=read_voltage();
U2=read_voltage();
U3=read_voltage();
U4=read_voltage();
Ut=(U1+U2+U3+U4)/4;
// mesuretrafo compensation
Utval=Ut;
if (Ut<=UCompMin)
Ut=Ut+UComp;
else
if ((Ut>UCompMin)&&(Ut<UCompMax))
{
Ut=Ut+((UCompMax-Ut)*UComp1);
}
Utcompval=Ut;
if (Ut > NetUmax)
{
NetUmax=Ut;
write_float_eeprom(NetUmax_p,Ut);
}
if (Ut < NetUmin)
{
NetUmin=Ut;
write_float_eeprom(NetUmin_p,Ut);
}
return(Ut);
reply about this sch. it is for 16F676 BASED 95 V-290 V AC 5 STEP AUTOMATIC DIGITAL STABILIZERView attachment 58406
Relay Type Voltage StabilizersA relay type voltage stabilizer is one of the most popular types of voltage stabilizers. Circuits of such stabilizers are based on transformer taps commutating with the help of electronic commutators. The maximum output voltage of the stabilizer significantly exceeds that of a power transformer. The required transformer capacity needs to be selected based on the minimum possible voltage within the given power network. For example, if the minimum possible network voltage is at least 180 V, the transformer needs to add an extra 40 V, that is the value 5.5 times lower than the network voltage. This is exactly by how much the output capacity of a stabilizer would exceed the capacity of a power transformer (of course, this is without considering the transformer's efficiency, and the maximum possible current allowed through the switching elements).The voltage at the output of a stabilizer changes stepwise. The number of voltage regulation steps usually doesn't exceed 3-6, which enables sufficient accuracy in maintaining the output voltage. When calculating the number of rings in the transformer's winding for each step the voltage in the power network is assumed as equal to the voltage of triggering the switching element.Usually electromagnetic relays are used as commutators. Then the circuit is rather simple and reproducible. The only drawback is that when the relay switches, there appears an arch, which destroys the contacts.In circuits that are more complex, for example, in those using digital elements, the relay is switched, when the network's halfwave passes through zero, which prevents generation of a spark. But it's either the relay needs to be very quick, or the devices need to be turned on when the previous halfwave declines.The overall advantages of relay-type voltage stabilizers are as follows:Firstly, high stabilization accuracy that is directly proportionate to the number of steps and keys.Secondly, there is no distortion in voltage shape, since the distorting elements are missing.Thirdly, the wide working temperature range.Forthly, high noise immunity, since the relay is not affected by noise, voltage or current shapes.Fifthly, low sensitivity to network frequencies.And, finally, the low price.
As you know, it is ok... from here the serious work will begin :grin:
By the way, the idea of the project is rather simple but its implementation in designing every part of it may not be as easy as one expects :wink:
Let us start with:
May I ask you what is the maximum load at the regulated output (say @220Vac)?
ok ,o\p between 200 v to 245 v.
Isn't an output of 245V too high? I think 200v to 230v would be better. What do you think?
I was going through a few stuff and came across this:
What are your thoughts on the part bolded? How much does this affect performance? Does the arch really destroy the contacts?
yes u are right ..
And if I remember well, I flip the relay near zero crossing at which the current is minimal.
Do you remember the values of the resistor and capacitor you used for the snubber?
Okay, so I'll do that. Thanks.
Just curious... isn't too early in India now
In my case, I go to sleep when I feel tired... no matter what would be the time
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?