Electronics Lab 1: Part 1

Electronics Lab 1: Part 1

So, as mentioned in previous posts, I switched from Artificial Intelligence to Electronics and Interfacing. As we go through the labs, I'm going to post the code/photos of how I achieved the objectives so that I can look back and see what I've done in the future.

I think it's also positive to see the progression of knowledge in the subject.

All of the lab requirements/code will be posted at https://github.com/closebracket/ElectronicsLabs, and I'll make a better ReadMe with links to resources for electronics etc.

Anywho! Away we go with Lab 1, Part 1 - Little bit late, because we're a few weeks into the semester, but I guess that means people should (hopefully) be wayyyy past this point by now.

Lab 1: Part 1 requires that we connect up a basic circuit to make an LED flash on and off. We'll require the following resources:

LEDs, resistor, arduino, breadboard and cables.

We'll need to connect the output to the right hand side of the arduino and use the ground, also on the righthand side of the arduino. Something like this:

13 is a digital output can be thought of as the 'entrance' to the circuit. This means the arduino sends signals based on the code written to 'power' whatever it is attached too. In this example, it's connected to an LED so the signal might be 'on, on, on, off, on, on, on' or '1110111'.

GND can be thought of as the 'exit' to the circuit. Since signals were sent from 13 to make the voltage HIGH (to turn the LED on), GND supplies a way to zero out the voltage when the signal is LOW.

Here's how the connection should look when connecting to the bread board. The left hand side cable is the power cable, the right hand side cable is the ground. (Note to self: use different colour cables in future, doh).

The complete circuit powered on via battery. The code is avaliable via the repository.