Week9: Arduino Introduction and DIY sensors.

During this week, we were introduced to Arduino. A program software and hardware that lets you program that lets you write some code and put it into a special type of plates, that will later put in function your programmed code. In the picture down below, you can see an Arduino plate.

Learning to use Arduino.

The first thing that we needed to do was to download a program named Arduino. This program lets you write the code you will later put into the Arduino plate. Once we were inside the program, we clicked on files, examples and then blink.

Once we were there, we wanted to change the pinMode by writing pinMode(13, OUTPUT); where before was pinMode(LED_BUILTIN, OUTPUT);and then click on verify. By doing those changes, now we were able to make the LED blink when we connected the Arduino to the current.

The circuitry settings were pretty basic, we just needed to connect the positive leg of the LED (anode) to pin 13 and the negative one (cathode) to the GND (ground). Down below there is a picture of the basic circuitry settings.

Afterwards, we wanted the LED to blink every minute. In order to do that we had to create a loop by writing void Loopand use the delay option, so we changed both of the digitalWrite lines passing from digitalWrite(LED_BUILTIN, HIGH/LOW); to digitalWrite(13 HIGH/LOW);. What we wanted to achieve with all those changes was that connecting the LED to the pin13, we could be able to turn on the LED when we connected it. We didnĀ“t had to change anything of the circuitry, but in this case the LED blinked with more frequency.

In order to create a more realistic scenario, we wanted to connect the LED to the Arduino through wires. In order to do that we went to board, port and there we chose COM3 Arduino_Genuino Uno. Then, in order to save the changes, we pressed the button upload. Here the circuitry was slightly different because we had to connect the LED and the wire to a breadboard. Then we had to connect one wire that went out of the 5V output to the positive and one connected to the GND to the negative.