1. ATMEGA328P MICROCONTROLLER
FUNCTION: ATMEGA328P is a microcontroller from the AVR family; it is an 8-bit device, which means that its data-bus architecture and internal registers are designed to handle 8 parallel data signals.
It has 3 types of memory:
• FLASH MEMORY: It is used for storing application, which explains why you don’t need to upload your application every time you unplug Arduino from its power source.
• SRAM MEMORY: Storing variables used by the application while it’s running.
• EEPROM MEMORY: It is used to store data that must be available even after the board is powered down and then powered up again.
VOLTAGE/CURRENT RANGE:
• ATMEGA 328P microcontroller accepts supply voltages …show more content…
Wiring diagram
The potentiometer terminals are wired so that its middle pin( green) is connected to analog input 0 on the Arduino Uno board, and its two outer pins( orange and blue) are connected to power +5V and ground.
The servo motors have 3-wires: yellow (SIGNAL), blue (POWER) and red (GROUND).
The signal pin wire (yellow) is connected to a digital pin 9 on the digital output, the power wire (blue) is connected to the 5V pin on Arduino board and the ground wire (red) is connected a ground pin on the Arduino Uno board.
WHY HAVE YOU CONNECTED IT TO A DIGITAL/ANALOGUE PIN?
1. The 10 kΩ potentiometer’s centre pin is connected to the analog input pin.
When the shaft of the potentiometer is rotate in a circular direction, the amount of resistance changes on either side of the wiper which is attached to the signal pin of the potentiometer. This tends to changes of the relative closeness of the pin to 5volts and ground, and it gives different analog input. When the potentiometer’s shaft is rotated in circular direction up to 360deg, we read 0 as there is supply of 0volts to the pin. When the shaft is rotated all the way in the other circular direction up to 360deg, we read 1023 as there is supply of 5volts to the