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!
I got one connected to my WiFi, but I can’t figure out how to do anything else haha…
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.
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!! 😀
see:
The code im using is:
[su_quote cite=”diy_bloke” url=”http://www.instructables.com/id/ESP8266-Wifi-Temperature-Logger/”]See below for formatting.[/su_quote]
#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