Dimmer


Closed Thread
Results 1 to 40 of 68

Thread: Dimmer

Hybrid View

  1. #1
    Reven's Avatar
    Reven Guest


    Did you find this post helpful? Yes | No

    Default

    Can someone help me?
    I build the circuit from (Dimmer.zip) ==> http://www.melabs.com/resources/samples.htm#submitted,
    and I have this problem:
    If I press the increase button (<500ms) ,the lamp go on,full and if I press the decrease button, the lamp go off (normal).
    If I try to decrease the intensity from full on, or increase the intensity from off state, the lamp it fllash fast without decreasing/increasing brightness, until the lamp go on or off.
    On GP4 I have 50hz, and value at the pin GP2 while press the buttons, increment/decrement pulses by 500 uSec,until the maximum/minimum value, everything look ok.

    Any Help?

    Thanks!

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default

    Have you adapted the program for the 50Hz line freq?

    Ioannis

  3. #3
    Reven's Avatar
    Reven Guest


    Did you find this post helpful? Yes | No

    Unhappy

    If you mean the maxdelay value, yes.

    But if you conect osciloscope and take a look at the pulses from the pic output and the 50Hz at the same time, you will see that the maxdelay value is only for the maximum brightness.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Looks like a bad signal level to me...

    What is the voltage of your transformer?
    What are your R3 and R4 value?

    Try decrease R3 and post your results.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Reven's Avatar
    Reven Guest


    Did you find this post helpful? Yes | No

    Unhappy

    This is the osciloscope measures from the GP4 (AcLine input), and from GP2 (Output to TRIAC).
    I use tranformer 8Vac, R3=4k7 and R4=10k.

    Look the pictures from 0 to 4. Is from value off to on through 3 steps.


    But the lamp still flashing...
    Attached Images Attached Images      

  6. #6
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default This doesn't look right.....

    Reven,
    I've not used that circuit or code you are reffering to but by just looking at your waveforms it seems that the triac is triggered at the same phase angle in case 1, 2, 3 & 4.

    The triac only needs a short pulse on the gate and will then hold itself 'on' untill the AC-line crosses zero, at which point it will turn 'off'. That short pulse should be delayed a certain amount of time from the zero crossing.

    On your scope pics the triac seems to be triggered exactly 1div from the zero crossing in all cases except full on and full off.

    /Henrik Olsson.

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink Pulse position, not pulse length !!!

    Hi, reven

    Henrik is right ...

    Here, the pulse length is not the thing to be variable.

    but you must vary the time between zero voltage detection and triac gate firing ...

    Long time = weak light
    short time = full light

    remember once the triac is turned on it stays turned ON until current becomes null.


    Alain

    Here, you had programmed a ... DC Dimmer !!!
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. PICDIM Lamp Dimmer for the PIC12C508 - PICREF-4
    By charudatt in forum General
    Replies: 8
    Last Post: - 2nd September 2015, 08:14
  2. Dimmer switch
    By iugmoh in forum Off Topic
    Replies: 4
    Last Post: - 20th March 2009, 17:02
  3. Ideas on ir-code for dimmer
    By tirithen in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 14th February 2009, 00:22
  4. 50hz sync for light dimmer
    By tirithen in forum General
    Replies: 2
    Last Post: - 6th September 2008, 20:29
  5. Dimmer Circuit
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th January 2007, 15:37

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts