Let’s write some lines of code, and please don’t worry if you don’t understand them 100%. As we are going to cover that much more deeply in the next section. What i would like us to do is to write a program that will turn the led l on for 1 second. And then off for 3 second, very simple
Read More: Everything You Need To Know About Arduino
Now if you already have the hardware equipment than please try that by yourself, as in later stage we will build much more complicated system. The good news is that we can find in the examples such almost similar sketch
Just go to “file” menu, “examples”, “basics” and select “blink”. And let me bring that to the screen, now we are getting some sketch being developed by the arduino community. First few lines are comments or remarks used to describe the goal of that sketch in high level going below. We have the "setup" function where we set pin 13 as output for accessing the relevant led.
Now the main program body is inside the loop function. First line write constant 5v signal to pin 13 and then wait for 1 second. Then send again to the same pin 0v and wait again for 1 second. Now we would like to change that to 3 seconds now before uploading the software, i will click on "verify" to verify that everthing is ok
Read More: Everything You Need To Know About Arduino
We just passed the first milestone and now we know how to upload a program to the Arduino that is actually doing something, still we need better understanding about the programming syntax so we will be able to develop much more complicated sketches. And this is something we will cover in the next section.
Dear visitor. Click on "Follow" button from right side above and sign in with your Gmail account. Write unlimited comments on every post. 100% Free