Suppose I want to drive a 0.5A load with my PIC . Somehow the PIC decedes to open a valve ie. Should I use relay or just a n amplifier? How much current can I get from PIC? ( small I guess).
D.
Currents of microcontrollers pins are in the small mA range (≈20mA and less), so to drive a load of more than that you can use bipolar or (mos)fet transistor rated above the load's current..
From the output pin of the pic.
Take a 4k7 resistor and feed this into the base of a darlington ( tip110) you can then drive a 500ma load. If the load is inductive protect the collector of the darlington with a diode.
U can also use a buffer(such as ULN2804) from your PIC output. The output of the buffer connects ur req. load. Pic can't drive a relay I think. If you want to use transister,its hfe should be greater than 25, to drive 0.5A load.