Arduino - EM18 RFID Reader

In this Project, we will see about how to interface EM-18 RFID with Arduino.

Circuit Diagram:

Arduino Code:
rfid_receive_char_code.ino
void setup() {
  Serial.begin(9600);
}

void loop() {
  if (Serial.available() > 0) {
    char inChar = (char) Serial.read();
    Serial.println(inChar);
  }
}

rfid_receive_string_code.ino
boolean stringComplete = false;
String inputString = "";
int n = 0;
#define BUZZ 8

void setup() {
  Serial.begin(9600);
  pinMode(BUZZ, OUTPUT);
  inputString.reserve(200);
}

void loop() {
  if (stringComplete) {
    Serial.println(inputString);
    if (inputString.equals("180001493565")) { //A
      digitalWrite(BUZZ, HIGH);
    }
    if (inputString.equals("1300711F7508")) { //B
      digitalWrite(BUZZ, LOW);
    }

    stringComplete = false;
    inputString = "";
  }
}

void serialEvent() {
  while (Serial.available()) {
    n++;
    char inChar = (char) Serial.read();
    inputString += inChar;
    if (n >= 12) {
      n = 0;
      stringComplete = true;
    }
  }
}

Youtube Video Tutorial:




Download our official Android App in PlayStore. Click Here
You can get the all the required files (like Circuit Diagram, Arduino.ino file, Libraries Used, and others) for the project  in ZIP format and much more...

Arduino - Buzzer

In this Project, we will see about how to interface Buzzer with Arduino.

Circuit Diagram:

Arduino Code:
buzzer_code.ino
//This Code is Developed by Sdev
//Follow Us Here : https://youtube.com/sdevelectronics

#define BUZZ 8

void setup() {
  pinMode(BUZZ ,OUTPUT);
}

void loop() {
  digitalWrite(BUZZ,HIGH);
  delay(100);
  digitalWrite(BUZZ,LOW);
  delay(100);
}

Youtube Video Tutorial:




Download our official Android App in PlayStore. Click Here
You can get the all the required files (like Circuit Diagram, Arduino.ino file, Libraries Used, and others) for the project  in ZIP format and much more...

Arduino - LDR

In this Project, we will see about how to interface LDR with Arduino and can control an LED.

Circuit Diagram:

Arduino Code:
ldr_code.ino
//This Code is Developed by Sdev
//Follow Us Here : https://youtube.com/sdevelectronics

#define ldrpin A0
#define ledpin 13

int ldrvalue;

void setup() {
  Serial.begin(9600);
  pinMode(ledpin,OUTPUT);
}

void loop() {
  ldrvalue = analogRead(ldrpin);
  Serial.println(ldrvalue);
  if(ldrvalue<900){
    digitalWrite(ledpin,HIGH);
  }else{
    digitalWrite(ledpin,LOW);
  }
  delay(100);
}

Youtube Video Tutorial:




Download our official Android App in PlayStore. Click Here
You can get the all the required files (like Circuit Diagram, Arduino.ino file, Libraries Used, and others) for the project  in ZIP format and much more...

Arduino - LED Blinking

In this Project, we will see about how to control LED with Arduino by Simple Code.

Circuit Diagram:

Arduino Code:
led_blinking.ino
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (+5V level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off (0V level)
  delay(1000);                       // wait for a second
}

Youtube Video Tutorial:




Download our official Android App in PlayStore. Click Here
You can get the all the required files (like Circuit Diagram, Arduino.ino file, Libraries Used, and others) for the project  in ZIP format and much more...