Driving a 180ma relay from PIC port


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Thanks.

    I need to stock up on a good general purpose FET so I'll grab some NDS7002.

    I would like to keep my relay from drawing through the regulator, so I'll breadboard something.

    As they say in Indiana....Cheers.

  2. #2
    Join Date
    Aug 2005
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    I have always used bd681 with a 1k on the base, supports upto 3 or 4 amps with a heatsink.
    Emitter to ground and load between + and collector. if driving a relay, then put a 1n4004 across the transistor
    Last edited by jamie_s; - 20th April 2007 at 08:01.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    I just poped-in the thread and I bet the problem in the first place was the reseting of the PIC. So as very good stated by Alain the circuit should have good decoupling on the 317 and the PIC. The coil of 180mA sure spikes hard!

    Every regulator need large capacitors on the in and out pins! Do not forget it!

    The transistors like the ones refered are enough to drive the relay. Also add to the list the BC337 (0.5A/45V)

    Ioannis

  4. #4
    Join Date
    Aug 2005
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    My supply circuits are generally as shown in the dodgey mspaint attachment.

    This only powers the pic, any other devices ie relays etc are powered from the source or seperate regulators. I use this circuit in automotive projects without issue.
    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

    100 uF at the output might be high and loose some fast spikes, i would add 10uF tantalum on input and output as well. At the input you can use higher than 100uF.

    Without having the whole thing here, it's hard to find the best suggestion. Many nice tips have already been said.
    Steve

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

  6. #6
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile ?

    Hi Michael,
    How did the new transistors work out?
    -Adam-

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. destroying my last pic? driving a miniature motor
    By Michael Wakileh in forum Schematics
    Replies: 20
    Last Post: - 28th August 2007, 09:38
  4. serial port control relay
    By win_832001 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd June 2006, 23:56
  5. Pic to Pic communication?
    By Rob Martin in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th April 2004, 19:41

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