Giter Club home page Giter Club logo

smart-pi-edge's Introduction

PI-EDGE DOCS

Install Dependencies:

On windows:

pip install --upgrade firebase-admin
pip install pandas
pip install flask

On Raspberry pi:

sudo pip3 install firebase-admin
sudo pip3 install xlrd
sudo pip3 install openpyxl
sudo apt-get install python3-pandas
sudo apt-get install libatlas-base-dev
Certificate:

Get smart-mobile-application-de8a1d29af3c.json from Me and place it in files folder

Configs:

Update the ser variable into src/edge-processor/edge_receiver.py to your serial port.

Device and Pins Setup:

Connect RC522 RFID reader to Arduino UNO through this PIN setup:

RFID-RC522 Arduino UNO
3.3V 3.3V
RST PIN 9
GND GND
IRQ -
MISO PIN 12
MOSI PIN 11
SCK PIN 13
SDA PIN 10

Connect Micro:bit cart device to Arduino UNO through this PIN setup:

Micro:bit Arduino UNO
GND GND
PIN 0 PIN 2
PIN 1 PIN 3

Connect Micro:bit edge device to Raspberry PI using USB.

Source Codes:
/edge-processor
File Description
edge_receiver.py Main executable file for Raspberry PI device
edge_flask.py Flask Web Server for sMart
excel_utility.py Utility tool for reading sheets from mapping.xlsx
firestore_utility.py Utility tool for connection with Firestore
recommendation_utility.py Utility tool for recommendation logic and triggers
path_utility.py Utility tool for path generation logic and tools
micro-edge.js Receives data from micro-cart and relay to edge_receiver.py through USB Serial
/sMart-cart
File Description
arduino-cart.ino Reads from RC522 and transmit data to micro:bit using SoftwareSerial.<
Requires MFRC522 library installed through Arduino library manager.
micro-cart.js Maintains the item state of cart.
Receives data from Arduino and relay actions to micro-edge through radio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.