-->
Page 1 of 4

esp-05

PostPosted: Thu Dec 04, 2014 12:50 pm
by ricg
Hi, has anyone used this version of the 8266 successfully with arduino ?
Questions:
1. does the module have an led indicating power up ? I have not see this with mine ( can't tell if it's working ).
2. is it (out of the box) 9600 baud as i have seen in various posts?
3. Does the reset pin need to be connected in order to boot the module ?
My first attempt:
arduino uno with 3.3v and gnd connected to the 05, and arduino sw serial (9600) defined rx on pin 10 to 05's TX.
i did not connect the TX from arduino to 05 module due to 3.3v tx,rx.
Using the standard Serial.print to send what ever comes in on pin 10 to serial monitor i get nothing.
Thanks for any hwlp with this.

Re: esp-05

PostPosted: Sun Dec 07, 2014 12:25 am
by ricg
In case anyone is interested in using the esp8266-05, here's what i've found:
1. there is no led that lights when you power the chip.
2. soldering the pins to the 05 is a B!
3. it comes with the latest fw and baud is 9600
4. hold the reset pin low to reset
5. chip draws ~70mA ( i was converting 9v to 3.3v using an lm1117 and couldn't get readable output at any baud rate, turned out my batter was a little low. switched to a new battery and all was well) make sure you have good power, i don't suggest using 3.3v from arduino.
Tried using a voltage divider circuit for the arduino TX to esp RX, but that didn't work. need to look into that. in the meantime i connected this directly and it works fine. but realize i could be doing damage to the esp.

This code allowed me to send cmd's to the esp and receive it's output.


#include <SoftwareSerial.h>

/* This sketch allows entering AT cmds to control
the esp8266-05
*/

// Arduino RX=10,TX=11 connected to TX,RX on esp8266-05
SoftwareSerial mySerial(10, 11);

void setup()
{
Serial.begin(9600);
Serial.println("starting esp8266 comm sketch");

// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
}
char cmd[32];

void loop()
{ int i=0;

if (mySerial.available()) // input from the esp8266
Serial.write(mySerial.read()); // write to host

while (Serial.available()) {
cmd[i]=Serial.read(); // buffer cmd
i++;
delay(5);
}

if( i ) { // if host sent us cmd
cmd[i]=0;
mySerial.println(cmd); // send to esp8266
}
}

Re: esp-05

PostPosted: Tue Dec 09, 2014 1:30 am
by ricg
Played with it for a while now, works great in all modes. Power is important, the ~70 i mentioned is for normal running, but it definitely pulls much more when transmitting, i've heard 300mA, so very important to have a good power supply. I switched to a wall plug.
access point: had to do a little research to get this working, here is the short story.
AT+CWMODE=2
AT+CIPMUX=1
AT+CWSAP="esp826605","passwd",1,0

ssid=esp826605
pass=passwd
channel=1
enc=0 // no encryption.

Re: esp-05

PostPosted: Sat Dec 20, 2014 6:38 pm
by quantalume
Thanks for posting your experiences. Have you tried updating the firmware? According to this thread: viewtopic.php?f=13&t=295, it appears that you need to lift the GPIO0 pin of the processor to do so.