abhishek n chatrani
Published

Smart Furniture Using Linkit Mediatek 7688 Duo

We are making smart furniture and our first prototype is for smart computer table.

AdvancedProtipOver 2 days1,463
Smart Furniture Using Linkit Mediatek 7688 Duo

Things used in this project

Hardware components

RFID reader (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
LED (generic)
LED (generic)
×1
Flora RGB Neopixel LEDs- Pack of 4
Adafruit Flora RGB Neopixel LEDs- Pack of 4
×1
Dual H-Bridge motor drivers L293D
Texas Instruments Dual H-Bridge motor drivers L293D
×1
Servos (Tower Pro MG996R)
×1
DC motor (generic)
×1

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Custom parts and enclosures

Smart table small model images

This is just a prototype and anyone can make it using wood, PVC pipes and a hot glue gun with other electronics components.

Schematics

Circuit Without RFID

Please Refer Code for RFID mfrc522 connections.

Will add more pictures of Linkit mediatek smart duo 7688 for better circuits connections.

Code

Smart Furniture Small Prototype

Arduino
This code is for smart furnitur usiing rfid tag to control Servo motor,Dc motor to control height adjustment of table using L293D with Mediatek Smart duo 7688 Board
#include <SPI.h> //RFID
#include <RFID.h> //RFID Library 
#include <Servo.h> // Servo motor

RFID rfid(9,5); //Connect SDA (RFID MFRC522) to pin 9 of Linkit Media tek Smart Duo and RST Pin to Pin 5

byte userA[5] = {0xF5,0x85,0xD3,0x65,0xC6}; // user C//F5 85 D3 65 C6 //(Security Tag code can be obtained from file >examples > MFRC522> Dumpinfo examples

byte data[5];  //Defining value in data

int servoPin = 6; //analog or orange wire of servo to pin 6 of mediatek smart duo

Servo doorLock; //Use of servo to lock door

 int motorpin1 = 3; // Table Height Adjustment using DC motor and L293D Motor control
 int motorpin2 = 5; // Define Input pin 1 & 2 From motor control to pin 3 & 5
 
//int enablePin = 4; If you want to control on and off of motor 

char d;  // Defining d for motor control using serial monitor or Serial Communication

//int redPin = 11;
//int greenPin = 10;
//int bluePin = 9;

void setup()
{ 
  pinMode(enablePin, OUTPUT);
    // sets enablePin high so that motor can turn on:
  digitalWrite(enablePin, HIGH);
  doorLock.attach(servoPin); // defining door lock to servo pin
  
  Serial.begin(9600);

  SPI.begin(); 
  
  rfid.init(); // Initialzing RFID
  
  pinMode(servoPin,OUTPUT); //Defining servo pin as output
  pinMode(motorpin1,OUTPUT); // Motor pin 1 as output
  pinMode(motorpin2,OUTPUT); // Motor Pin 2 as output
  //pinMode(redPin,OUTPUT);
 // pinMode(greenPin,OUTPUT);
  //pinMode(bluePin,OUTPUT);
}

void loop()
{ 
  
    boolean userA_card = true;  //  Defining ID card As user name you can also add your name
   
    if (rfid.isCard()) { // valid card found
    
    if (rfid.readCardSerial()){ // reads the card
    
      delay(1000);
      
      data[0] = rfid.serNum[0]; // stores the serial number
      data[1] = rfid.serNum[1];
      data[2] = rfid.serNum[2];
      data[3] = rfid.serNum[3];
      data[4] = rfid.serNum[4];
    }
    
      rfid.halt();
      for(int i=0; i<5; i++){
    
      if(data[i] != userA[i]) userA_card = false; 

  }
  
  Serial.println();
 
    if (userA_card){
  
    Serial.println("User A Access granted");
    doorLock.write(0); 
    delay(3000); // wait 5 senconds
    doorLock.write(90);
 }
 
    else {
    Serial.println("Unknown User");  //Wrong person trying to access drawer can add a buzzer for better alerts 
    delay(1000);}
}

    if(Serial.available()>0);

 {
    d=Serial.read(); //Reading values from serial communication for table Height adjustment
    
    if(d=='m') // write m to move table height
 
 {
    digitalWrite(motorpin1,HIGH);
    digitalWrite(motorpin2,LOW);
    Serial.print("motor rotates");
    delay(5000);
    digitalWrite(motorpin1,LOW);
 }
 }
 }

Credits

abhishek n chatrani

abhishek n chatrani

1 project • 14 followers
Entrepreneur | Mechanical Engineer | Innovator | Realist

Comments