Blog: Physical Computing

ITPG-GT 2301-005

Tutor: Tom

WEEK 2

Part I: 

Setting up the Arduino.

Connecting Arduino, first coding

 

A pretty straight forward circuit just to test if all the things are connected in the right way. I followed the instructions attempting to make the LED to light up every second.

I used the Arduino Nano 33T, and since there's no mark (excepts for Ground) on its surface sometimes I found it difficult to determine which output to connect.

The coding part is alright for now, but I can see that it could become more difficult if I want to achieve any more complicated effects.

With a switch, more possibilities

 

With connecting with the different outputs in the Arduino, I tried to build the following circuit. If everything goes well, then when I push the button, the upper LED will put out, and the lower LED will light up.

Well yeah it does have the desired effect... However, I wonder why the lower LED has less brightness? I used the same resistor and the same LED. 

I think it's either because of the code which separates the output, or I've connected to the wrong right side connections of the Arduino. Or, one of the LEDs gets damaged from last week's lab.

With a potentiometer, adjust the lightness

 

In this practice, it's a good opportunity to understand how the potentiometer works, and how some of the elements of the coding works, in this case.

1.jpg

T