Discovering Blynk… and making it work on DFRobot WiDo

I discovered Blynk last week.

Blynk01

Blynk

Create an app for any connected project or product based on Arduino, Raspberry Pi, ESP8266 and other hardware

 

I saw it could work with Adafruit CC3000 breakout board… and WiDo is working with this library. So lets test it !

  • Grab a WiDo
  • Add the proper libraries
  • Connect 3 leds to the WiDo on pin 11, 12 and 13 (but any other pin will do !).
  • Download this sketch
  • Rename config.h.sample into config.h and customize the values depending on your environment
  • Upload  on the WiDo (don’t forget to specify the proper board : it’s a Leonardo clone)

And that’s it !

You’ll notice the code is rather simple : almost all the magic happens in Blynk.run() whicg updates the led status when you press a button on Blynk App and a bit in Blynk.virtualWrite() which sends a value on virtual pin 1 and is used to blink a virtual led.

[youtube width=”560″ height=”315″]https://youtu.be/pt1i4p4ZD6M[/youtube]