Aula Jazmati πŸ’‘πŸ•ŠοΈACEBOTT
Published © MIT

ACEBOTT Smart Home: RFID Room Access Control πŸ”

This project adds a secure RFID access control system to the ACEBOTT Smart Home kit.

BeginnerFull instructions provided1 hour29
ACEBOTT Smart Home: RFID Room Access Control πŸ”

Things used in this project

Hardware components

ACEBOTT 5-in-1 Smart Home Edu Kit with ESP32 Controller Board | Supports Arduino, ACECode Programming | for STEM Classroom Education – Year 1 – Level 2
×1

Software apps and online services

ACECode 2.1.9

Story

Read more

Schematics

ACEBOTT Smart Home Project

ACEBOTT Smart Home Project

Code

Test code

C/C++
#include <Arduino.h>
#include <ACB_Servo.h>
#include <ACB_SingleLED.h>
#include <ACB_RFID.h>
#include <ACB_MFRC522_I2C.h>
#include <Wire.h>
#include <ACB_Buzzer.h>

int my_variable;
String ID;
ACB_Servo servo_13;
ACB_SingleLED led_19(19);
ACB_RFID RFID_;
ACB_Buzzer buzzer_5(5);

void setup() {
  servo_13.allocateTimer(1);
  servo_13.setpin(13);
  RFID_.init();
  Serial.begin(115200);
  // Setting the servo angle to 0 means closing the door;
// A servo angle of 100 means opening the door. The steering gear angle is initialized to 0
  servo_13.run(0);
  led_19.closeLED();
}

void loop() {
  // Use variable ID to store the ID read by RFID
  ID = (RFID_.getID());
  // Determine whether the RFID has read the ID card by the number of characters in the ID. When the number of characters is greater than 0, it means the ID card has been read.
  if ((String(ID).length()) > 0) {
    // Print ID on serial monitor
    Serial.println(ID);
    // If the ID card matches, the door will be opened.
    if (ID == String("d3b4714")) {
      servo_13.run(100);
      delay(2 * 1000);
      servo_13.run(0);
    }
    else{
      // Otherwise, the buzzer  sound and the LED  flash to indicate the alarm.
      buzzer_5.run(5,392,0.5);
      led_19.openLED();
      delay(0.5 * 1000);
      buzzer_5.run(5,196,0.5);
      led_19.closeLED();
      delay(0.5 * 1000);
    }
  }
}

Credits

Aula Jazmati πŸ’‘πŸ•ŠοΈ
70 projects β€’ 234 followers
Electronic Engineering
ACEBOTT
1 project β€’ 1 follower
πŸ‘¨β€πŸ«Get kit + code: STEM | robotics | maker 🌐Learn more: acebott.com πŸ“©ALL collabs & quotes here: info@acebott.com

Comments