Once in a blog we told how our head of the training department and a wonderful programmer Eugene created a Martian clock and at the same time won a competition . And then - how he designed the Smart House system with his own hands. So, today we'll talk again about DIY electronics and a fundamentally new home control system that Eugene created from scratch to replace the previous one.
I am engaged in everything related to electronics and programming of electronic devices from the university. This is my profession - I studied to be an instrument maker. And it turned out that I work as a developer, and my hobby is related to the profession.
- Eugene, developer
The idea of ββa βsmart homeβ haunted engineers back in the 50s: then the first house with buttons appeared, where all everyday tasks were solved by pressing a specific button. In 1966, using a single system, it was already possible to adjust the indoor climate and turn on / off appliances.
Β« Β» 70- 433 . : , . β . Wi-Fi, .
β 5 , Arduino (- ). , Arduino «», . 4 β . , , : , , , .
2016- , Arduino . ( ) ( / ), :
β , , «»: . - , , , Β« Β». 2019-.
, ( , , ). , , . Wi-Fi JSON (, ).
, , - . - , ( ), : .
, , , , . , , Β« Β» . , : , , .
β ,
. , , ?! , .
β MajorDomo, . , , - . β PHP MySQL ( ). , , MySQL - .
, PHP , - , .
β ,
β Home Assistant, Python Unix- ( ). , β . , Home Assistant , . ( ): . , .
: Β« Β»
, , :
- β : , , .
- β , : -, .
- : MQTT- Node.JS.
β Raspberry PI 3b+. 2β3 , . : MicroSD, . - HDD- MicroSD. : Raspbian, β , Linux-, . β .
β NodeMCU V3, ESP8266, Arduino. , Arduino β , , USB . C++.
Arduino , USB-, . NodeMCU V3, , Β« Β» Wi-Fi β , , .
:
- BME280
, , . 200 , . - PIR-,
: , , , - . , , . - RC522
, . , , :)
, RFID -, - . , , . - , β . , , . - SIM800L
, . GSM/GPRS-. , . -SIM-, , , SMS- . , - , . , , . - MH-Z19
, . , ? CO2 ( , ), . β , β . β .
2 , 2 : β , β . ( β ): , , . , , CO2 .
, - , . JSON-: http-. , , . MQTT, . 2016- , .
β Broker, . : Publisher ( Broker) Subscriber ( ). , Subscriber - (, ), . , .
:
β NodeMCU, . :
- BME280;
- CO2 β MH-Z19;
- OLED-, .
I2 UART β . , .
:
Arduino, NodeMCU -. RFID -. Arduino- . Arduino UART.
: GSM
- .
β . , . , : , , . , β . 2 $, , - . , β - . , 150 1000 :)
- AliExpress, : , . , GSM . , 3D- .
β , - . :
- Openweather β , .
- Macroscope β ( , , 18 , API 18 ).
- β : , , , .
, :
β Vue.js, , Nuxt.js, Vue.js. mongoDB ( ).
( ) MQTT-, , , , . Public, . Socket IO β Java Script, - . (, ). , MQTT β Public Socket IO «».
β . , , -, - . ( , , -), .
, : «», «», http- webhook β . , .
. , , . , : , . , 3- , , :) . , : . , , , . , , «» «».
, . , - .
- Nuxt. js ( Vue. js MongoDB).
- β 5 ( , ).
- PM2 process manager ( Node. js) β : , «», . , . , 4, 4 , , - «».
- Wi-Fi, , .
- β .
- β : .
, MQTT:
- β . : , ( «» «» ), , /.
- β - . , : , . , β -: 1 β ; 2 β (, , ); 3 β .
Google Assistant
Google Assistant β , Β«, ...Β». Siri Apple. , API Google Assistant, Β«, , Β» Β«, , ?Β». , , .
Β«!Β», Android Β« Β». . - , : . -, . -, .
- , Google Assistant. β . : Google Home β , . β : , , Wi-Fi. Google Station, , - . , Google Assistant . .
β ,
β - , . , :)
β Raspberry PI 3b+ . 4 . 9 540 , .
, Β« Β» SMS push-. .
, - Β« Β».
β Sherlock, Wi-Fi . , RFID . β , (, , , ?).
Β« Β». mac- β , , β . . , Β« Β»: , , , :)
, , β ZigBee-. ZigBee β . , β Wi-Fi. β . - , Wi-Fi ( , , ).
ZigBee :
β , . ( , ), β , . : . , ZigBee- , : , .
, , , . : , Xiaomi, ( , ). , : USB-, USB- , .
, , . - , , . .
, Xiaomi, IKEA Aqara : , , , Xiaomi. , .
β ,
:
:
, Β« Β» -. β , : !