I'm an Electronics and Communications Engineer graduate, but I never had given the chance to use my graduate degree in my job because I chose the other career path, which is the Information Technology. That's why I mostly forgot about electronics.
Arduino is the best way to learn electronics and programming. Learning Arduino is simple and fun, and I'm now more interested to learn Electronics than before. Even if you have zero knowledge in electronics, you may still learn Arduino.
Today, we will explore on how to configure and test the Arduino to work. We are going to use the Blink example provided in the Arduino Web Editor.
First, we need some materials for this exercise. We need the following items and the purpose of these items:
1. USB cable for Arduino (typically used for printer cable). To connect the Arduino to your desktop machine.
2. Breadboard - Use to hold and test the electronic components/parts.
3. Small wires - For connection between power source and the components.
4. Arduino Uno or other Arduino Compatible - Microcontroller board that will accept a program coming from our desktop machine.
5. Connecting wires - Use for the connection between Arduino board and breadboard.
6. Resistor (220 ohms value) - Use to prevent LED to be busted.
7. LED - To produce light.
See below for the actual components to be used.
Procedure 5. Upload the Blink Code Example.
To determine if we could successfully display a blinking built-in LED in Arduino board, let us use the Blink sketch code example. On the right panel, click the Examples -> Built In tab -> Blink item. Once done, the code will automatically load to the Web Editor. See the figure below for this example.
Click the upload button (with the right-arrow icon) to upload the blink code to the Arduino board.
Note: Make sure that your Arduino board is connected to your desktop machine and the configuration in the web editor is setup properly to the Arduino board and the port used by your Arduino.
Procedure 6. Use External LED component for Blink Code Example
Connect all the wirings and LED component as shown below. Make sure you properly connect all the wiring. LED has polarity so make sure you do the right connection. The ground pin of the Arduino should be connected directly to the short leg of LED (negative side). The Pin 13 of Arduino should be connected to the 220 ohm resistor, in which the other side of resistor is connected to the long leg of LED (positive side).
Congrats! That's the start of our adventure and journey to Arduino world. We will be having more exploration, discovery, discussions, lessons and examples to our future articles.