Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.03 KB

File metadata and controls

29 lines (23 loc) · 1.03 KB

microcontroller

Arduino sketch for smart home

Instalation

Connect your Arduino to the PC, set up drivers if needed. Download Arduino IDE. Clone microcontroller repo on your PC. Arduino IDE contains the bootloader which you should use. Here you find a Tutorial.

Deatails

Using this code we can manage devices connected to the Arduino via Serial port. Also, we can receive info from buttons. In my case buzzer simulate alarm, button simulate door open/close, stepper motor open/close window

Serial commands

 1234>led-on:2|        // enable light in room #2 (1234 - secret)
 1234>led-Off:4|       // disable light in room #4
 1234>win-set:50|      // open window on 50 percent
 1234>pin-code:5678|   // enable or diable alarm (5678 - alarm pin code)

Schema

alt text

TODO

  • add comments in the microcontroller codebasse
  • improve error handing