Skip to content

An implementation of a Sensor Network using NimBLE stack. Currently designed to tackle seat occupancy monitoring problems.

Notifications You must be signed in to change notification settings

kaiwen98/spacey

Repository files navigation

SPACEY: IoT Solution for occupancy management in restaurant chains

Documentation

https://tinyurl.com/spaceydoc

How to use:

  • Telegram Bot
    You can try our bot right now! Our bot name is @spaceynusbot. Do let us know what you think!

  • Node Manager GUI
    Our latest release is v1.2.0.
    • Windows Users are to download Spacey.API.Windows.1.2.0.exe and run the installation wizard.
    • Linux Users are to download Spacey.API.Linux.1.2.0.zip and extract it in their working directory, then run ./run.sh in the ~/Spacey API/ folder.
  • BLE Sensor Network
    You will need to have the following setup:

Problem Scope and Motivation:


Our target problem is commonplace throughout Singapore - During mealtimes, customers often arrive at their favourite eateries only to discover that there are no more seats available for them. They either have to waste time looking for another eatery, or stand around to wait until the other customers are done with their meal.

This is a very common problem in large-scale and popular hawker centres such as Chomp Chomp and Bukit Merah Hawker centre, whereby a seat reservation and tracking systems are not implemented unlike restaurants such as Saboten and Andes.

The scope of the problem in which we wish to target are hawker centres, fast food chains and coffee houses in NUS, whereby there is frequent occurrences of overcrowding due to high influx of customers. That being said, our implementation can easily be expanded out to higher level purposes such as business analytics, traffic monitoring and crowd control.

Sensor Network

Introduction

A “Wireless Sensor Network” will be set up such that the network of sensors will span over the seats in a restaurant establishment. The area will be divided into individual clusters whereby the cluster head sensor node will consolidate the data from the cluster nodes in regular time intervals and relay the information to a server connected to the same wireless network.
The occupancy status of a table is monitored by contact sensors attached to each seat around the table, whereby a customer sitting on it will trigger a change in signal sent from the cluster sensor node to the cluster head node.

Implementation

The implementation will be realized with ESP32 microcontrollers with WIFI and Bluetooth capabilities. We plan to implement communication within cluster with BLE star topology network cluster, while the updating of the remote database will be done over WiFi by the cluster head node.
The occupancy of the seat is detected by a simple capacitive touch sensor, which is cheap to make and does not cause discomfort to the customers.

Telegram Bot

Introduction

Provides a convenient and user-friendly interface for students to check for updates regarding available seats, on one of the most popular messaging platform in the university.
The telegram bot offers not only restaurant occupancy updates, but also provides notification services and data analytics features for business owners and casual users alike.

Implementation

The bot is written in Python with the use of a plethora of libraries, from python-telegram-bot to matplotlib. As of now, it is hosted on Heroku and is currently accessible at @spaceynusbot. You can also use the software from our latest release to generate your own floor plan!

Node Manager

Introduction

A Node manager is set up to allow network administrators to synchronise the geographical location of the sensors in the restaurant spaces with database, which can allow the image procesor code to generate the image to reflect the istribution of occupied seats which will be relayed to the client.
You can download the software from our latest release to create your own output graphic from floor plan files!

About

An implementation of a Sensor Network using NimBLE stack. Currently designed to tackle seat occupancy monitoring problems.

Resources

Stars

Watchers

Forks

Packages

No packages published