AT commands works just fine i just cant connect to the internet i think from the ESP. ( i am using a hotspot from a mobile phone)
My code is:
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "e82774e2ccda47cbb50b107fc9f8a0f3";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Android AP";
char pass[] = "12345678";
// Hardware Serial on Mega, Leonardo, Micro...
//#define EspSerial Serial1
// or Software Serial on Uno, Nano...
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(0, 1); // RX, TX
// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200
ESP8266 wifi(&EspSerial);
void setup()
{
// Debug console
Serial.begin(115200);
delay(10);
// Set ESP8266 baud rate
EspSerial.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(auth, wifi, ssid, pass);
}
void loop()
{
Blynk.run();
}
I did connect the ESP8266 like this
Vcc -> 3.3V
CH_PD ->3.3V
RST -> 3.3V
GPIO 0 -> 3.3V via a resistor 2k
GPIO 2 -> 3.3V via a resistor 2k
GND -> GND
Tx -> Tx
Rx -> Rx
I tried to connect it like the tutorial on the web but none of them worked with at commands, so i connectet it like this
I did now change to 9600 with AT commands, i was also now succeding in connectet the ESP8266 to the phone only using AT commands, but when i run this code
my error is still
[603] Connecting to AndroidAP
[1619] Failed to disable Echo
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "e82774e2ccda47cbb50b107fc9f8a0f3";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "AndroidAP";
char pass[] = "12345678";
// Hardware Serial on Mega, Leonardo, Micro...
//#define EspSerial Serial1
// or Software Serial on Uno, Nano...
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(0, 1); // RX, TX
// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600
ESP8266 wifi(&EspSerial);
void setup()
{
// Debug console
Serial.begin(9600);
delay(10);
// Set ESP8266 baud rate
EspSerial.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(auth, wifi, ssid, pass);
}
void loop()
{
Blynk.run();
}
I also now connected the esp8266 like this and got at commands working
Vcc -> 3.3V
CH_PD ->3.3V
RST -> not connectet
GPIO 0 -> not connectet
GPIO 2 ->not connectet
GND -> GND
Tx -> Tx
Rx -> Rx
Hey Costas, now all this works just fine, now i have to read some sensor values and get them in to the blynk app, its a ntc resistor and a LRD. This is a final year student project, but this part i really need help for. I would love to pay you for helping me if you want that, it would only require half an hour or less of your time
@Mark_Rohrbeck student grants must be better than they were in my day
I’ll PM my IBAN and Swift code for my Swiss Bank account.
Do you know the hourly rate of a good coder?
I am not asking for more than 30 minutes of your time on skype or so, i could paypal you the money, or IBAN and swift, does not matter to me? how much do you want for it?
@Costas, fyi, even the chinese fake arudino unos what i use all work perfectly with 115200 baud. at least this is what i use in all my projects with arduinos for serial monitor on pc. what it matters, a good quality and not too long usb cable.
(also, if you look carefully, when uploading sketch with verbose output, the default baud rate listed is 115200)