the hardware i use is a uno + wifi atmega328p esp8266. 8Mb flash
Ihave upgraded the firmware to AT version 1.1
I have uploaded sketchs esp8266_shield from blynk
• smartphone version andriod 9
• Blynk server version 2.27.19
• Blynk Library version 0.5.3 and 0.6.1
WARNING!
It's very tricky to get it working. Please read this article:
http://help.blynk.cc/hardware-and-libraries/arduino/esp8266-with-at-firmware
Change WiFi ssid, pass, and Blynk auth token to run :)
Feel free to apply it to any other example. It's simple!
*************************************************************/
/* Comment this out to disable prints and save space */
#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[] = "auth";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "sidd";
char pass[] = "password";
// Hardware Serial on Mega, Leonardo, Micro...
//#define EspSerial Serial
// or Software Serial on Uno, Nano...
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX
// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200
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();
}
@Kitty_Visser please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```
These boards are an awful choice for a beginners IoT project, as they represent the worst of all worlds (expensive, bulky, difficult to understand, limited support/documentation etc etc).
If you search the forum you’ll find a number of posts about them, and the RobotDyn version of the same thing. You’ll see that to get these working you needed these settings to be correct:
The ESP AT firmware must be the correct version
The switches must be in the correct positions
The correct pins must be used for the serial communication between the Uno and ESP
The correct must be used for the serial communication between the Uno and ESP
I don’t think you need to use SoftwareSerial with these boards, but if you do then SoftwareSerial won’t work properly at a baud rate of 115200.
If you want an Arduino Uno with WiFi capabilities then the ESP needs to be running the factory (or updated) “AT” firmware. If you upload a sketch to the ESP8266 then you overwrite this AT firmware and you’ll never get the ESP8266 to act as a WiFi modem for the Uno until you re-flash the AT firmware.
If you simply want to use the (more powerful) ESP8266 processor then you can upload the sketch to the ESP8266, but if you do this then you cant use any of the Uno pins that run down the side of the board. Only the pins labelled “ESP Pins” will work, and because they are arranged in a 4x3 cluster with no on-board labels they are more difficult to use compared to the pins on a NodeMCU.
If I get what your saying you will need to flash the default “AT” command firmware onto the 8266. If that it still doesn’t work make sure it has lots of power. Sometimes it works adding a capacitor between power and ground as it just draws a lot of power for a short time.
EDIT The sketch goes on the Arduino and it talks to the network via the 8266s TX and RX pins.
@Kitty_Visser you clearly have no idea what you are doing, and the advice provided by a number of different forum members hasn’t helped point you in the right direction.
This isn’t really a reflection on you, it’s an issue with the hardware you are trying to use for your fisst project.
If you had started with different hardware - say a NodeMCU - then you would have been up and running in a very short time using the Blynk Sketch Builder and you would have found it much easier to start understanding that code and tweaking it to meet your exact needs.
With this hardware there are no ready-made sketch builder examples, and there are so many permutations of ESP firmware, serial/SoftwareSerial settings, baud rate and switch settings that it’s much more difficult to guide you through the process of getting this working.
I really would recommend you spending around $3 and ordering a NodeMCU. You’ll have that working in a few minutes of it arriving.
Take a read of this topic about my thoughts on hardware choices for beginners…