Pic reseting when switching mains current with relay


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    lsteele, I notice that your relays are powered by 5 volts. Is the source of the 5 volt supply the same as the PIC? If so I would have a separate supply for the relay source and a separate supply for the PIC. From what I have seen in the past you are working with electromechanical devices that have magnetic coupling and when you are opering the contacts the field is being coupled to the 5 volt supply the micro it is being powered from. If this supply for the relay source was separate and the ground paths are correct I see no problem with the operation of the relays switching the mains.

    Dave Purola,
    N8NTA

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


    Did you find this post helpful? Yes | No

    Default

    I meant to say use BOD_OFF.

    Most likely!

    -----------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Question

    hello ,
    I'm having a similar problem.
    I have made a 7seg LED clock (PIC16F628 @ 4Mhz).
    The clock resets when i switch on the tube light in my room.
    The clock and the tube a not linked to one another in any way.
    I was using a wall adapter before to power it, but even after i replaced it with a 9 volt battery, the clock still resets when i switch the tube on.
    What could be the reason for this ? ? ?

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


    Did you find this post helpful? Yes | No

    Default

    without schematic and code it's hard to say.
    Steve

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

  5. #5
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Default

    This is the schematic . . .
    http://www.josepino.com/pic_projects...clock_4050.gif

    I have used transistors instead of the 4050 IC's .
    I have used PIC16F84A and not PIC16F628.
    I dont think its the code error cause if i keep the clock in another room, it doesn't reset.
    Last edited by shahidali55; - 11th March 2007 at 07:53.

  6. #6
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Not sure if it has any bearing on this but I built a sequential light display that flashed mains light bulbs (240v) and didn't suffer any issues of the PIC resetting. I used solid state relays for the mains switching which are opto isolated from the mains. The only issue is that they aren't as cheap as traditional relays.

    Maybe you could use an opto isolator and thyristro / triac driver to do the same thing only a bit cheaper. Something like


    (ommit the 741 - as it wouldn't be needed for your circuit)

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


    Did you find this post helpful? Yes | No

    Default

    shahidali55

    Any capacitor close to your PIC and close to your 7 Segment display?

    Where are the current limiting resistor for the display.

    3.6-5.5V is that right?

    How about your configuration fuse?

    How the final 'gizmo' looks?

    Sure there's something that pickup noise. Is the software take care of this poor unconnected PIN 4?

    malc-c

    I think you misread something or... could be me too
    Steve

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

Similar Threads

  1. Reducing PIC current to as low as possible...
    By FromTheCockpit in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th November 2009, 04:28
  2. Replies: 24
    Last Post: - 7th November 2008, 04:41
  3. Serial Relays
    By tazntex in forum General
    Replies: 3
    Last Post: - 17th May 2007, 17:42
  4. Detecting mains current
    By lsteele in forum Schematics
    Replies: 3
    Last Post: - 13th January 2007, 14:48
  5. High current switching output
    By Tissy in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th September 2005, 14:06

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