Search the forum or do a Google search, you’ll find what you need.
Pete.
Search the forum or do a Google search, you’ll find what you need.
Pete.
found this connection on Arduino project hub
" ESP8266:____________ Arduino MEGA:
GND -------------------------- GND
GP2 -------------------------- Not connected
GP0 -------------------------- Not connected
RXD -------------------------- TX
TXD -------------------------- RX
CHPD ------------------------ 3.3V
RST -------------------------- Not connected
VCC -------------------------- 3.3V "
looks good mr.pete ?
Yes, other than the RXD/TXD connections as discussed earlier.
Pete.
i did like the topic you replayed to me
the code
#define BLYNK_TEMPLATE_ID "T**************U"
#define BLYNK_DEVICE_NAME "test"
#define BLYNK_AUTH_TOKEN "x********************************G"
// Send Blynk user messages to the hardware serial port…
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Moh’s iPhone";
char pass[] = "****************";
// Define your ESP8266 baud rate:
#define ESP8266_BAUD 38400
// Tell the Blynk library to use the Hardware Serial port 1 for WiFi..
ESP8266 wifi(&Serial1);
void setup()
{
// Initialise the debug serial port
Serial.begin(115200);
// Initialise the Hardware serial1 port…
Serial1.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(auth, wifi, ssid, pass);
}
void loop()
{
Blynk.run();
}
still the device is offline in blynk website
serial monitor print this
19:37:44.195 → ___ __ __
19:37:44.195 → / _ )/ /_ _____ / /__
19:37:44.195 → / _ / / // / _ / '/
19:37:44.195 → ///_, /////_
19:37:44.195 → /__/ v1.0.1 on Arduino Mega
19:37:44.195 →
19:37:44.706 → [517] Connecting to Moh’s iPhone
19:37:45.685 → [1527] ESP is not responding
Which Mega pins are the ESP-01 connected to?
Are you sure that this is the correct baud rate?
Pete.
ESP —> Mega
3.3v —> 3.3v
EN(CH_PD) —> 3.3v
RX —> TX1(18)
TX —> RX(19)
GND —> GND
GPIO0, GPIO2 and RST not connected
Have you tried using an external power source ?
No but the ESP-01 is blinking Blue light
looks like the power is delivered
Pete.
at 38400
at 115200
i copied the code for Connecting an Arduino Mega to an ESP-01 from
do i need to edit ?
Try this
#define ESP8266_BAUD 9600
Instead of
#define ESP8266_BAUD 38400
same thing
20:07:01.446 → [517] Connecting to Moh’s iPhone
20:07:02.474 → [1527] ESP is not responding
i’m looking online and found that ESP need to get flashed
i didn’t do anything to my ESP-01
just connected it to my arduino mega and uploaded the code
You seem to be getting confused between the serial baud rate that you’re using for debugging, and the baud rate that you’re using for communication with the ESP-01.
The ESP-01 needs to be running the factory AT firmware. If it’s a new ESP-01 out of the packet then it won’t need anything doing to it.
If you’ve previously uploaded a sketch to the ESP-01 then the AT firmware will have been overwritten and you’ll need to restore the AT firmware. All of this is explained in the tutorial I linked you to.
Pete.
so what do i need to do for successful connection to blynk
Establish whether your ESP-01 is running the AT firmware, and what baud rate it’s using.
An FTDI adapter is the easiest way to do this.
Pete.
don’t have it
is there a certain name for this process so i can search and determine what is firmware and the baud rate ?
I’d suggest using a different hardware like esp32 or nodemcu instead.
I’d try changing this…
to each of the standard baud rates from 9600 onwards and see if any of them work. Otherwise buy yourself an FTDI or ESP-01 to USB adapter and you’ll be able to work-out what’s happening when you boot the device. You’ll also need this if you need to update the firmware.
However, as @John93 has said, you’d be better-off abandoning this prehistoric hardware and going for an ESP8266 or ESP32 if that’s possible.
The cost of doing that would probably be less than an FTDI adapter.
Pete.
@Kamran please keep the discussion in one place, to keep the forum organized.
You already have an opened topic