Go Down

Topic: ESP8266 (Read 101698 times) previous topic - next topic

Harikishore

Hey guys,
               I'm getting an error on this code for esp8266.
             
               Here is the code

               
Code: [Select]

#include "ESP8266WiFi.h"
// WiFi parameters
const char* ssid = "hari1234";
const char* password = "hari1234";
void setup(void)
{
// Start Serial
Serial.begin(115200);
// Connect to WiFi
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
// Print the IP address
Serial.println(WiFi.localIP());
}
void loop() {
}


 
         I'm supposed to get "Wifi Connected" and "IP address" but i'm getting some garbage data.Here is the screenshot of my serial monitor.Please Help.








spetyo

Arduino uno esp8266 connect with blynk app

https://www.youtube.com/watch?v=_A8iyLPsGAw

mahesh2000

is there a low-cost BLE or Bluetooth SoC alternative to the ESP8266? I'm making a commercial device and I want to reduce form factor. My device is battery operated and I'd like to run it off CR2032 coin cell(s) for 4-5 years. Right now, my esp8266 device uses 3xAA batteries or one CR123a. Thanks!!

ieee488

is there a low-cost BLE or Bluetooth SoC alternative to the ESP8266? I'm making a commercial device and I want to reduce form factor. My device is battery operated and I'd like to run it off CR2032 coin cell(s) for 4-5 years. Right now, my esp8266 device uses 3xAA batteries or one CR123a. Thanks!!
ESP8266 is wifi.

Bluetooth is Bluetooth.

Do you understand the difference between the two?



Whandall

is there a low-cost BLE or Bluetooth SoC alternative to the ESP8266?
The ESP32 will support Bluetooth IIRC.
Ah, this is obviously some strange usage of the word 'safe' that I wasn't previously aware of. (D.Adams)

ieee488


The ESP32 will support Bluetooth IIRC.
Hopefully it will "reduce form factor". 



JoaoLopesF

Hi,

I just made an Arduino library for ESP8266:

- RemoteDebug, an Arduino library to remote debug over telnet connection.

Use Print commands like Serial and see it with telnet client.
First debug for Arduino with debug levels that I saw.

Please access: https://github.com/JoaoLopesF/RemoteDebug

Or access this video thats shows 3 nodes of ESP8266 been debugging at same time!
https://youtu.be/lOo-MAD8gPo

Suggestions, issues and contributions are welcome.

Regards

Joao Lopes

herbeysoft

please what is the best solution for esp8226 with Arduino error..
such as espcomm syn_failed

Harikishore

please what is the best solution for esp8226 with Arduino error..
such as espcomm syn_failed
Did you select esptool as programmer.

http://www.whatimade.today/esp8266-easiest-way-to-program-so-far/

tduggan63

I have tried to connect ESP8266 (version 12) module to Arduino Uno. I have wired it as follows:
Arduino --- ESP8266
RX        --- TX
TX        --- RX
3.3V     --- VCC ; CH_PD ; GPIO 2
GND     --- GND ;  GPIO15


When I type AT into serial monitor on Arduino IDE, I get no response.
I want to use this module as an Arduino Shield with the Arduino to connect to iOS App, but cannot simply get it to connect and respond to Arduino.

Looking for urgent replies,

Regards,

Tara

mistergreen

#115
Feb 17, 2017, 09:46 pm Last Edit: Feb 17, 2017, 09:47 pm by mistergreen
I have tried to connect ESP8266 (version 12) module to Arduino Uno. I have wired it as follows:
Arduino --- ESP8266
RX        --- TX
TX        --- RX
3.3V     --- VCC ; CH_PD ; GPIO 2
GND     --- GND ;  GPIO15


When I type AT into serial monitor on Arduino IDE, I get no response.
I want to use this module as an Arduino Shield with the Arduino to connect to iOS App, but cannot simply get it to connect and respond to Arduino.

Google the setup before running.

Looking for urgent replies,

Regards,

Tara
You might have killed your esp8266.
The Arduino UNO Serial is sending out 5V signals into your esp8266. YOU need a logic converter to convert the 5V to 3.3v signal.
 

westfw

Quote
When I type AT into serial monitor on Arduino IDE, I get no response.
What Serial speeds have you tried?   Apparently different vendors have shipped ESP8266 modules with different default speeds.  Try all the standard speeds between 9600 and 115200...
(Also, be careful of your line endings...)


HeySammy

Hey Guys,

need some help over here,

I am using ESP8266 01 (black edition) and Arduino mega 2560. Now, I just want to transfer data from arduino mega to thingspeak using esp8266 module.

Connection which I have found through internet I have implemented that in ARDUINO UNO board and it works completeley fine BUT, if that same connection I m doing in ARDUINO MEGA 2560 board then it is showing me the below errors:

warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

Please help me out....Thank you in advance...

habanero

Ditto on connecting the ESP8266 to an Arduino properly. You need to both level-shift the signals AND provide a proper 3.3v power supply as the Arduino's 3.3v pin doesn't provide enough current to properly power the ESP8266. There are now daughterboards for the ESP8266 that do both. I've seen them on eBay for a buck or so. I built my own a while back. Nothing complicated but it has to be done for it to work.

Btw, I'm still communicating with my ESP8266 using standard Serial commands. Is there a decent, reliable library for it at this point, analogous to ones for Ethernet or WiFi shields? I basically wrote my own, in the form of functions to open and close a TCP connection, send an HTTP command, etc., but a standard library would be nice.

sanglems

Facing similar issue with my ESP8266-01 with Arduino UNO R3.

I can't sent the AT command as I am getting loop of FatalException(0) as below as soon as I connect to ESP8266 module: (Can't make out what does this mean)

Fatal exception 0(IllegalInstructionCause):
epc1=0x40201364, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000 ets
Jan 8 2013,rst cause:2,
boot mode:(3,6) load 0x40100000,
len 1856,
room 16 tail 0
chksum 0x63
load 0x3ffe8000,
len 776,
room 8 tail 0
chksum 0x02
load 0x3ffe8310,
len 552,
room 8 tail 0
chksum 0x79
csum 0x79
2nd boot version : 1.5
SPI Speed : 40MHz
SPI Mode : DIO
SPI Flash Size & Map: 8Mbit(512KB+512KB)
 jump to run
user1 @ 1000

Following are my ESP8266 connection details:
1. Vcc - 3.3v external supply (GND connected to GND of 3.3v and GND of 5v of Arduino)
2. CH_PD - 3.3v
3. GPIO0 - Tried keeping 3.3v (Same Error)
                                    disconnected (Same Error)
                                     GND (Same Error)--(Just tried. I know this will be the programming mode)
4. Rx - Rx of Arduino UNO via voltage divider
5. Tx - Tx of Arduino
    (Tried with exchanging Rx and TX)
6. RST - Disconnected (Same Error)
             3.3v (Same Error)
             (Used the GND pulse to reset the ESP8266)

I also tried connecting RESET of Arduino UNO to GND with no success ;( .

I checked the output with all the baud rates keeping "Both NL & CR" option selected. For baud rate 115200 I am getting the above exception. For rest it showing some garbage values.

I have uploaded bareMinimum example in the Arduino UNO to start with.

Any suggestion, pointer will be really appreciated.

Is my module damaged? Never used it with anything other than 3.3v though.

Thanks.

Go Up