BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Connecting Arduino UNO Rev2 WIFI to blynk app


#1

I have tried connecting the Arduino to the blynk app using the following code:

and have tried changing the device in the blynk app to arduino uno and arduino mkr1000 however, the app says the arduino isn’t online when i run the code from the online arduino IDE.


#2

Despite the UNO in it’s name, this looks like a totally different beast…

You will probably be best off using Generic Board in the App an sticking with virtual pins and Blynk functions like BLYNK_WRITE() and Blynk.virtualWrite() in the sketch.


#3

So I’ve tried changing the device in the blynk app to generic board (wifi) but the app says that the device isn’t online when i run the code i linked above. Is it possible that my arduino is not compatible with blynk as i read something about it having to use AT commands which i am unsure of?


#4

Entirely possible, it is a different chip form the usual Arduino UNO, but I don’t know for sure as I do not have that board.

As a random guess, I would recommend trying the Arduino UNO with Arduino WiFi Shield sketch to see if that will at least connect.

https://examples.blynk.cc/?board=Arduino%20Uno&shield=Arduino%20WiFi%20Shield&example=GettingStarted%2FBlynkBlink


#5

This is what I find on the Bylnk GitHub page related to " Supported Hardware":

“Arduino UNO WiFi Rev.2 (use the example for MKR WiFi 1010)”

So it should work with the example code used by @lieuloo and the usual adaptions to auth[], ssid[], pass[]


Arduino uno wifi rev 2
#6

I’ve now tried using the sketch for the arduino uno with the arduino wifi shield whilst setting the device in the blynk app as the arduino uno which didn’t work. So now I am trying the sketch for the MKR WiFi 1010 but there isn’t an option to choose that device in the app, what device should I choose? I’ve also double checked that the values for auth[], ssid[] and pass[] are all correct.

BTW I have my arduino connected to my laptop via a usb cable if that helps?


#7

@IBK Thanks for the reminder :slight_smile: I see it now. But my guess was close as the only difference between the two options with the Arduino WiFi Shield (the closest option I can think of for this board) is the use of SerialUSB instead of Serial for debug. It appears the connection to the “WiFi” is internal with the BlynkSimpleWiFi.h library

@lieuloo as mentioned use Generic Board… all the choices in the App do are designate the available pins to use for direct pin manipulation, a totally irrelevant feature when using Virtual Pins.

If you still cannot connect, then there may be other issues at play like an error in the Auth (just reset it in the device settings in the App and try again) or something in your network preventing proper device to cloud connection?


#8

It’s finally working! Just tried resetting the auth code and it worked. Thanks so much for the help and hope you guys have a happy new years.