I again with thyristor firing angle program code. The project is ready, the scheme and the program code is working. But there is one big problem. Every small time interval lamp flashes, so a break in the program. The time interval lengths are not cyclical, they are different, they can be approx. 30 sec - 4min.
It appears that this break is one of the program cycle long, the voltage is not able to fall to zero.
That problem is in the program code, I made sure so - I made simplification program code, where I delete the extra activities, such as interrupt with timer1 , 7segm display, .etc.
With this simplified program code lamp glows steadily, no interruptions!
Attached is the wiring diagramm, finished program code and the simplified test code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
William, there's a pull up resistor. The error is in the scheme.
I found the problem. There may not use the Timer1 interrupt. Because 2 Interrupts have already been used. I organized the timer yourself. Now work!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I again with thyristor firing angle program code. The project is ready, the scheme and the program code is working. But there is one big problem. Every small time interval lamp flashes, so a break in the program. The time interval lengths are not cyclical, they are different, they can be approx. 30 sec - 4min.
It appears that this break is one of the program cycle long, the voltage is not able to fall to zero.
That problem is in the program code, I made sure so - I made simplification program code, where I delete the extra activities, such as interrupt with timer1 , 7segm display, .etc.
With this simplified program code lamp glows steadily, no interruptions!
Attached is the wiring diagramm, finished program code and the simplified test code.
Attached is the wiring diagramm, finished program code and the simplified test code.
Attached is the wiring diagramm, finished program code and the simplified test code.
Attached is the wiring diagramm, finished program code and the simplified test code.
Do you need a pullup resistor on Byoass (PortC.5) ?
William, there's a pull up resistor. The error is in the scheme.
I found the problem. There may not use the Timer1 interrupt. Because 2 Interrupts have already been used. I organized the timer yourself. Now work!