Dimmer


Closed Thread
Results 1 to 40 of 68

Thread: Dimmer

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Hi Steve,

    As you well know, it took about a month for me to figure out that this line does not work:

    @ device intrc_osc_noclkout, wdt_on, mclr_off, protect_off

    It should be either like
    @ device pic12F675, intrc_osc_noclkout, wdt_on, mclr_off, protect_off
    or
    like

    @ DEVICE pic12F675, INTRC_OSC_NOCLKOUT
    @ DEVICE pic12F675, WDT_ON
    @ DEVICE pic12F675, PWRT_ON
    @ DEVICE pic12F675, MCLR_OFF
    @ DEVICE pic12F675, BOD_ON
    @ DEVICE pic12F675, CPD_OFF
    @ DEVICE pic12F675, PROTECT_OFF
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  2. #2
    Join Date
    Sep 2006
    Location
    Florida, USA
    Posts
    94


    Did you find this post helpful? Yes | No

    Smile Much better!

    Thanks guys! I knew I would be embarrased by the solution and I was right!

    OK, Now I have made the circuit change and have made the switch changes. I get the 5V outputs on pins GPIO.0 and .1 which go low when I press the up or down buttons. I do not, however, get any output from GPIO.2 which is the triac trigger. My guess is that the problem lies in the ACDetect routine. I see in previous posts that there were many references to this routine and it went through several revisions. Can someone verify that I have the correct routine?

    I have attached the code as a text file and the circuit design as a pdf. Would appreciate comments.

    Thanks again! Atom058
    Attached Images Attached Images
    Attached Files Attached Files

  3. #3
    Join Date
    Sep 2006
    Location
    Florida, USA
    Posts
    94


    Did you find this post helpful? Yes | No

    Wink Stumped?

    Hello again - Did I stump everyone? Surely someone has a comment...

    Would really like to get this working!

    Thanks in advance! Atom058

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


    Did you find this post helpful? Yes | No

    Default

    You have the right version.

    It's suppose to work unless you have some hardware issue OR device prograemmer issue.
    Steve

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

  5. #5
    Join Date
    Sep 2006
    Location
    Florida, USA
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Mister-e - Thanks! I will go over my circuit again. It helps knowing that the code I am trying to run is the correct version - I can focus my attention elsewhere. If you (or anyone else) can offer some troubleshooting ideas, they would be appreciated.

    Atom058

  6. #6
    Join Date
    Sep 2006
    Location
    Florida, USA
    Posts
    94


    Did you find this post helpful? Yes | No

    Thumbs up Making Progress!

    Well, I did find (part of) my problem - It was a bad solder at GPIO.4 so it was never seeing the zero crossing. Having fixed that, I now can dim the light up and down just like it is supposed to. However, (bet you saw this coming) when it is between full on and full off, it flickers randomly. The dimming works but it flickers until it gets to full on or full off. I am sure that this is a timing issue but can't see where to get at it. I am at 60 Hz, 120V. I am using the code as previously posted.

    I know that some of you (Mister_e) feel like you are beating a dead horse with this dimmer project, but if you can help me get through this, I will post my final code, circuit diagrams and parts lists so that anyone can build this and you will never have to deal with it again (hopefully!).

    Thanks (Mister_e)!

    Atom058

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


    Did you find this post helpful? Yes | No

    Default

    interesting. to me it's sounds like a an delay offset in the Zero Crossing. Done by the transformer AND the 470uF cap.

    Can be solved in software.

    Give me the transformer information, part #, voltage etc. I will work on this.
    Steve

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

Similar Threads

  1. PICDIM Lamp Dimmer for the PIC12C508 - PICREF-4
    By charudatt in forum General
    Replies: 8
    Last Post: - 2nd September 2015, 07:14
  2. Dimmer switch
    By iugmoh in forum Off Topic
    Replies: 4
    Last Post: - 20th March 2009, 16:02
  3. Ideas on ir-code for dimmer
    By tirithen in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th February 2009, 23:22
  4. 50hz sync for light dimmer
    By tirithen in forum General
    Replies: 2
    Last Post: - 6th September 2008, 19:29
  5. Dimmer Circuit
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th January 2007, 14: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