Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

hello friends, would u help me about the programming for PIC microcontroller

Status
Not open for further replies.

bikash123

Member level 2
Joined
Feb 19, 2012
Messages
48
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Tezpur University
Activity points
1,672
hello friends, would u help me about the programming for PIC microcontroller in case of 5 pin dc relay.
 

Use an NPN transistor to drive the relay. Send a logic 1 to the base of the transistor to turn on the transistor and hence drive the relay. Send a logic 0 to the base of the transistor to turn off the transistor. Use a current limiting resistor between the transistor base and the microcontroller pin. Make sure you configure that pin as an output by writing 0 to the corresponding TRIS bit. Do remember to connect a diode across the relay.

You have discussed this before here as well: https://www.edaboard.com/threads/253786/

What problems do you currently face?

Hope this helps.
Tahmid.
 

    V

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top