Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/24/04 03:31
Read: times


 
#81796 - Thyristor problem
Responding to: ???'s previous message

How have you determined the problem is with the code as opposed to the hardware?

Flickering I've found is caused by not turning your opto off before zero crossing - this is normally around 500uS. If you don't do this, there is enough energy to keep the thyristor fired into the next cycle - but only sometimes! Thus flickering as you get full half cycles sometimes and other times your expected chopped half cycle. This is all dependant on your firing circuit.

The other issue is synchronising the timer with the zero crossing - because your time is 100uS, your variation on zero crossing is +/- 100uS and this will vary as the timer comes in sync, then drifts out of sync - thus causing flickering sometimes.

I normally phase and frequency lock my timer to the zero crossing and use the capture feature of timer2. I filter the capture values to see that the input frequency is within bounds. I calc the time difference between the expected zero crossing and the actual zero crossing and add a correction to my expected zero crossing. I also filter the period of the zero crossing and use this value for my internal timer period - thus my code tracks the frequency and phase locks to the zero crossing input. I add offsets to correct for the phase of the zero crossing input. I use the timer compare to do the cycle timing and firing. This is a bit of work so it is done in assembler! Mind you I build light dimmers and my firing resolution is < 8uS.

Hopefully this might give you something to look at.



List of 42 messages in thread
TopicAuthorDate
Thyristor output flickering.            01/01/70 00:00      
   Thyristor problem            01/01/70 00:00      
      No Hardware problem            01/01/70 00:00      
      Please Elaborate more.            01/01/70 00:00      
   Thyristor problem            01/01/70 00:00      
      Re: Thyristor Problem.            01/01/70 00:00      
      Mains looks seldom like pure sinus            01/01/70 00:00      
         Thanks Kai But problem seems diffrent            01/01/70 00:00      
   Did the changes but still flickering.            01/01/70 00:00      
      Did the changes ....            01/01/70 00:00      
         Russell- Where can I get DSO software            01/01/70 00:00      
   More thoughts on filtering            01/01/70 00:00      
   Flickering is not minor.            01/01/70 00:00      
      Cool Edit            01/01/70 00:00      
         Cool Edit - no more :-(            01/01/70 00:00      
         Loading is enough.            01/01/70 00:00      
      interrupt configuration            01/01/70 00:00      
         I am not using External Interrupts.            01/01/70 00:00      
            external interrupt            01/01/70 00:00      
               I am reading only the edge detect flag.            01/01/70 00:00      
                  configuration again            01/01/70 00:00      
                     Here is the configuration.            01/01/70 00:00      
   Is it Int. prioprity setting proble?            01/01/70 00:00      
      Why not use the PCA?            01/01/70 00:00      
         It's too late to change the design.            01/01/70 00:00      
   Its not a interrupt priority problem.            01/01/70 00:00      
      Real -time problems            01/01/70 00:00      
   Tried PCA!            01/01/70 00:00      
      Firing circuit            01/01/70 00:00      
      hardware modification            01/01/70 00:00      
         Already modified with PCA SYSTIME>99            01/01/70 00:00      
      Sorry I small typpo in earlier post.            01/01/70 00:00      
   ideas            01/01/70 00:00      
      Problem Solving Great Idea            01/01/70 00:00      
   Assymetry            01/01/70 00:00      
   back to root            01/01/70 00:00      
      It is for power control.            01/01/70 00:00      
   Hey Friends Problem Solved.            01/01/70 00:00      
   Happiness is...            01/01/70 00:00      
      Oh sure....            01/01/70 00:00      
   here i am?            01/01/70 00:00      
      Thanks Kuldeep.            01/01/70 00:00      

Back to Subject List