Dimmer


Closed Thread
Results 1 to 40 of 68

Thread: Dimmer

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Can anyone tell me what I am doing wrong?
    You're using PM instead of MPASM to compile your code

    if you want to use PM, you must use the @ DEVICE directive instead.

    See the Faq about that. There's a whole thread about how to set config fuses in your code.
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Steve

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

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


    Did you find this post helpful? Yes | No

    Talking

    You're the MAN! Totally missed that one. Thanks!

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


    Did you find this post helpful? Yes | No

    Default Schematic Critique

    Hello - I am trying to build the Dimmer Circuit as described and was wondering if someone could critique the attached circuit diagram. I have built this and do not seem to be able to get it to work and if it is not my design then it must be my code (both of which I obtained here). Any comments will be appreciated. I am using part numbers, schematic and code that are described here: http://www.melabs.com/resources/samples.htm#submitted
    Thanks! Atom058

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


    Did you find this post helpful? Yes | No

    Default Oops!

    Here's the schematic....
    Attached Images Attached Images

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


    Did you find this post helpful? Yes | No

    Default

    %%^%^&*&!#@$! it's my silly mistake. I will have to update the whole thing soon. Use...
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1116&stc=1&d=116053407 7">

    You only have to move 1 wire...

    PCB mod... really easy
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1117&stc=1&d=116053452 8">
    SORRY SORRY SORRY SORRY SORRY SORRY SORRY SORRY SORRY SORRY
    Attached Images Attached Images  
    Last edited by mister_e; - 11th October 2006 at 05:08.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    Mister-E - No harm done! Thanks for the quick response! I will give it a try tonight and we'll see what happens.

    Atom058

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


    Did you find this post helpful? Yes | No

    Default PIC Issue

    I was trying to program a PIC12F675 to work with this dimmer design and I am obviously missing something. I copied the code from the Dimmer example and it was not working so I moved to a breadboard to do some testing. I can not even make an output on these PIC's go high! I know I am missing something but I can't imagine what it is! Here is the code - as simple as it is:

    @ DEVICE INTRC_OSC_NOCLKOUT & WDT_ON & MCLR_OFF & PWRT_ON & BOD_ON

    PAUSE 500
    CMCON=7 ' Disable analog comparator
    ANSEL=0 ' Disable analog converter

    TRISIO = %11111111
    TRISIO.0 = 0
    TRISIO.1 = 0
    TRISIO.2 = 0
    TRISIO.3 = 0
    TRISIO.4 = 0

    HIGH GPIO.0
    HIGH GPIO.1
    HIGH GPIO.2
    HIGH GPIO.3
    HIGH GPIO.4

    Start:
    GOTO Start

    END

    Now, correct me if I am wrong, but I should be able to measure 5V at each of the 5 outputs above. I get nothing. I have tried several PICs and get the same results. I've written hundreds of programs for different PICs and this one has beaten me. I know the solution is unbelieveabley simple, but GEEZ!

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