Line 1: |
Line 1: |
| ==Understanding Arduino Boards== | | ==Understanding Arduino Boards== |
| | | |
− | ====What is a micro-controller?====
| + | ===What is a Micro-controller?=== |
| A micro-controller is a compact integrated circuit that receives input from the environment, processes the input and can produce an output. It receives input from its I/O pins and processes the signals received using the CPU onboard the chip. Micro-controllers are usually embedded in larger systems and are utilized in many areas of life including vehicles, medical devices, home appliances, and more. | | A micro-controller is a compact integrated circuit that receives input from the environment, processes the input and can produce an output. It receives input from its I/O pins and processes the signals received using the CPU onboard the chip. Micro-controllers are usually embedded in larger systems and are utilized in many areas of life including vehicles, medical devices, home appliances, and more. |
| | | |
Line 77: |
Line 77: |
| | | |
| ===Blink program:=== | | ===Blink program:=== |
− | The Arduino IDE provides creators with a plethora of written programs that are fully ready to run on an arduino board. They are located in the Files>Examples folder. Amongst the most basic is the "Blink" program, which can be used to not only get to know the basic features in the software and the hardware, but are also a great way to test the connectivity between the arduino board and the user's computer. This program is located in Files>Examples>01.Basics>Blink. | + | The Arduino IDE provides creators with a plethora of written programs that are fully ready to run on an Arduino board. They are located in the Files>Examples folder. Amongst the most basic is the "Blink" program, which can be used to not only get to know the basic features in the software and the hardware, but are also a great way to test the connectivity between the Arduino board and the user's computer. This program is located in Files>Examples>01.Basics>Blink. |
| | | |
| The following provides an overview of the different functions used in this program: | | The following provides an overview of the different functions used in this program: |
Line 105: |
Line 105: |
| When using components you will often have to initialize the pin they are connected to as either an input or output! The syntax for this will vary depending on the component and what pin type it is connected to. | | When using components you will often have to initialize the pin they are connected to as either an input or output! The syntax for this will vary depending on the component and what pin type it is connected to. |
| | | |
− | ==== Analog Input/Output ==== | + | ==== Analog Input/output ==== |
| When trying to manipulate data from an analog pin, the following lines of code are used to read data from it: | | When trying to manipulate data from an analog pin, the following lines of code are used to read data from it: |
| int ''variable'' = analogRead(''insert pin number''); //here a variable is being defined to hold the value read from the pin | | int ''variable'' = analogRead(''insert pin number''); //here a variable is being defined to hold the value read from the pin |
Line 111: |
Line 111: |
| int ''variable'' = analogWrite(''insert pin number''); //here a variable is being defined to hold the value read from the pin | | int ''variable'' = analogWrite(''insert pin number''); //here a variable is being defined to hold the value read from the pin |
| | | |
− | ==== Digital Input/Output ==== | + | ==== Digital Input/output ==== |
| When wanting to use a digital pin you will need to declare as either an input or output in the Void Setup () as follows: | | When wanting to use a digital pin you will need to declare as either an input or output in the Void Setup () as follows: |
| pinMode(LED1, OUTPUT); //For example if you had a pin called LED1 | | pinMode(LED1, OUTPUT); //For example if you had a pin called LED1 |
Line 148: |
Line 148: |
| Serial.println("INSERT PHRASE"); //for outputting each value on a new line | | Serial.println("INSERT PHRASE"); //for outputting each value on a new line |
| | | |
− | === Introduction Libraries ===
| + | == Introduction Libraries == |
| | | |
| ==== What is a library? ==== | | ==== What is a library? ==== |