EEE425-PROGRAMMING LANGUAGe Mehmet ali yılmaz 2011514066 C# CONTROLLED HOME EEE425-PROGRAMMING LANGUAGe Mehmet ali yılmaz 2011514066
MY AIM OF THAT PROJECT In this Project, I wanted to show that we can easily control the electronical devices just click a button in our home over C# and Arduino commnuication.
EQUIPMENTS Arduino Uno Board, Leds, LDR, DHT11 Humidity and temperature sensor, Servo Motor, Jumper wires, Breadboard.
SERIAL COMMUNICATION This is the communication (data exchange) between the computer and the device that is connected to a serial port of the computer (most used are USB and RS232). Only one bit can send at a time. Baud Rate is an important factor. The messages are of 10 bits.(or 11 with parity). The ways are Simplex, Half Duplex, Full Duplex.
THE MEANING OF MY CODES C# : FORM1- KEY SCREEN -Form1 is the Key screen.
THE MEANING OF MY CODES C# : FORM2- CONTROL PANEL I also changed the forecolors, background images, maximum, minimum sizes, form types, locations of forms. And I also changed the specifications of the buttons.
THE MEANING OF MY CODES C# : FORM2- CONTROL PANEL
THE MEANING OF MY CODES C# : CONTROL PANEL -Serial ports declarations, -And some functions.
THE MEANING OF MY CODES C#: BUTTON VISIBILITY AT THE START All buttons are invisible at first. Tetbox1 can only be read.
THE MEANING OF MY CODES ARDUINO SECTION 1 : Declarations -Assignments
THE MEANING OF MY CODES ARDUINO : LED CONTROLS C# : BUTTON CONTROLS
THE MEANING OF MY CODES ARDUINO : SERVO DOOR CONTROL C# : BUTTON CONTROLS
THE MEANING OF MY CODES ARDUINO : TAKING THE SENSORS VALUES C#: READING THE SENSORS VALUES
THE MEANING OF MY CODES C#: ROOM CHOSEN -While the buttons are already standing clicked For preventing the complexity.
THE MEANING OF MY CODES C# : TERMINATING THE FORM This.Close(); closes only that form but; Application.Exit(); closes all the forms that are open
REFERANCES : https://www.arduino.cc/ https://arduino-info.wikispaces.com/DHT11-Humidity- TempSensor https://msdn.microsoft.com/tr- tr/library/system.io.ports.serialport(v=vs.110).aspx My own informations
THANKS FOR ATTENTION ! ANY QUESTION ?