Inputs
Ground pins (GND)
Measures and sets voltage. Basically voltage is a difference of potential between 2 points.
Here you take the ground and another point so if all your components are connected to the
same ground. All their voltages can be compared and their value made relevant.
• 3 PINS
• All grounds should be connected, and all components linked to the ground.
Power pins
1. You can either power the arduino from the outside: 2 ports and Vin(7V-12V)
2. Power a component from the arduino: 3.3V or 5V
Analog Pins
Reads an analog value from a sensor and converts it into something your arduino can read.
Outputs
Digital pins
Used to read data from components named sensors, and write data to other components
named actuators. Ex, you can read the state of a button.
● 14 Digital pins
● 0-13
● Operate between 0 and 5 volts
● Only has two states: LOW or HIGH
PWM(Pulse width modulation)
Way to get a specific voltage like 4,4V with only high and low states. Creates a pulse running
at a given frequency. Then something will tell it what percentage of pulses are in the high or
low state which then produces an average voltage output. At 50% duty cycle(50% of time
high and 50% Low), the output voltage would be about 2.5volts. Ex, you can use the analog
write function to modify the brightness of an LED.
● Only pins with a tilde next to their number
● Used for actuators that require a fine voltage tuning, and are not only switched on or
off
● Only used in OUTPUT mode
Interrupt pins
An interrupt alerts the processor to a high-priority condition requiring the interruption of the
current code the processor is executing. It's like a push notification. Arduino reads your code
line by line so we use these pins to alert a specific function to be immediately triggered. Ex,
so instead of having to continuously read a buttons state, you can use this function
● Only pins 2 & 3
● Buttons are usually attached to these pins