Digital Input and output with an arduino

This week I did the lab, digital input and output, from our physical computing class.

I used the Nano 33 IoT, which is one of the Arduino devices. This Nano allows me to program to control what’s on my breadboard.

In the Arduino program downloaded on the Arduino web, you can download the specific one you are using in the board managers. For me, it’s Nano 33 IoT, and there are a lot more Arduino devices out there. When I connected my Nano to my computer, it appeared in the port.

Under the void setup, I typed those pin that I am using on the breadboard, which are the red light, the yellow light and the push button. And then I used the conditional statement to set which light is going to emit when I push the push button.

83EBD528-1C22-42CD-BE03-DFABDD739860.jpeg

And then when I uploaded the code to Nano, the red light didn’t emit, although when I pushed the button the yellow light worked just fine.

Then I tried to use the multimeter to check the circuit and found out the ohms of the resistor I used for the red light is too high.

IMG_7865.MP4

After I changed the resistor for the red light, it immediately became so bright.

IMG_7883.MOV

I spent lot of time on reading all the material from week 1, since I missed the first class. I need to catch up to do the rest labs.