Monday, January 21, 2019

AC Bulb Lights on and Lights Off in Arduino

A simple Arduino application that I wrote and construct that will allow us to turn on and off our alternating current bulb using Arduino UNO and 5 volts Relay.  I hope you will find my work useful. Thank you.

I am currently accepting programming work, it projects, school and application development.

programming projects, thesis and capstone projects, IT consulting.

work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com







                                                                 Sample Program Output


Program Listing

/*  AC Bulb Lights on and Lights Off in Arduino
 *   Written By Mr. Jake R. Pomperada
 *   January 20, 2019  Sunday, Bacolod City, Negros Occidental Philippines
 *   8:54 AM
 */

#define RELAY1  7                        

void setup()

{    


Serial.begin(9600);
  pinMode(RELAY1, OUTPUT);       

}

  void loop()

{

   digitalWrite(RELAY1,0);           // Turns ON Relays 1
   Serial.println("Light ON");
   delay(2000);                     // Wait 2 seconds

   digitalWrite(RELAY1,1);          // Turns Relay Off
   Serial.println("Light OFF");
   delay(2000);
   
}



No comments:

Post a Comment