Blog

This Project will demonstrate the use of Push Button & Buzzer to make your custom bell for room/office.

Hardware Required:

1x Arduino Uno

1x Buzzer

1x Push Button

1x 10K Resistor

1x Bread Board & Some Jumpire Cables M-M

Want to Buy Complete Kit Click Here

Arduino Pin Layout:

Arduino Buzzer & Push Button Example

Code:

/*
 * OR97 Arduino Maker Basic Kit
 * Project#7 Room/Office Bell.
 * Made By: OR97 Team
 * Kit Link=https://www.or97.com/arduino-maker-basic-kit
 */


const int buzzer = 3; //buzzer to arduino pin 3
const int pushBtn=2;

void setup(){
  pinMode(pushBtn,INPUT);  
  pinMode(buzzer, OUTPUT); // Set buzzer - pin 3 as an output

}

void loop(){

  int btnValue=digitalRead(pushBtn); // Read the Button State Pressed or not
  if(btnValue==1){
    tone(buzzer, 3000); // Send 3KHz sound signal...
    delay(2000);
    noTone(buzzer);     // Stop sound...
    delay(1000);        // ...for 1sec
  }
  delay(10);
}

This Project Will demonstrate you to automate your lights using LDR. Like if there is a no light in your room, your Led/Bulb will trun on Automatically.

Hardware Required:

1x Arduino Uno

1x LDR

1x 5MM Led (any Color)

1x Bread board & some Jumpire Wires M-M

1x 10k Resistor

Want to Buy Complete Kit Click Here

 

Arduino Pin Layout:

Arduino LED/Light Control using LDR

Code:

/*
 * OR97 Arduino Maker Basic Kit
 * Project#6 LED/Light Control using LDR.
 * Made By: OR97 Team
 * Kit Link=https://www.or97.com/arduino-maker-basic-kit
 */
int LDRPin=A0;
int LEDPin=7;

void setup() {
 
  Serial.begin(9600);
  pinMode(LDRPin,INPUT);
  pinMode(LEDPin,OUTPUT);  
 
}

void loop() {
  float LDRValue=analogRead(LDRPin);
  Serial.println(LDRValue);
  if(LDRValue<300)
    digitalWrite(LEDPin,HIGH);
  else
    digitalWrite(LEDPin,LOW);

   delay(500);
}

 

This Project will Demonstrate you how to check your Surronding Light Level on Arduino Serial Monitor.

Hardware Required:

1x Arduino Uno

1x LDR

1x 10K Resistor

1x Bread board & some Jumpire Wires M-M

Want to Buy Complete Kit Click Here

 

Arduino Pin Layout:

Arduino LDR Example

Code:

/*
 * OR97 Arduino Maker Basic Kit
 * Project#4 Getting Room Light Level..
 * Made By: OR97 Team
 * Kit Link=https://www.or97.com/arduino-maker-basic-kit
 */
 
int sensorPin = A0; // select the input pin for ldr
int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
  Serial.begin(9600); //sets serial port for communication
}
void loop() {
  sensorValue = analogRead(sensorPin); // read the value from the sensor
  Serial.println(sensorValue); //prints the values coming from the sensor on the screen
  delay(300);
}

 

OUTPUT:

After Upload Code to Arduino Click on Tools->Serial Monitor to see the Value or you can Also see it's Graph by Clicking Tools->Serial Plotter

This Project will demonstrate how Traffic Signals works.

Hardware Required:

1x Arduino Uno

1x Red Light 5MM

1x Yellow Light 5MM

1x Green Light 5MM

3x 220 ohm Resistors

1x Bread board & some Jumpire Cables M-M

Want to Buy Complete Kit Click Here

 

Arduino Pin Layout:

Arduino Road Signal Example

 

Code:

/*
 * OR97 Arduino Maker Basic Kit
 * Project#3 Arduino Traffic Signals Project
 * Made By: OR97 Team
 * Kit Link=https://www.or97.com/arduino-maker-basic-kit
 */

 int RedLED=6;
 int YellowLED=5;
 int GreenLED=4;
void setup() {
  // put your setup code here, to run once:
  pinMode(GreenLED,OUTPUT);
  pinMode(YellowLED,OUTPUT);
  pinMode(RedLED,OUTPUT);

  //make all LEDs Off
  digitalWrite(GreenLED,LOW);
  digitalWrite(YellowLED,LOW);
  digitalWrite(RedLED,LOW);

}

void loop() {

  //Stop Traffic Red Signal
  digitalWrite(GreenLED,LOW);
  digitalWrite(RedLED,HIGH);
  delay(10000);

  //Get Read Yellow Signal
  digitalWrite(RedLED,LOW);
  digitalWrite(YellowLED,HIGH);
  delay(10000);

  //Go Green Signal
  digitalWrite(YellowLED,LOW);
  digitalWrite(GreenLED,HIGH);
  delay(10000);
}

 

This Post will demonstrate and LED Blinking By using Arduino UNO R3

Hardware Required:

1x Arduino Uno r3

1x 5MM LED (any Color)

 

Arduino Pin Connection Layout:

Code:

void setup( ) {

  pinMode(13, OUTPUT);

}

void loop( ) {

  digitalWrite(13, HIGH);

  delay(1000);

  digitalWrite(13, LOW);

  delay(1000);

}

In this Article we will learn about RGB LED.

 

Hardware Required:

1x Arduino Uno

1x RGB Led

4x Male-Male Jumpire Cables

 

Pin Layout:

Complete Video Instruction Set:

 

 

Code:

/*
 *  How to use RGB LED with Arduino
 *  Writer OR97.com
 *  Instructions Link:https://www.or97.com/arduino-rgb-led-example
*/

int Red=11;
int Green=12;
int Blue=13;

void setup() {
  // put your setup code here, to run once:
  pinMode(Red,OUTPUT);
  pinMode(Green,OUTPUT);
  pinMode(Blue,OUTPUT);
}

void loop() {
 
  //Red Color
  ChangeRGBColor(255,0,0);
  delay(1000);
 
  //Green Color
  ChangeRGBColor(0,255,0);
  delay(1000);

  //Blue Color
  ChangeRGBColor(0,0,255);
  delay(1000);

  //Yellow Color
  ChangeRGBColor(255, 255, 0);  
  delay(1000);  
 
  //purple Color
  ChangeRGBColor(80, 0, 80);
  delay(1000);
  //Aqua color
  ChangeRGBColor(0, 255, 255);
  delay(1000);
 
  ChangeRGBColor(255, 0, 255);
  delay(1000);
 
  //White Color
  ChangeRGBColor(255, 255, 255);
  delay(1000);
}

void ChangeRGBColor(int RedLevel,int GreenLevel,int BlueLevel){
  analogWrite(Red,RedLevel);
  analogWrite(Green,GreenLevel);
  analogWrite(Blue,BlueLevel);
}


This Post will demonstrate how to use DHT Series to measure the Temperature & Humidity of your room, office, warehouse, kitchen and where you want to messure the temperature & Humidity :)

Hardware Required:

1x Arduino Uno

1x DHT11 Temperature & Humidity Sensor or 1x DHT22 Temperature & Humidity Sensor

3x Male-Female Jumpire wires

 

Complete Video Instructions:

Pin Layout:

 DHT Series Sensors Pin Diagram

DHT11 VS DHT22:

Specification DHT11 DHT22
Temperature Range 0 - 50 °C / ±2°C -40 - 125 °C / ±0.5°C
Humidity Range 20 - 80% / ± 5% 0 - 100% / ± 2-5%
Sampling Rate 1 Hz (one reading every second) 0.5 Hz(one reading every two seconds)
Body Size 15.5mm x 12mm x 5.5mm 15.1mm x 25mm x 7.7mm
Operating Voltage 3-5 V
Max Current During Measuring 2.5 mA 2.5 mA

 

GitHub DHT Library Link Click Here

Code:

/*
 *  How to use the DHT-22 sensor with Arduino uno Temperature and humidity sensor
 *  Writer OR97.com
 *  Instructions Link:https://www.or97.com/arduino-temperature-and-humidity-monitor-tutorial-with-dht11-or-dht22-sensor
*/

//Libraries
#include <DHT.h>;

//Constants
#define DHTPIN 7     // what pin we're connected to
#define DHTTYPE DHT22   // DHT 22  (AM2302)
DHT dht(DHTPIN, DHTTYPE); //// Initialize DHT sensor for normal 16mhz Arduino


//Variables
int chk;
float hum;  //Stores humidity value
float temp; //Stores temperature value

void setup()
{
  Serial.begin(9600);
  dht.begin();
}

void loop()
{
    delay(2000);
    //Read data and store it to variables hum and temp
    hum = dht.readHumidity();
    temp= dht.readTemperature();
    //Print temp and humidity values to serial monitor
    Serial.print("Humidity: ");
    Serial.print(hum);
    Serial.print(" %, Temp: ");
    Serial.print(temp);
    Serial.println(" Celsius");
    delay(10000); //Delay 10 sec.
}

This Artilce will demonstrate how to capture the Motion using Arduino &  PIR Motion Sensor HC-SR501.

Difficulty level: Beginner

Components Required:

1 xArduino Uno R3

1x HC-SR501 PIR Motion Sensor

1x LED 5MM Any Color

1x Bread Board

PIR Motion Sensor HC-SR501 Pin Layout:

PIR Motion Sensor HC-SR501 Pin Layout

 

Complete Video Setup:

Arduino Code:

// Arduino PIR Motion Sensor HC-SR501
// Author:https://www.or97.com


int ledPin = 7;  // LED on Pin 7 of Arduino
int pirPin = 8; // Pin #8 for HC-S501

int pirValue; // Place to store read PIR Value


void setup() {
  pinMode(ledPin, OUTPUT);
  pinMode(pirPin, INPUT);
  digitalWrite(ledPin, LOW);
}

void loop() {

  //Take the Digital Singal From PIR Motion Sensor Pin
  pirValue = digitalRead(pirPin);
  digitalWrite(ledPin, pirValue);

}