Arduino project series with you today … … we continue. Using Arduino and C # communication … … C # Form Application on a … … practice. Within this application … … the Led in Ardunio can be switched on or off … … that we can bring. Let me show you the materials I use before the application proceeds. I bought the materials I used at “robotistan.com”. First of all, one Arduino Uno … … motherboard, one circuit board, Two yellow and black jumper cables. A cable for data communication with the computer. One red LED bulb. Finally, One Resistance. That’s all we’re gonna use. Now… … to the circuit diagram. Yeah, guys, we’re going to install the circuit board now. I got the red LED bulb in the circuit board … … in an empty space. Resistance is the one I’ve placed … … of LED bulb … right leg … . The other end is a free space. . Black wire, that the resistance of the … … in an empty space at the top. The other end of the black cable is connected to the “GND” port of Arduino. The yellow wire, resistance, leaving a space below. If the remaining jumper end, Let’s put it in port “8” in Arduino. Our circuit board … … we have completed the installation. Now, Arduino’s IDE is designed to make the necessary actions … … on the coding screen. “void setup” as a priority … … port numbers. Specify the port number of our yellow jumper cable. Then I will make the serial connection … … enter the port number. Now, what have we done so far? – Port numbers. – In the “void loop” section In the condition, the serial connection is active … … if the light is on With “digital.write” to port 8 I’m printing “LED Bulb Burned”. In the case of “else if”, if the light is off … … turn the light to the “LOW” position. I’m printing “LED Bulb Off” on the screen. Let’s import the code into Arduino. We’re compiling our project. Compilation complete. The code in our project is Arduino … … motherboard. Now, to make the necessary interface … … to the C # screen. We opened the Form Application in Visual Studio. What is required for us in form application, we need one combobox. To check if the Arduino is connected. Then I need two buttons. I need a label. Label is … … to check if the bulb is on. I’m changing the name “button1”. I changed it to ON. We change the name of “button2” to “OFF”. I’m bringing them both to the same size. Let’s move on to the code section. In the code section, the serial connection is … … on behalf of We need to import the Serial Port class. Then when “Form1” is first loaded I’m creating an array. Let’s explain the codes. To view serial ports as priority … … I’ve defined an array. I then called “foreach” these serial ports … … into the combobox. When we click “button1”, let’s show the events to be done. Because the serial port failed … … I’ve identified a new object. When SerialPort (1) “1” to the serial port. If loop with “1” in Arduino Activated. So we print “LED On” in “Label”. We make it non-clickable. Operations to be performed when “button2” is clicked. When we click “button2” we do the above operations. I’m copying the code above again. This time in “button2” that. … serial port is set to “0”. The else if part of Arduino is running. This time inside the Label LED … … Off printing. If the serial port is open when closing the form, I say close. Yeah, I hooked Arduino to the computer, I also ran our program. I select “COM12” in the Combobox. Now when you turn it to the getir ON amp position, the bulb should light. Press the “ON” button and the bulb is lit. I’m turning it off. I can’t click on the “ON” position. Enabled was false. “OFF” is switched on “ON” is switched off. When it is set to “OFF” Enabled is changing this time. Using Arduino and C # … … we made an application today. See you in our next class.