Coder Social home page Coder Social logo

jakhax / esp9266_rfid_lock Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 2.6 MB

rfid lock system with micropython esp8266 and a flask back end to create and manage rfid tags.

Python 77.41% HTML 21.13% Shell 0.63% Mako 0.82%
esp8266 rfid rc522 flask micropython micropython-esp8266

esp9266_rfid_lock's Introduction

ESP8266 RFID Lock System

An RFID Lock system with an esp8266 on micropython and a flask back end.

NOTE This project is not production ready and secure, its meant to be a learning material.

Installation

git clone https://github.com/jakhax/esp9266_rfid_lock/

Creating a virtual environment

sudo apt-get install python3.6-venv
python3.6 -m venv virtual
source virtual/bin/activate
pip install -r requirements.txt
pip install -r requirements-esp32.txt

Install firmware on ESP866/ESP32 with Micropython

See the following resources to get started and install micropython.

get python usb repl.

  • you require picocom for this, sudo apt install picocom
picocom -b 115200 /dev/ttyUSB0

deploy rfid reader code

ampy --port /dev/ttyUSB0 put reader/lock.py
ampy --port /dev/ttyUSB0 put reader/mfrc522.py
ampy --port /dev/ttyUSB0 put reader/main.py

deploy rfid writers code

ampy --port /dev/ttyUSB0 put reader/_server.py
ampy --port /dev/ttyUSB0 put reader/mfrc522.py
ampy --port /dev/ttyUSB0 put reader/main.py

Flask Server

Setup DB

Create Database preferably on postgres, then add its url to config.py or set it as a env variable DATABASE_URL

Run migrations python manage.py db migrate

Running in development

python manage.py runserver

Open the app on your browser, by default on 127.0.0.1:5000.

References

License

This project is licensed under the MIT Open Source license.

esp9266_rfid_lock's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.