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.

On/Off Switching light using PICs

Status
Not open for further replies.

mouzid

Full Member level 5
Full Member level 5
Joined
Jun 22, 2007
Messages
248
Helped
9
Reputation
18
Reaction score
0
Trophy points
1,296
Visit site
Activity points
2,876
Hi Everyone,
Can anyone explaning or provide a schematics how to Switch On/Off a 220 V 50 Hz 75 W bulb by a PIC ?
 

mouzid said:
Hi Everyone,
Can anyone explaning or provide a schematics how to Switch On/Off a 220 V 50 Hz 75 W bulb by a PIC ?

There are two ways to do this :

1 - you can connect triac to micro then its not recommended

2- you can connect opto triac to the micro then the output for the opto connected to triac by this you osilate the main power 220v to the micro
 

Thank you hassan1980,
Can you through more light on that by specifying wich are the sweeted triac and opto ?
Is there any shematics.
 

mouzid said:
Thank you hassan1980,
Can you through more light on that by specifying wich are the sweeted triac and opto ?
Is there any shematics.

Actualy, I prefer to use Optocoupler triac and after it use driver triac for the load.

dearfriend, for the schematic you can do by yourself it is too easy to draw.

by the way, what's micro you use?
 

Well to controll the switching of light its quite easy to do...you just have to know the number of your lights as the number of your light will determine the size of your pic...well the very simple one would be to use PIC 16F84 using it you can get 13 I/O Pins ...well as you need to drive high voltage 220 V device so you'll have to use a relay, and the relay has to be controlled by the PIC...
well lets get doing, as you need the schematic...well just figure it out from below...
Connect the Output Pin of PIC to the Base of some general purpose NPN Transistor, the Collect should have a VCC and the Emitter of that transistor should got to one end of the Coil of the Relay, the other end of the relays coil will be grounded...the common of the relay will be connected to main 220V Power, the normally Open Connection of you Relay will be connected to your Light or Loads one terminal and the other terminal will be in the 2 terminal of the main power...

Hoping you would be figuring it out...else let me know and i'll make the schemagtic and upload it

Best Regards
 

jamshid.dastur said:
Well to controll the switching of light its quite easy to do...you just have to know the number of your lights as the number of your light will determine the size of your pic...well the very simple one would be to use PIC 16F84 using it you can get 13 I/O Pins ...well as you need to drive high voltage 220 V device so you'll have to use a relay, and the relay has to be controlled by the PIC...
well lets get doing, as you need the schematic...well just figure it out from below...
Connect the Output Pin of PIC to the Base of some general purpose NPN Transistor, the Collect should have a VCC and the Emitter of that transistor should got to one end of the Coil of the Relay, the other end of the relays coil will be grounded...the common of the relay will be connected to main 220V Power, the normally Open Connection of you Relay will be connected to your Light or Loads one terminal and the other terminal will be in the 2 terminal of the main power...

Hoping you would be figuring it out...else let me know and i'll make the schemagtic and upload it

Best Regards

I respect your opinion, But the using of relays to control 220 Lamps is limited, imagine he want to dim up and dim down the ligh how can do this using relays?
 

Oh yeah thats true...that you can't control the current in order to control the brightness of the light using just a relay...
in order to do so you'll have to control the control and for that you'll have to use a voltage controlled voltage/current source, but then the control voltage from the pic should be varied with time thus the use of an analog output will be required...
 

Hi all,
Nice techniques.
@jamshid.dastur, are there relays (Drived by 5 volt ?) avalable on market and can ensure this task ?

@ I liked the technique of optocoupler and triac but why exactly triac ?
 

Hi master_picengineer,
Yes you can get a relay being driven by only 5 Volts, but if you don't get one then you use the alternative 12 V Relay and drive it using a NPN as mentioned. Yes its for sure that if will Turn the Light ON/OFF hence the task is ensured.


As the use of TRIAC is concerned well yes a TRIAC can also be used to even reduce the circuit by just connecting the gate of the triac to the output pin of the PIC but the only disadvantage is that as the TRIAC is a 2 oppositely connected Diodes so it has a voltage drop (0.7 ideally) accross it during forward biasing which causes a little loss of sinusoidal wave shape, but its almost negligable so you can also use a TRIAC as an alternative to Relay.

Best Regards
 

Thanks jamshid.dastur,
I think that triac is better since I don't apreciate electro-mechanical.
Detail on this technique is enclosed in the file.
Cheers,
Master_PicEngineer[/GVideo]\][/url]
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top