jean12
Advanced Member level 2
Hello,I would like to control the speed of an AC Single phase motor I constructed the ciruit as you find in attachment.I have the following problem which I would like you to help me solving:
>>Whith the snubber of 1nF/250V(shown by multimeter) and 1.5Kohm is not allowing the PIC to control the motor
>>When the optocoupler MOC3020 is replaced by a DC voltage of 3.3V the motor turns very well
>>How should I calculate the values for those R and C of the snubber circuit?
>>I am using BTA26-600 at 230VAC/50HZ with an AC Single phase motor of 0.85A/230V at 1500RPM how may I proceed for making this in on state and change its speed?I am using PIC16F73 and would like to code in Micro c,
here are some of the code please help me to make the speed variable with potentiometer or push button.
The code I am using are here,it could be very helpful and I will be very thankful to the user here who can help me to adjust the speed of an AC Single phase motor with enhancing the functionalities of the following codes:unfortunately they are not allowing me to control the speed of an AC speed motor with a fixed voltage at a delay of 5ms.
Please help
>>Whith the snubber of 1nF/250V(shown by multimeter) and 1.5Kohm is not allowing the PIC to control the motor
>>When the optocoupler MOC3020 is replaced by a DC voltage of 3.3V the motor turns very well
>>How should I calculate the values for those R and C of the snubber circuit?
>>I am using BTA26-600 at 230VAC/50HZ with an AC Single phase motor of 0.85A/230V at 1500RPM how may I proceed for making this in on state and change its speed?I am using PIC16F73 and would like to code in Micro c,
here are some of the code please help me to make the speed variable with potentiometer or push button.
The code I am using are here,it could be very helpful and I will be very thankful to the user here who can help me to adjust the speed of an AC Single phase motor with enhancing the functionalities of the following codes:unfortunately they are not allowing me to control the speed of an AC speed motor with a fixed voltage at a delay of 5ms.
PHP:
unsigned char FlagReg;
sbit ZC at FlagReg.B0;
int angle,v1;
unsigned int v;
void interrupt(){
if (INTCON.INTF){
ZC = 1;
INTCON.INTF = 0;
}
}
void main() {
PORTB = 0;
PORTC=0;
TRISB = 0x01; //RB0 input for interrupt
TRISA=0x01; //Input for potentiometer
TRISC.b6=0; //Output for driving the TRIAC
TRISC.B0=0;
OPTION_REG.INTEDG =0; //interrupt on falling edge
INTCON.INTF = 0; //clear interrupt flag
INTCON.INTE = 1; //enable external interrupt
INTCON.GIE = 1; //enable global interrupt
while (1){
if (ZC){ //zero crossing occurred
PORTC.B6 = 1; //Send a 8ms pulse
delay_ms(1);
PORTC.B6 = 0;
ZC = 0;
}
PORTC.B0=1 ; //Turn on LED on RC0
delay_ms(1500);
PORTC.B0=0; //Turn off LED on RC0
Delay_ms(1000);
}
}
Please help
Attachments
Last edited: