Getting Started With Arduino
Introduction
Hi Everyone I Know you Learn Soo Much Arduino , But I will try to Explain Arduino in My Knowledge If You Learn Anything in This Article Please Comment Below…..
Arduino is Open-source Platform And is Very Easy To Learn The Microcontroller ,In first time Developed in Italy.
If You Want To Download the Software https://www.arduino.cc/en/software


In Market is Various Types Of Arduino Available Like Arduino Lilypad,Arduino micro,Arduino Nano,Arduino PRO Mini,Arduino UNO,Arduino Mega2560,ETC…….
Types Of Board
1.Arduino Pro-Mini
Arduino pro-mini is small microcontroller and is operating voltage will stated to 3.3V To 5v.
S.N. | Features | Value |
1 | Microcontroller IC | Atmega328 |
2 | Digital Input/Output | 14 (D0-D13) |
3 | Analog | 8 (A0-A7) |
4 | PWM Pins | 6 |
5 | USB Port | Not Available |
6 | Built In Programmer | Not Available |
7 | SRAM | 2KB |
8 | EEPROM | 1KB |
9 | Flash Memory | 32KB |
10 | Bootloader | 0.5KB In Flash Memory |
11 | Operating Voltage | 3.3V To 5V |
2.Arduino Nano
Arduino nano is Also Small Microcontroller and is operating voltage is 3.3v To 5v .This Microcontroller is supported USB2.0 Mini B To USB2.0A.
S.N. | Feature | Value |
1 | Microcontroller IC | ATmega328p |
2 | Digital Input/Output Pin | 14 (D0-D13) |
3 | Analog Pin | 8 (A0-A7) |
4 | PWM Pin | 6 |
5 | Built In Progammer | Yes |
6 | USB port | Yes Avilable (Type-B Micro Usb) |
7 | flash Memory | 32KB |
8 | SRAM Memory | 2KB |
9 | EEPROM | 1KB |
10 | Crystal Oscillator | 16 MHz |
11 | Operating voltage | 5V |
3.Arduino UNO
Arduino UNO is a Best Board To stared The Programing With Arduino IDE .This Microcontroller is Supported The Dip Ic (ATmega328Pu IC),And The Operating Voltage is 3.3V , 5V or 9V .




Arduino UNO Is Available in market With DIP Ic And SMD IC.


S.N. | Feature | Value |
1 | Microcontroller IC | Atmega328p |
2 | Digital Input/Output Pin | 14 (D0-D13) |
3 | Analog Pins | 8 (A0-A8) |
4 | PWM Pins | 6 |
5 | USB Port | Yes (USB-A To USB-B) |
6 | Flash memory | 32KB |
7 | SRAM | 2KB |
8 | EEPROM | 1KB |
9 | Crystal Oscillator | 16MHz |
10 | Operating voltage | 5v To 9V |
11 | ICSP Header | Yes |
4.Arduino Mega
This Board Is not Small is very fast and Various pin Available .Arduino Mega is Advanced Level Microcontroller And is Supported USB Programming,Operating voltage is 3.3V To 12v.


S.N. | Features | Value |
1 | Microcontroller IC | Atmega2560 |
2 | Digital Input/Output Pins | 54 |
3 | Analog Pins | 16 |
4 | PWM Pins | 15 |
5 | Built in programming | yes |
6 | USB Port | Yes (USB-A To USB-B) |
7 | Flash Memory | 256KB |
8 | SRAM | 8KB |
9 | EEPROM | 4KB |
10 | Crysatl Oscillator | 16 MHz |
11 | ICSP Header | Yes |
Introduce Arduino IDE Software
I Will already Share the Arduino IDE Software Link https://www.arduino.cc/en/software You just Download the software And Open it Depending To Your Operating System.
Explanation IDE
Just install the Software and open It then you sell like this ….


you just open the IDE And go to the tools and you see the different different Boards Available,You Just Select the board Correctly


In Left Side you see the verify and upload Symbol Available
- if you type the code in the editor and you want to check the code will is generated error or not you just click the verify button then our code will compile and find out the error.
- if you want to Upload the code in microcontroller you just click the Uploading Button But fist you select the proper board and port.


And In Right Side You just see the corner the Serial monitor and Serial Plotter Available


Started With Arduino Nano Board
Arduino Nano With Serial Monitor
Here I Just Interface the Arduino Nano Board With Arduino IDE Software And I just write the code and Display the output in Serial Monitor.


1 2 3 4 5 6 7 8 9 10 |
void setup() { Serial.begin(9600); } void loop() { Serial.println("Hi Welcome To JustDoElectronics"); } |
Led Interfacing With Arduino Nano
Here I just interfacing led with Arduino nano Board


I will connected the led in PIN number D4
Anode – D4
GND – GND


Code
1 2 3 4 5 6 7 8 9 10 11 12 |
//Prateek //www.justdoelectronics.com void setup() { pinMode(D4, OUTPUT); } void loop() { digitalWrite(D4, HIGH); delay(1000); digitalWrite(D4, LOW); delay(1000); |
Push Button Interfacing With Arduino Nano
Here I just interfacing push Button ,Led with Arduino nano Board
In Input Side Connected the push Button and output side will glow the led, when button is press then led will ON and if you release the push button then led will OFF.
Circuit Diagram
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
//Prateek //www.justdoelectronics.com const int BUTTON_PIN = 6; const int LED_PIN = 12; int ledState = LOW; int lastButtonState; int currentButtonState; void setup() { Serial.begin(9600); pinMode(BUTTON_PIN, INPUT_PULLUP); pinMode(LED_PIN, OUTPUT); currentButtonState = digitalRead(BUTTON_PIN); } void loop() { lastButtonState = currentButtonState; currentButtonState = digitalRead(BUTTON_PIN); if (lastButtonState == HIGH && currentButtonState == LOW) { Serial.println("Button pressed"); ledState = !ledState; digitalWrite(LED_PIN, ledState); } } |
Potentiometer Interfacing With Arduino Nano
Here I just Interfacing Potentiometer With Arduino nano ,when you rotate the potentiometer clockwise OR anticlockwise the led will be glow the potentiometer Value.
Circuit diagram
See In the circuit diagram potentiometer will connected to the Analog Pin (A0) And the led Will be Connected To the Digital Pin (D4).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
//Prateek //www.justdoelectronics.com int LED_PIN = 4; void setup() { Serial.begin(9600); pinMode(LED_PIN, OUTPUT); } void loop() { int analogValue = analogRead(A0); int brightness = map(analogValue, 0, 1023, 0, 255); analogWrite(LED_PIN, brightness); Serial.print("Analog: "); Serial.print(analogValue); Serial.print("_Brightness: "); Serial.println(brightness); delay(100); } |
16×2 Lcd interfacing With Arduino Nano
Here, I just connected the 16×2 lcd display with Arduino nano Board.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
//Prateek //www.justdoelectronics.com #include <LiquidCrystal.h> const int RS = 12, EN = 11, D4 = 10, D5 = 9, D6 = 8, D7 = 7; LiquidCrystal lcd(RS, EN, D4, D5, D6, D7); void setup() { lcd.begin(16, 2); lcd.setCursor(0, 0); lcd.print("Welcome To"); lcd.setCursor(2, 1); lcd.print("justdoelectronic"); } void loop() { } |
Ultrasonic Sensor Interfacing with Arduino Nano
Here, I just connected to the Ultrasonic Sensor with Arduino Nano microcontroller


Circuit Diagram
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
//Prateek //www.justdoelectronics.com int trigPin = 4; int echoPin = 3; float duration_us, distance_cm; void setup() { Serial.begin(9600); pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); } void loop() { digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); duration_us = pulseIn(echoPin, HIGH); distance_cm = 0.017 * duration_us; Serial.print("distance: "); Serial.print(distance_cm); Serial.println(" cm"); delay(400); } |
THANKS