We saw the fritzing software that helps us to design a circuit using the software, in a very nice organized way, now let's play with the actual harware that we have for this first phase. So we have the breadboard below and all kind of components connected over here, six leds, two pushbuttons and everything is connected to the arduino.
Right now, the arduino is connected using a usb to my computer so i can download software sketch to this board and in the same time supply power to this board, and i can see the small power led "on" over here meaning the board is getting power and every element is connected as we saw in the circuit design with the relevant pin number just small remark, maybe you notice that the 6 leds are not actually connected in nice order over here and the reason for that is for utilizing only digital pins that support pwm.
That's like with the small ~ that you can see close to the pin number and we will discuss about it very soon. Now let's play with thr circuit, so the first thing that i am doing is uploading the software. So i am going into the arduino ide software, opening the sketch i created for this phase and upload that to the board we will see in a very fast manner the rx and tx leds and that's all it is already uploaded to the board.
Now let's test it. If i will press on this button, that's the test button i am expecting to see all leds to turn be on for one second. Click on that and getting one second for the all leds, this is like a testing button, and the second button is for getting some nice wave of animation, going back and forward just to show you someting, if i will press on that right now and in the same time and i will go an click "reset" the arduino of course will start from scratch and will run the program from the beginning that's all, that is for step number one we learned to use digital input and output
That output is being used for leds that are connected with resistors that are being used to limit the current. In addition, we connected two push buttons as digital input and we are triggering some event based on that action. Now let's review the sketch itself, to understand how exactly we achieved that scenario. Please watch this practical demonstration of this chapter, to understand it better.
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