Control 230V Devices Using Micro-Controller MSP430
Micro Controller Used :- MSP430G2553
Programming IDE :- ENERGIA
Programmer :-Launchpad
Components Used :
LM317 - Linear Voltage Regulator
Micro-controller - MSP430G2553
Resistors -
R1-470ohm
R2-1k
R3-47k
R4-1K
Relay - 12V
Transistor-BC 548
12v Power Source
Micro-controller circuit to control 230V devices |
Here is a Micro-controller simple circuit which can control our home appliance using a relay circuit .To control more devices more relay units can be added to the other GPIO's .Transistor is used to switch the relay according to the input from the Controller.Power the device using a 12v source . the regulator LM317 will regulate the 12V input to Controller operational voltage .Given below an example program to light the device (ex:230v CFL ) every 5 minutes.Connect the launchpad and burn the below program to controller.
Example Program
void setup() {
pinMode(2, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(2, HIGH); // turn the LED on (HIGH is the voltage level)
delay(300000); // wait for 5 minte
digitalWrite(2, LOW); // turn the LED off by making the voltage LOW
delay(300000); // wait for 5 minte
}
0 comments:
Post a Comment