cancel
Showing results for 
Search instead for 
Did you mean: 

AC DIMMER WITH STM32F373

l90mehdi
Associate II
Posted on December 24, 2017 at 22:48

hello 

i am working on AC dimmer with stm32f373.

i have a issue when the fire angle change in TIMx->ARR.

in this case the lamps have filkcer.

i use the timer of MCU that runs in timer mode with internal clock.

how can fix this issue ???

thank you

#dimmer #timer #flicker
6 REPLIES 6
Posted on December 24, 2017 at 22:56

The phase angle should be in CCRx, don't use Preload and ARR (period, but why?) will load new value at update.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on December 25, 2017 at 01:23

thank you for response .

i should use timer in compare mode ???

How should I do it?

thank you

Posted on December 28, 2017 at 15:43

What are you trying to modulate? Frequency or Duty

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on December 30, 2017 at 06:33

I want to control the bulbs by controlling the fire angles.

i use timer in update mode and and control the ARR register in manual mode.

Posted on December 30, 2017 at 15:33

ARR changes the period/frequency, if you assume CNT is the phase/angle of the timer (ie 0 thru ARR), then CCRx is the angle trigger

Altering ARR will cause the frequency of the timer vs AC to precess with respect to each other, right?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on January 08, 2018 at 09:39

ok 

thanks