MKR1000 Suport?

Hello there !
I saw that the arduino mkr1000 has been included in the last library but well … in the android app, when I have to choose hardware, I can’t see the mkr1000. So I choose “generic board”. I test the connection between the arduino and my phone with this program :

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <SPI.h>
#include <WiFi101.h>
#include <BlynkSimpleMKR1000.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";        // Set to "" for open networks

WidgetLCD lcd(V1);

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
  // Or specify server using one of those commands:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
  //Blynk.begin(auth, ssid, pass, server_ip, port);

  while (Blynk.connect() == false) {
    // Wait until connected
  }

   lcd.clear(); //Use it to clear the LCD Widget
  lcd.print(4, 0, "Hello"); // use: (position X: 0-15, position Y: 0-1, "Message you want to print")
  lcd.print(4, 1, "World");
  // Please use timed events when LCD printintg in void loop to avoid sending too many commands
  // It will cause a FLOOD Error, and connection will be dropped
}
}

void loop()
{
  Blynk.run();
}

the arduino is connected to the server (says “ready” in the serial) but when I launch the program on my phone, nothing happen … I have “edit” the widget just like that : switch on “advanced mode” and pin configured as pin. (I’ve tested with V1 and the result was the same)
thanks for reading !

It should work. Could you try using other widgets, other than LCD?
Maybe just a simple button?
Generic Board is no issue here…

Hi, I tested with an MKR1000 and an LCD widget and it is working fine.
It is quite simple and self-explaining, so I didn’t comment the code…
You should understand how to work with timers, but there are good examples for that.
The widget on my iphone is set to ‘advanced’ and connected to Virtual pin V1

#include <BlynkSimpleMKR1000.h>
#include <SimpleTimer.h>

char auth[] = "your token here ...";
char ssid[] = "your ssid here ...";
char pass[] = "your wifi access point password here ...";

WidgetLCD lcd(V1);
SimpleTimer timer;

void setup()
  {
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
  while (Blynk.connect() == false) {}
  lcd.clear();
  lcd.print(0, 0, "Connected...");
  timer.setInterval(1000L, sendText);
  }

void sendText() 
  {
  lcd.print(0, 1, "Hello World");
  }

void loop()
  {
  Blynk.run();
  timer.run();
  }
2 Likes