Lintang Wisesa
Published © GPL3+

Arduino MKR1000 & Thinger

A simple Internet of Things experiment, using an Arduino MKR1000 board to control two LEDs and monitor a potentiometer, via Thinger.io.

BeginnerFull instructions provided1 hour1,845
Arduino MKR1000 & Thinger

Things used in this project

Hardware components

Arduino MKR1000
Arduino MKR1000
×1
LED (generic)
LED (generic)
×2
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×5

Software apps and online services

Thinger.io Platform
Thinger.io Platform
Arduino IDE
Arduino IDE

Story

Read more

Code

Arduino MKR1000 & Thinger

C/C++
#define _DISABLE_TLS_
#include <WiFi101.h>
#include <ThingerWifi101.h>

#define USERNAME "your_thinger_username"    // Thinger username
#define DEV_ID "your_device_id"             // Thinger device ID
#define DEV_CRED "your_device_credential"   // Thinger device credential

#define SSID "your_wifi_name"               // wifi SSID
#define SSID_PASSWORD "your_wifi_password"  // wifi password

ThingerWifi101 thing(USERNAME, DEV_ID, DEV_CRED);

void setup() {
    pinMode(0, OUTPUT);
    thing.add_wifi(SSID, SSID_PASSWORD);
    thing["led"] << digitalPin(0);
    thing["led2"] << analogPin(1);
    thing["pot"] >> outputValue(analogRead(A0));
}

void loop() {
    thing.handle();
}

Credits

Lintang Wisesa

Lintang Wisesa

21 projects β€’ 91 followers
πŸ” Full Snack Develaper

Comments