ESP8266 Arrives!

Good news everyone!
My first two ESP8266 modules have arrived!

First thing I did was hook one up to my USB serial adapter and poke around inside.
They are REALLY annoying so far hahaa

I found a good way to mount it on the breadboard is using one or two rows of stackable headers to raise/bend so it fits.
This leaves plenty of room underneath for the wires too!
wpid-wp-1417556621430.jpeg
I got one connected to my WiFi, but I can’t figure out how to do anything else haha…

10818585_354546261385472_1682648906_n 10841528_354546254718806_1924527517_n 10834160_354546271385471_227573354_n 10818842_354546231385475_435118054_n

I made up a sketchy little arduino protoshield, but I think I did the voltage dividers wrong as when I monitor the tx lines I can see the arduino trying to talk, but the esp module isn’t saying anything….
I think maybe I lowered the voltage too much. A friend has some things I could try, or I’m contemplating modding an arduino to 3.3v for this shield.

10814108_354546164718815_1377251317_n 10822264_354546224718809_1872469390_n 10846800_354546184718813_771261920_n

I’ll post up some photos soon, I need to get a digital temp sensor today if I can, trying to make a test little data logger with thing speak. If I can get this working I’ll make one to monitor the letter box and make graphs of what time the mail arrives! 😀

Will update as I do things!
And I may put a whole bunch of reference material here too.

 

I GOT IT WORKING!!!
I did the 3.3v conversion on one of my arduino Unos, and now its uploading data!! 😀

10822715_354546398052125_1390798376_n 10818677_354546354718796_937293101_n 961471_354546924718739_10215617_n10836393_354546331385465_1665828002_n

see:

 

The code im using is:

 

 

 

See below for formatting.diy_bloke

#define SSID “xxxxxxxx”
#define PASS “xxxxxxxx”
#define IP “184.106.153.149” // thingspeak.com
String GET = “GET /update?key=xxxxxxxx&field1=”;
void setup()
{
digitalWrite(0,LOW);
Serial.begin(9600);
Serial.println(“AT”);
delay(5000);
if(Serial.find(“OK”)){
// connectWiFi();
}
}
void loop(){

int t=analogRead(0);
String tempC=String(t);
updateTemp(tempC);
//char buffer[10];
//String tempF = dtostrf(tempC, 4, 1, buffer);
//updateTemp(tempF);
delay(4000);
}

void updateTemp(String tenmpC){
String cmd = “AT+CIPSTART=\”TCP\”,\””;
cmd += IP;
cmd += “\”,80″;
Serial.println(cmd);
delay(2000);
if(Serial.find(“Error”)){
return;
}
cmd = GET;
cmd += tenmpC;
cmd += “\r\n”;
Serial.print(“AT+CIPSEND=”);
Serial.println(cmd.length());
if(Serial.find(“>”)){
Serial.print(cmd);
}else{
Serial.println(“AT+CIPCLOSE”);
}
}

//
//boolean connectWiFi(){
// Serial.println(“AT+CWMODE=3″);
// delay(2000);
// String cmd=”AT+CWJAP=\””;
// cmd+=SSID;
// cmd+=”\”,\””;
// cmd+=PASS;
// cmd+=”\””;
// Serial.println(cmd);
// delay(5000);
// if(Serial.find(“OK”)){
// return true;
// }else{
// return false;
// }
//}

 

 

reference area:

 

 

https://nurdspace.nl/ESP8266

https://github.com/guibom/ESPTempLogger/blob/master/ESPTempLogger.ino

http://www.instructables.com/id/ESP8266-Wifi-Temperature-Logger/?comments=all#CZEPCA4I36LFMYG

http://www.esp8266.com/viewtopic.php?f=8&t=390

http://zeflo.com/2014/esp8266-weather-display/

http://www.ebay.com.au/itm/USB-Micro-B-Micro-Breakout-Board-For-Arduino-AVR-PIC-Prototyping-/231367421713?pt=AU_Gadgets&hash=item35de92af11

https://learn.sparkfun.com/tutorials/voltage-dividers

http://www.ebay.com.au/itm/Arduino-Pro-Mini-ATmega328-3-3V-8M-Compatible-Board-FAST-Shipping-SYDNEY-/281368337443?pt=LH_DefaultDomain_15&hash=item4182dc1c23

https://anibit.com/sites/default/files/product_files/ESP8266_Specifications_English.pdf

http://www.seeedstudio.com/document/pdf/ESP8266%20Specifications(Chinese).pdf

https://github.com/aabella/ESP8266-Arduino-library/wiki/ESP8266-AT-Commands-Set

 

http://www.esp8266.com/viewtopic.php?f=6&t=553&p=2908&hilit=channel#p2908