Dimmer Circuit


Closed Thread
Results 1 to 10 of 10

Thread: Dimmer Circuit

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Are you trying to control two outputs with two different dimmer settings?

    In your code, you seem to be having the same setting for both delays.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Yes I send trough RS485 data to my Pic,for channel one and channel two.

    But when I receive the delay data for the first Channel for example 30*100=3000 us and 40 *100 =4000 us for the second Channel,then I think that this can not work while the first channel must wait 3000 us + 4000 us and then go low.

    Did you understand what I mean,wehn I modify the data for Channel one then i go modify the data for the Channel two too.

    regard
    Pesti

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Ok Im A Idiot :-),Ifind the way I must just for every Channel put a New Zero Cross Detection like here:

    POS_FLNK:IF ZeroDetect = 0 Then POS_FLNK
    NEG_FLNK:IF ZeroDetect = 1 Then NEG_FLNK
    PauseUs Delay_1
    high PortC.0
    pauseUs 100
    low PortC.0
    POS2_FLNK:IF ZeroDetect = 0 Then POS2_FLNK
    NEG2_FLNK:IF ZeroDetect = 1 Then NEG2_FLNK
    PauseUs Delay_2
    high PortC.1
    pauseUs 100
    low PortC.1
    hserin 1,MainStart,[WAIT("!"),DataIn[0],DataIn[1]]
    Delay_1 = Datain[0] * 100
    Delay_2 = Datain[1] * 100
    GoTo MainStart

    Regard Pesti

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Hallo,

    My Code is Working ,but :-) I dont have the full Brightness on all the light bulbs.

    Did some one know what I can change in my Code,
    I use now a 20 Mhz Osc.

    Thanks.

    Regard
    Pesti

Similar Threads

  1. Circuit Design Question
    By bradb in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 11th August 2009, 08:18
  2. Ideas on ir-code for dimmer
    By tirithen in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th February 2009, 23:22
  3. Short circuit portection circuit ?
    By iugmoh in forum Schematics
    Replies: 1
    Last Post: - 21st December 2008, 21:33
  4. Circuit reliability issues
    By hkpatrice in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd November 2007, 14:55
  5. Replies: 3
    Last Post: - 29th October 2006, 09:16

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