Home Automation with Arduino MKR1000 and Windows 10
Nowadays, technology makes our lives easier. It evolves with huge steps and makes it easy for us to create great projects with low cost. So, by using technology we can build a really great home automation system. With the use of an Arduino MKR1000 board with it’s Wi-Fi capabilities in combination with Windows 10 we can create a smart home that could also help people with movement difficulties control every device in the house with one click from their Windows 10 device.
What will you Build?
You will build a home automation system with which you can control every electric device in your house, such as a light bulb, the air condition, a fan, the water heater and anything else you want. You will be able to control your devices through a Windows 10 device (computer, tablet, smartphone) by developing a Universal Windows App (UWA).
In order to control mains voltage current from a lower voltage device (3.3V) we will use relays. We will need one relay for every device.
While connecting the relay to your device be sure to UNPLUG the device from the wall socket, else there is high RISK OF ELECTRIC SHOCK. After making the connection use insulating tape to insulate the bare cables.
Using Firmata Library with Arduino
In order to control Arduino remotely (through the UWA) we need to upload StandardFirmataWiFi to the Arduino MKR1000.
In the Arduino IDE, update the Firmata library to the latest version available from “Library Manager” (Sketch -> Include Library -> Manage Libraries…).
Open: File -> Examples -> Firmata -> StandardFirmataWiFi.
Go to wifiConfig.h tab and comment the line (by adding // in the beginning)
#define ARDUINO_WIFI_SHIELD and uncomment the lines (by removing //)
define WIFI_101 and
#define STATIC_IP_ADDRESS 192,168,1,113. Replace the predefined Static IP Address with one of your choice. Then replace
your_network_name with your router’s ssid and
your_wpa_passphrase with the password. Note that if your router has WEP security or no security you will need to comment the line
#define WIFI_WPA_SECURITY and uncomment
#define WIFI_WEP_SECURITY or
#define WIFI_NO_SECURITY respectively. For WEP fill in your password in
wap_key variable instead of
You are ready to upload the sketch to your Arduino MKR1000.
JLCPCB – Prototype 10 PCBs for $2 + 2 days Lead Time
China’s Largest PCB Prototype Enterprise, 300,000+ Customers & 10,000+ Online Orders Per Day
Inside a huge PCB factory: https://www.youtube.com/watch?v=_XCznQFV-Mw