7 Great Arduino Project for Beginners

Arduino Projects for beginners (7 Great projects with Code in 2020)

This article contains 7 great Arduino Projects for beginners. By the end of this article, you will be able to make awesome Arduino based projects, regardless of your experience. And, if you are an Arduino beginner, willing to make awesome Arduino based projects then you are in luck. These projects will not only give you a good understanding of Arduino but also teach you its applications. .

First of all, there are four different kinds of Arduino sensors used in some projects. Hence you will learn how to use IR, Ultrasonic, Temperature sensors, and Light-dependent Resistor(LDR). Moreover, Two different Arduino projects made using LDR are included. You’ll learn how a small sensor like LDR can be used to make some really cool projects.

The output devices are equally important as input devices. And it is essential to learn and know, which output device should be used in which application. Output devices such as LEDs, DC motor, and Servo motor are explained and used in some of the projects. Finally, an Arduino -Home automation project made using an SPDT relay and LDR is also added to the list.

Having said that, let’s get started with our 7 awesome Arduino Projects for beginners.

Watch the video given below for a detailed explanation of each project:

Code and Circuit Diagrams for Arduino Projects for beginners:

 

IR SENSOR TUTORIAL

Ir Sensor with Arduino
Ir Sensor with Arduino

 

 

CIRCUIT DIAGRAM:

LED CONTROL USING IR SENSOR WITH ARDUINO

 

ARDUINO PROGRAM:

 

void setup() {
  pinMode(7,INPUT);
  Serial.begin(9600);
  pinMode(13,OUTPUT);
}

void loop() {
  
Serial.print("IRSensorip  ");
Serial.println(digitalRead(7));

if(digitalRead(7)==0)
{
  digitalWrite(13,HIGH);
  }
 else{
    digitalWrite(13,LOW);
    }

}

 

DOWNLOAD THIS CODE

 

 

 

DISTANCE MEASUREMENT USING ULTRASONIC SENSOR

 

Distance Measurement using Ultrasonic Sensor with Arduino
Distance Measurement using Ultrasonic Sensor with Arduino

 

CIRCUIT DIAGRAM:  

 

HCSR04 Ultrsonic sensor connections with Arduino
HCSR04 Ultrasonic sensor connections with Arduino

ARDUINO PROGRAM:  

 

const int trig = 6;
const int echo = 7;

long totaltime;
int distance;

void setup() {
  
pinMode(trig, OUTPUT); 
pinMode(echo, INPUT);
Serial.begin(9600); 

}

void loop() {

digitalWrite(trig, LOW);
delayMicroseconds(2);

digitalWrite(trig, HIGH);
delayMicroseconds(10);
digitalWrite(trig, LOW);

totaltime = pulseIn(echo, HIGH);

distance= totaltime*0.034/2;

Serial.print("Distance: ");
Serial.println(distance);

}

 

 

 

ARDUINO SERVO MOTOR TUTORIAL

 

Servo Motor With Arduino Tutorial
Servo Motor With Arduino Tutorial

 

CIRCUIT DIAGRAM:

Arduino Servo Motor Connections
Arduino Servo Motor Connections

ARDUINO PROGRAM: 

 

A) Driving Servo Motor to a particular degree position using Arduino Servo Library:

#include <Servo.h>

Servo servo1;


void setup() {
  
  servo1.attach(6);
  
  
}

void loop() {
  servo1.write(180);
  
}

 

B) Driving Servo Motor in a loop using Arduino Servo Library:

#include <Servo.h>

Servo servo1;


void setup() {
  
  servo1.attach(9);
  
  
}

void loop() {
  servo1.write(0);
  delay(1000); 

  servo1.write(90);
  delay(1000);

  servo1.write(180);
  delay(1000);
 
  servo1.write(90);
  delay(1000);

}

 

C) Driving Two Servo Motors in a loop using Arduino Servo Library:

#include <Servo.h>

Servo servo1;
Servo servo2;

void setup() {
  
  servo1.attach(6);
  servo2.attach(9);
  

}

void loop() {
  servo1.write(0);
  delay(1000);
  servo2.write(0);
  delay(1000);

  servo1.write(90);
  delay(1000);
  servo2.write(90);
  delay(1000);

  servo1.write(180);
  delay(1000);
  servo2.write(180);
  delay(1000);

  servo1.write(90);
  delay(1000);
  servo2.write(90);
  delay(1000);

}

 

 

 

LIGHT CONTROLLED DC MOTOR USING LDR

LIGHT CONTROLLED DC MOTOR
LIGHT CONTROLLED DC MOTOR

 

CIRCUIT DIAGRAM:

Circuit of Automated Speed Motor Control using LDR based Arduino project
Circuit of Automated Speed Motor Control using LDR

 

ARDUINO PROGRAM: 

 

int x; // input of LDR
int y; // o/p Pwm value to be given to the base of the transistor to get reduced o/p voltage

void setup() 

{
pinMode(A0,INPUT);
pinMode(6,OUTPUT);

Serial.begin(9600);

}

void loop() 

{
x= analogRead(A0);// analog input from the pin A0 connected to LDR and POT. end
y= map(x,0,1023,0,255); // Mapping or converting the value bw minimum to maximum analog value to the pwm value
analogWrite(6,y); // Writing this analog value to pin 6 which is connected to the base of the transistor to get reduced o/p voltage

Serial.print("LDR input ");
Serial.print(x);

Serial.print("\t");

Serial.print("O/P PWM value");
Serial.print(y);
Serial.println();

delay(1000);

}

 

DOWNLOAD THIS CODE

 

 

TEMPERATURE CONTROLLED FAN USING LM35

 

TEMPERATURE CONTROLLED FAN USING LM35
TEMPERATURE CONTROLLED FAN USING LM35

 

CIRCUIT DIAGRAM:

 

Temperature controlled DC motor using LM35: Circuit Connections
Temperature controlled DC motor using LM35: Circuit Connections

 

ARDUINO PROGRAM: 

 

float Vout;
float Temp;


void setup() {
  
  Serial.begin(9600); 
  pinMode(8,OUTPUT);
  pinMode(9,OUTPUT);
  pinMode(10,OUTPUT);

}

void loop() {
  Vout=analogRead(A0) ;
  Temp= (Vout*500)/1023 ;
 
  int PWMvalue=map(Temp,31,40,100,255);

  if(Temp>=30)
  {
    digitalWrite(8,HIGH);
    digitalWrite(9,LOW );
  
    analogWrite(10,PWMvalue);
    
   }

  else{ 
           analogWrite(10,0);
        }

  Serial.print("Temperature in Degree Celsius = ");
  Serial.print(Temp);
  Serial.print("\t");
  Serial.print("PWMValue = ");
  Serial.print(PWMvalue);
  Serial.print("\t");
  Serial.println();
  delay(1000);


}

 

 

 

 

AUTOMATED STREET LIGHT USING LDR

 

AUTOMATED STREET LIGHT USING LDR
AUTOMATED STREET LIGHT USING LDR

 

CIRCUIT DIAGRAM:

CIRCUIT DIAGRAM OF AUTOMATED STREET LIGHT USING LDR
CIRCUIT DIAGRAM OF AUTOMATED STREET LIGHT USING LDR

 

ARDUINO PROGRAM:

int x; // input of LDR

void setup() 

{
pinMode(10,INPUT);
pinMode(8,OUTPUT);

Serial.begin(9600);

}

void loop() 

{
x= digitalRead(A0);// digital input from the pin 10 connected to LDR and POT. end

Serial.println(x);
delay(1000);

if(x==0){
  
  digitalWrite(8,HIGH);// if digital value is 0, i.e dark, bulb turns ON
 
  }
  
else{
  
  digitalWrite(8,LOW);// if digital value is 1, i.e daylight, bulb turns OFF
 
  }

}


 

 

 

DIY MUSIC REACTIVE LED LIGHTS

 

DIY MUSIC REACTIVE LED LIGHTS
DIY MUSIC REACTIVE LED LIGHTS

 

CIRCUIT DIAGRAM:

ARDUINO MUSIC REACTIVE LED LIGHTS CIRCUIT DIAGRAM
ARDUINO MUSIC REACTIVE LED LIGHTS CIRCUIT DIAGRAM

 

ARDUINO PROGRAM:

# define SoundSensor 8
# define LedStrip 9

void Setup()
{
  pinMode(SoundSensor,INPUT);
  pinMode(LedStrip,OUTPUT);
  Serial.begin(9600);
  
  }

 Void loop()
 {
  int SensorValue = digitalRead(SoundSensor);

     if(SensorValue == 1)
     {
      digitalWrite(LedStrip,HIGH);
      delay(10);
     
      }

      else
     {    
      digitalWrite(LedStrip,LOW);
      }

      Serial.println(SensorValue);
  }

 

Join Etechnophiles Facebook Page to see more cool technical stuff.

www.facebook.com/eTechnophiles.

 

Leave a Reply

Your email address will not be published. Required fields are marked *