GithubHelp home page GithubHelp logo

wkrea / iot-switch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikebionic/iot-switch

0.0 0.0 0.0 14.08 MB

IoT app with using ESP8266 microprocessors and Linux backend REST server

C++ 7.77% Python 3.47% CSS 61.37% JavaScript 22.68% HTML 4.71%

iot-switch's Introduction

Smart Home Esp controllers registration and control project

Used components:

  • ESP8266 ESP-01 Microcontrollers
  • Microcomputer running ARM linux
  • Wifi router
  • Relay
  • 3.3v to 5v converter
  • Power adapter and stabilizator for esp microcontroller
  • Patience

Devices and Systems of the project:

  • Lights and light bulbs control
  • Heater control
  • Cooler control
  • Stove control (SIEMENS stove Reverse Engineered :p )
  • Curtain control
  • TV remote control
  • Smart sockets
  • Window control
  • Water pump control (Water sensor used)
  • Current measurement
  • Water flow measurement
  • CCTV security
  • Fingerprint sensor access control (door builtin)
  • Fingerprint sensor access control (wireless)
  • RFID NFC card access control (Door builtin)
  • SIM900 SMS message control option
  • PIR security sensor devices
  • Face recognition service

Documentations:

Server Side (enUS)

Server Side (ruRU)

Server Side (tkTM)

Smart Home (enUS)

Smart Home (ruRU)

Smart Home (tkTM)


ESP-01 devices have two active pins - Led output (GPIO 2) and Switch (GPIO 0)

Connect those pins in a correctly by schematics and record ESP's ip-address. Add ip address to a database of python server app. Send JSON command to a linux server and let him execute the rest thing.


Compile and run the ESP8266 microprocessor code

check ip addresses to be used check devices and device commands

Esp8266-01 pinout ESP8266-01

NodeMCU-Esp8266 pinout NodeMCU

A4988 Stepper driver pinout A4988

Adafruit Fingerprint Sensor pinout Adafruit fingerprint sensor


API Testing commands

teting /control/

curl --header "Content-Type: application/json" \
	--request POST \
	--data '{"command":"test_local","state":1,"action":""}' \
	http://127.0.0.1:5000/esp/

testing /control/?args

curl --header "Content-Type: application/json" \
	--request POST \
	--data '{"command":"test_local_json","pins":[{"command":"switch_mirror","action":"1"},{"command":"switch_AI","action":"activate"}]}' \
	http://127.0.0.1:5000/esp/JsonToArg/

iot-switch's People

Contributors

mikebionic 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.