Arduino Uno | Getting Started & Programming | Tutorial & Project


Arduino Uno | Getting Started & Programming | Tutorial & Project


GETTING STARTED

Arduino Uno is a microcontroller-based development board developed by Arduino.cc. It contains Atmel ATmega328P, 8-bit Microcontroller, which has a 32KB of Flash Memory, out of which 0.5KB used by the bootloader. It also has 2KB of SRAM and 1KB of EEPROM, which can be read and written with the EEPROM library. It runs on the clock speed of 16MHz. Arduino Uno uses Atmel ATmega16U2, 8-bit Microcontroller, as a USB-to-Serial Convertor.

Arduino Uno can be programmed or powered with the USB-to-Serial connection of 5V, via Type-B USB Connector. Arduino Uno can also be powered with an external power supply of 7V to 12V, via DC Power Jack.

Arduino Uno has 14 digital input/output pins, which are labeled 0 through 13. These pins are used for general purpose input/output and can be configured by using the pinMode(), digitalRead(), and digitalWrite() functions.

Arduino Uno also has 6 analog input pins, which are labeled A0 through A5. These pins are connected to on-board 6-channel 10-bit Analog-to-Digital Converter (ADC) and are used to read the analog voltages by using the analogRead() function.

Both digital and analog pins can tolerate a maximum voltage of 5V and can provide or receive a maximum current of 40mA. Each of these pins has an internal pull-up resistor, which can be enabled by using the INPUT_PULLUP command.

- VIN Pin is used to power the board with an external power supply of 7V to 12V.

- 5V Pin provides a regulated 5V output from the board.

- 3.3V Pin provides a regulated 3.3V output from the board.

- GND Pins are the Ground pins.

- Digital Pin 0 and 1 are RX and TX respectively are the Serial pins, which support Serial or UART communication by receiving/transmitting TTL serial data.

- Digital Pin 2 and 3 are the External Interrupts pins, which can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value by using the attachInterrupt() function.

- Digital Pin 3, 5, 6, 9, 10, and 11 are the Pulse Width Modulation (PWM) pins, which provides 8-bit Pulse Width Modulation (PWM) output by using the analogWrite() function.

- Digital Pin 10, 11, 12, and 13 are SS, MOSI, MISO, and SCK respectively are the Serial Peripheral Interface (SPI) pins, which support Serial Peripheral Interface (SPI) communication by using the SPI library.

- SDA and SCL Pin are the Two Wire Interface (TWI) pins, which support Two Wire Interface (TWI) or I2C communication by using the Wire library.

- Analog Pin A4 and A5 are SDA and SCL respectively are also the Two Wire Interface (TWI) pins, which support Two Wire Interface (TWI) or I2C communication by using the Wire library.

- AREF Pin is the analog reference pin, which provides the reference voltage for the analog inputs and used with the analogReference() function.

- IOREF Pin is the input/output reference pin, which provides the reference voltage with which the microcontroller operates.

- Reset Pin is used to bring the line LOW to reset the microcontroller.

- In-Circuit Serial Programming (ICSP) Header consists of MOSI, MISO, SCK, Reset, 5V, and GND pins, which enables us to burn the bootloader into the microcontroller.

- Reset Button is used to reset the microcontroller when pressed.

- There is a built-in LED which is connected to the Digital Pin 13.


COMPONENTS REQUIRED

Components that you'll required:




- 400 Tie-Points Breadboard: http://s.click.aliexpress.com/e/b9Q3KNu8


- Type-A to Type-B USB Cable: http://s.click.aliexpress.com/e/b28H8fFw

Please check out the description or resources to buy these components.


CONNECTIONS

Arduino Uno | Getting Started & Programming | Tutorial & Project | Connections

Now, let’s see the connections.

- Connect the anode of LED to the Digital Pin 13 of Arduino Uno, via a 220 Ohm Resistor.

- Connect the cathode of LED to the GND Pin of Arduino Uno.


PROGRAMMING

In order to program the Arduino Uno, you'll need to download the software and source code from the description or resources.



Now, let’s program the Arduino Uno.

- Connect the one end of USB cable to the Arduino Uno, and another end to your Computer.

- Open the sketch in the Arduino IDE. This program enables the Arduino Uno to turn the LED on and off depending upon the value of pin connected to the LED. When the pin value is HIGH, the LED turns on and when the pin value is LOW, the LED turns off. This program doesn’t require any library.

- Select the proper Board from the Tools menu of Arduino IDE.

- Select the proper Serial Port from the Tools menu of Arduino IDE.

- Click on the Upload button to upload the sketch to the Arduino Uno.

If the upload is successful, the message "Done uploading" will appear in the status bar of Arduino IDE. After a few seconds, you should see the LED starts blinking.

Comments

Popular posts from this blog

Heltec ESP32 LoRa DevKit | LoRa Controlled Robot Car | Tutorial & Project