Hi Gus, > According to http://www.meder.com/dip-relay_uk0.html > this relay uses a 12VDC coil [ 12 ma ]. This means you will want > drive the relay using a buffer between the PIC and the relay. > You have many, many choices. Here are two. > #1 > You can use a 2N7000 FET to buffer the PIC from the relay. > Drive the gate of the FET from a pin from PORTA. Use the FET to > sink current from the relay coil. > #2 > Use a 2N3904 transistor to buffer the PIC from the relay. > Drive the base of the 3904 using a 10K resistor. Tie the emitter to > ground and use the collector to sink current from the relay. > Some choices that will influence your design...... > 1) How fast must the relay activate and deactivate ? > 2) What is the relay controlling ? [ voltage , current and > complex impedance ? ] > 3) Where is power for the relay coil derived from ? I want to switch on/off and change the rotation direction of the electric motor PC-130SF-09400T-NR with this relay. http://www.argus.lv/product_info.php?cPath=162_1990&products_id=39119&osCsid=c78e3f3b187ee6f4afaaf0c6a6fe0f25 So the PIC16F877A should control two electric motors with two relay this way. > I can send you a schematic if you wish one. > Gus Please, send me a schematic for both #1 and #2, or which is better solution! And thanks! -- Regards, Paul Chany http://csanyi-pal.info -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist