A simple IoT (Internet of Things) experiment using Arduino/Genuino MKR1000 and Blynk. Watch the video below (click here) to see its action, then follow the instructions to build your own!
To build this project, you need the following items:
- 1 Arduino/Genuino MKR1000 board
- 2 LEDs
- 1 Potentiometer
- 1 breadboard
- some jumper wires
- Arduino IDE (download here)
- Blynk mobile app
- Android (download here)
- iOS (download here)
- WiFi101 library (read how to install here)
- Blynk library (download here)
-
Open Blynk app, login then create a new project. Choose device: Arduino MKR1000 with connection type: WiFi. Click Create button & you will receive Blynk Auth Token by email.
-
On your project, add 2 button widget & a gauge. Set each widget as the picture below.
-
First, extract Blynk library then copy it to C:\...\Documents\Arduino\libraries.
-
Open Arduino IDE then copy sketch below. Insert your WiFi SSID, WiFi password & Blynk Auth Token. Make sure you have chosen the right option for Board and Port under Tools menu. Upload it!
#define BLYNK_PRINT SerialUSB #include <SPI.h> #include <WiFi101.h> #include <BlynkSimpleWiFiShield101.h> char auth[] = "Blynk_Auth_Token"; char ssid[] = "Your_WiFi_Name"; char pass[] = "Your_WiFi_Password"; void setup(){ SerialUSB.begin(9600); Blynk.begin(auth, ssid, pass); } void loop(){ Blynk.run(); }
- After uploading done, make sure your Arduino MKR1000 & smartphone has a good internet connection. Click play button
▶️ on top right corner of your Blynk project, then you're ready to go! Have fun!
Lintang Wisesa 💌 [email protected]
Facebook | Twitter | Google+ | Youtube | :octocat: GitHub | Hackster