hello blynkers… i want to control arduino uno with Blynk… im using Ethernet Shield W5100 to connect arduino to blynk server and upload Arduino Ethernet Manual sketch to Arduino Uno… and i got this when opening Serial Monitor… Can you help me?
sorry for my bad english…
Thanks.
Hello. Please attach full sketch.
/**************************************************************
- Blynk is a platform with iOS and Android apps to control
- Arduino, Raspberry Pi and the likes over the Internet.
- You can easily build graphic interfaces for all your
- projects by simply dragging and dropping widgets.
- Downloads, docs, tutorials: http://www.blynk.cc
- Blynk community: http://community.blynk.cc
- Social networks: http://www.fb.com/blynkapp
-
http://twitter.com/blynk_app
- Blynk library is licensed under MIT license
- This example code is in public domain.
- This example shows how to configure static IP with Ethernet.
- Be sure to check ordinary Ethernet example first!!!
- NOTE: Pins 10, 11, 12 and 13 are reserved for Ethernet module.
-
DON'T use them in your sketch directly!
- WARNING: If you have an SD card, you may need to disable it
-
by setting pin 4 to HIGH. Read more here:
-
https://www.arduino.cc/en/Main/ArduinoEthernetShield
**************************************************************/
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “58d599d309e349b49e70349f5ab23e85”;
IPAddress server_ip (10, 0, 0, 10);
// Mac address should be different for each device in your LAN
byte arduino_mac[] = {0x90, 0xA2, 0xDA, 0x0D, 0x22, 0x2B};
IPAddress arduino_ip ( 192, 168, 0, 2);
IPAddress dns_ip ( 8, 8, 8, 8);
IPAddress gateway_ip ( 192, 168, 0, 1);
IPAddress subnet_mask(255, 255, 255, 0);
#define W5100_CS 10
#define SDCARD_CS 4
void setup()
{
pinMode(SDCARD_CS, OUTPUT);
digitalWrite(SDCARD_CS, HIGH); // Deselect the SD card
Serial.begin(9600);
Blynk.begin(auth, “blynk-cloud.com”, 8442, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
// Or like this:
//Blynk.begin(auth, “blynk-cloud.com”, 8442, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
}
void loop()
{
Blynk.run();
}
It’s like people don’t even read the FAQs…
/**************************************************************
* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*
* Downloads, docs, tutorials: http://www.blynk.cc
* Blynk community: http://community.blynk.cc
* Social networks: http://www.fb.com/blynkapp
* http://twitter.com/blynk_app
*
* Blynk library is licensed under MIT license
* This example code is in public domain.
*
This example shows how to configure static IP with Ethernet.
Be sure to check ordinary Ethernet example first!!!
*
NOTE: Pins 10, 11, 12 and 13 are reserved for Ethernet module.
DON'T use them in your sketch directly!
*
WARNING: If you have an SD card, you may need to disable it
by setting pin 4 to HIGH. Read more here:
https://www.arduino.cc/en/Main/ArduinoEthernetShield
*
**************************************************************/
define BLYNK_PRINT Serial // Comment this out to disable prints and save space
include
include
include
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "58d599d309e349b49e70349f5ab23e85";
IPAddress server_ip (10, 0, 0, 10);
// Mac address should be different for each device in your LAN
byte arduino_mac[] = {0x90, 0xA2, 0xDA, 0x0D, 0x22, 0x2B};
IPAddress arduino_ip ( 192, 168, 0, 2);
IPAddress dns_ip ( 8, 8, 8, 8);
IPAddress gateway_ip ( 192, 168, 0, 1);
IPAddress subnet_mask(255, 255, 255, 0);
define W5100_CS 10
define SDCARD_CS 4
void setup()
{
pinMode(SDCARD_CS, OUTPUT);
digitalWrite(SDCARD_CS, HIGH); // Deselect the SD card
Serial.begin(9600);
Blynk.begin(auth, "blynk-cloud.com", 8442, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
// Or like this:
//Blynk.begin(auth, "blynk-cloud.com", 8442, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
}
void loop()
{
Blynk.run();
}
Saved you getting yelled at.
What is that?
i don’t know… it’s default… i’ve tried pinging 10.0.0.10 but i got “request timed out”
what must i do with that?
i already reading some FAQ like turning off firewall, use telnet… but it’s still like that…
?
This should be Blynk server host or IP and not some random IP.
i think so… but why i can’t connect to blynk server?
oh… for connecting ethernet to blynk server i directly connect ethernet to laptop that has been connected to internet… not using router…
You should comment out that line as it doesn’t look like it is being used in your sketch.
Have you connected to other sites with the W5100?
Does the W5100 with IP of 192.168.0.2 appear in your routers GUI as a connected device?
What do you get if you enter your token in the following url from a web browser?
i never use W5100 to connect to other sites.
i’m not using router but directly connect ethernet to laptop that have internet access…
i got this when entering that url…
{“id”:1,“name”:“Led pin 7”,“createdAt”:1484544943741,“updatedAt”:1484557499785,“widgets”:[{“type”:“BUTTON”,“id”:1,“x”:0,“y”:0,“color”:600084223,“width”:2,“height”:2,“tabId”:0,“label”:“D7 Led”,“deviceId”:0,“pinType”:“DIGITAL”,“pin”:7,“pwmMode”:false,“rangeMappingOn”:false,“min”:0,“max”:1,“value”:“0”,“pushMode”:false}],“devices”:[{“id”:0,“name”:“New Device”,“boardType”:“Arduino UNO”,“token”:“58d599d309e349b49e70349f5ab23e85”,“connectionType”:“ETHERNET”,“disconnectTime”:0}],“theme”:“Blynk”,“keepScreenOn”:false,“isAppConnectedOn”:false,“isShared”:false,“isActive”:false}
Aside from all the wrong IP addresses and such… (you appear to be are using an unconfigured sketch for static IP).
Are you trying to connect your Arduino/Ethernet Shield via internet sharing on a laptop??
If so, just don’t (at least for now). Plug your Arduino/Ethernet Shield directly into a router, go to this link:
Enter your hardware settings and start with a basic sketch, like BlynkBlink
i already connect the ethernet to router… but there is no effect… do I have to equate the ip from the router into the arduino??
Start with the link and the examples.
i got this… i cant directly connect ethernet to the router so connect it through a hub…
[0] Getting IP…
[60158] DHCP Failed!
[1] Getting IP…
[60160] DHCP Failed!
[0] Getting IP…
[60160] DHCP Failed!
[0] Getting IP…
[60160] DHCP Failed!
[0] Getting IP…
[60160] DHCP Failed!
[0] Getting IP…
[60160] DHCP Failed!
[0] Getting IP…
One last attempt
Is the hub at least attached to the router? (And hopefully a real ethernet hub, not another PC using internet sharing). And do you have anything else (like the laptop you are programming the UNO with?) to plug into that hub to confirm DHCP and internet access is available through it?
Did you follow this link, chose the correct options and install the Blynkblink sketch?
If so… then please post your properly formatted sketch.
already do it but… but nothing changes…
help
hey… my blynk now it’s work… i connect ethernet shield directly to laptop… and set the laptop to " allow to share connection through lan port" … it’s work… thanks for you all
We knew you could do it