Hello, I need a little bit of help here
I would like to use the 16f876A or similar 28-pin micro to switch on/of some relays.
If the relays have a 5V coil, can I switch them on by directly connecting the microcontroller pin to the coil, or do I need a transistor switch?
I prefer driving the relay directly but I do not know how much current can the micro provide on each pin.
I agree with hussain_kiet to use a transistor such as a BSP130 D-MOS logic level FET to drive the relay. Also if the relay is switching high currents or voltages an opto isolator before the replay is a good idea.