Skip to content

HyOsori/DongMunYeol

Repository files navigation

DongMunYeol : Osori's private room checking system

Overview

  • This project is designed to solve how to check whether Osori's private room is open. By considering feature of room, we divide solution into 3 steps. Each step is being implemented, and we will decide which step is the most accurate and simplest solution.

Specification

Arduino & Board

  • Arduino uno R3 & Wifi shield

Sensor

  • Switch sensor : AT1D-2M3
  • Light sensor : Cds CELL(GL5537)
  • Ultrasonic sensor : HC-SR04P

Step 1 : Toggle Switch

  • Decision is made by state of the switch. When the current state of the switch is different from the previous state, check the current status of the switch. If the switch's value is on, then sending a message "toggle On". If the switch's value is off, then sending a message "toggle Off".

  • Sensor picture(connected to arduino) toggle_switch_sensor

  • Demo video https://www.youtube.com/watch?v=7N-TJWVpftk

Step 2 : Light Sensor

  • Decision is made based on the brightness of the light (measured by cds values). If the cds value is greater than 400, the light is turned off, sending a message “Opened!” on the screen. If the cds value is less than or equal to 400, then the light is turned on, with a message “Closed!” displayed on the screen.

Thus, by using the light sensor and Arduino, it can be checked whether the Osori room is open or not.

Note: Normally, when the light is bright, the resistance is lowered, resulting in higher voltage. However, when a pull-up resistance is used, it gives out an opposite output, where there’s a lower voltage when the light is bright. (Connected to VCC) In the case of a pull-down resistance, when the light is bright, the voltage is increased. (Connected to GND)

Images of the light sensor along with the Arduino is provided below.

Light sensor 1

Light sensor 2

Light sensor 3

Step 3 : Ultrasonic Sensor

  • Decision is made by difference between long distance(over 10cm, Meaning close) and short distance(within 10cm, Meaning open). When room's card key is placed into key holder, distance calculated by ultrasonic sensor is shortened(within 10cm). Therefore arduino can decide whether room is open or not.

  • Sensor picture(connected to arduino) ultrasonic_sensor

  • Demo video
    https://www.youtube.com/watch?v=QM-i1seSgpQ

Design(For step 3)

  • Design will be chosen by vote.

Nominee 1. one

Nominee 2. two

Nominee 3. three

Nominee 4.

four  

Nominee 5.

five

Nominee 6.

six

Nominee 7.

seven

Network

Connection to Server

Server Environment

  • Remote Server : Naver Cloud Platform(NCloud)
  • Language : Python3
    • version : 3.5.2
  • Framework: Django
    • version : 1.11.5

Using Chatbot

  • In order to let the club members know that the club room door has been opened or not, We set up Kakao Talk chat room '오소리'.

  • How to use?

    • Search for '오소리' in KakaoTalk and add a friend to use the service.
  • auto reply API : https://github.com/plusfriend/auto_reply