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.

how to make a switch for 230v device using pic ic

Status
Not open for further replies.

Nipuna56

Advanced Member level 4
Full Member level 1
Joined
Jul 11, 2012
Messages
119
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
1,993
i want to control 230v water pump using 16f887 pic how can i do that?
 

you could drive a suitable relay direct from a PIC16 digital IO line
however, it is recommended to drive a relay via an optoisolator
 

I hope you need to on/off 230V AC pump;
Option;
1. Use a motor-contactor to on/off the AC motor;
Use a triac (eg. BT139) to switch contactor;
Use a opto-isolater triac-driver (eg. MOC3022) to switch the triac;
PIC can on/off the triac driver opto-isolarot

2. Use a motor-contactor to on/off the AC motor;
Use a DC relay (5V) that can switch AC (1A load capacity is enough) to on/off the motor contactor;
Use a transistor to on/off the DC relay;
PIC can bias the transistor;
 

hi ,
you have several options
you can use solid state releys , or electromagnetic releys like in the attached pictures
 

Attachments

  • moc.gif
    moc.gif
    3.6 KB · Views: 453
  • relay.jpg
    relay.jpg
    7.4 KB · Views: 264
is there a special relay for 5v ,230v ?
or can all relays perform this task?
 
Last edited:

yes there are many electromagnetic relays having the coil built for 5 Vdc and contacts suporting higher voltages and a few amps .
Not all relays are used for the same task and different relays can have different clamp voltages .
Usually they are built with coils for 5 , 12, 24 V in dc and 220, 380 V in ac . Rallays have several normally closed and/or normally open contacts
You can use electromagnetic relays to command power circuits, to multiply contacts or to detect treshold voltages.
Advantages : the command circuit (as your PIC mcu) is electrically separated from the power circuit (as your pump).
Disadvantages : they take a little power from the command circuit (you feel that when you are runing from baterys), contacts get used after a time
About using them as contact multiplyers: Suppose you have a number of consumers powered from diferent electrical circuits (ac power line, battery's, ....) , and want to start and stop them with a single button, you can use an electromagnetic relay that has sufficient contacts for each of your consumer.
Using electromagnetic rellay's for detecting treshold voltages: for exemple if you put a 12 V rellay in a circuit, when the voltage in the circuit is below ~7V the rellay will not clamp. Abowe ~7v the rellay will clamp and it's normally closed contacts will open and it's normally open contacts will close
 
Basic requirement is, that 5V relay should capable to pass the Current, that your water-pump need (take care on starting current)
 
Use decent relay dont use small relays if you want all to be safe, and long life of circuit. There is relays on 5V, 6V, 12V, 24V,... Thise on 5V are often smaller, and for weaker currents.

DS2E-S-DC5V.jpg


12v-10a-relay.jpg



Examples of conections :
08.gif solenoid_driver.gif
 
You need to make sure that the high voltage side of the relay can handle the load of the water pump as the current will pass to the water pump through the relay.

You need to make sure the low voltage side of the relay - the coil - draws an amount of current that does not damage the driver. Remember to use a freewheeling diode across the coil. The voltage rating has been talked of above.

Since the output current of the PIC is limited (and output voltage decreases with increasing current), you should consider using a separate driver for the relay. A simple NPN transistor can do the job. Make sure the NPN transistor has a higher current rating than the maximum current the relay coil will draw.

Hope this helps.
Tahmid.
 
Thank you very much friends
 

Hello!

An alternative to the relay: a phototriac. Since it's a phototriac, its de facto optoisolated.
One example: sharp's S2 16S02 (16 amperes). 2 pins are for led A and K, and the other pins
are for AC switch.

Dora.
 

cir.png

Is this circuit correct?
please help me
 

Pay attention on maximum allowed holding current of optocoupler and relay current needs.

images
**broken link removed**
 
Last edited:

is my circuit wrong?

MOC3041 is an opto-triac, not an optocoupler (with an NPN transistor).
Plus, if you're using common ground for both the input LED and the transistor, you don't need to use opto-coupler, since you're just not making use of isolation - what it was meant to be used for.
Plus, the opto-coupler might not be able to handle the current.

Just use one of the circuits posted in post#13.

Hope this helps.
Tahmid.
 

i want to control 230v using pic
 

Last edited:

sorry friend can u send circuit diagram that is a priceless help
 

What is L1 and what is the use of Varistor?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top