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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…