Skip to content

IoT app with using ESP8266 microprocessors and Linux backend REST server

Notifications You must be signed in to change notification settings

tRuNKator/IoT-Switch

 
 

Repository files navigation

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

Device 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":""}' \
	https://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"}]}' \
	https://127.0.0.1:5000/esp/JsonToArg/

About

IoT app with using ESP8266 microprocessors and Linux backend REST server

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 60.2%
  • JavaScript 22.3%
  • C++ 8.0%
  • HTML 4.8%
  • Python 4.7%