Wozzy
Well-known member
Work in Progress
The ESP8266 is a very low cost Wi-Fi connectivity solution.
It consists of a 802.11 b/g radio and 32 bit microcontroller.
While one can program the ESP8266 MCU directly, I'm not ready to learn yet another programming environment.
For me the Teensy 3 is ideal for a host controller and since it is a 3.3 volt device, it is directly compatible.
I am hoping to pull the information together in one place to save others the frustration I had getting started.
These images show the pinouts and connections of a commonly available ESP8266 Breakout board.
Using the Hardware serial port on the Teensy and USB serial port
ESP TX -> Teensy Pin0
ESP RX -> Teensy Pin1
The ESP8266 can be accessed directly from a PC using the following code:
Sample output:
Latest Stable Expressif AT Firmware (at_v0.20_14_11_28): http://bbs.espressif.com/download/file.php?id=84
Latest Beta Expressif AT Firmware: Download AT21SDK95-2015-01-24.bin
FirmWare Updater Program: Link to Google drive folder with Updater Zip
AT command Reference: Download AT Instructions Reference PDF
ESPlorer - ESP8266 IDE: Link to Esplorer.ru webpage
Here are some other useful Links:
http://rancidbacon.com/files/kiwicon8/ESP8266_WiFi_Module_Quick_Start_Guide_v_1.0.4.pdf
NURDspace ESP8266 Page from the Netherlands:https://nurdspace.nl/ESP8266
The ESP8266 is a very low cost Wi-Fi connectivity solution.
It consists of a 802.11 b/g radio and 32 bit microcontroller.
While one can program the ESP8266 MCU directly, I'm not ready to learn yet another programming environment.
For me the Teensy 3 is ideal for a host controller and since it is a 3.3 volt device, it is directly compatible.
I am hoping to pull the information together in one place to save others the frustration I had getting started.
These images show the pinouts and connections of a commonly available ESP8266 Breakout board.
Using the Hardware serial port on the Teensy and USB serial port
ESP TX -> Teensy Pin0
ESP RX -> Teensy Pin1
The ESP8266 can be accessed directly from a PC using the following code:
Code:
//**** Using a Teensy 3.1 to Connect an ESP8266 to PC USB Serial *******
// Compiled with Arduino 1.60 and Teensyduino 1.21b6
// ESP8266 Firmware: AT21SDK95-2015-01-24.bin
long LED_14_TimeOn=0;
long LED_15_TimeOn=0;
void setup() {
pinMode(14, OUTPUT); // YELLOW LED - SENDING
pinMode(15, OUTPUT); // RED LED - RECEIVING
// Setup computer to Teensy serial
Serial.begin(115200);
// Setup Teensy to ESP8266 serial
// Use baud rate 115200 during firmware update
Serial1.begin(115200);
}
void loop() {
// Send bytes from ESP8266 -> Teensy to Computer
if ( Serial1.available() ) {
digitalWriteFast(14, HIGH); // set the LED on
LED_14_TimeOn = millis();
Serial.write( Serial1.read() );
}
// Send bytes from Computer -> Teensy back to ESP8266
if ( Serial.available() ) {
digitalWriteFast(15, HIGH); // set the LED on
LED_15_TimeOn = millis();
Serial1.write( Serial.read() );
}
if (millis() - LED_14_TimeOn > 20) {
digitalWriteFast(14, LOW); // set the LED off
}
if (millis() - LED_15_TimeOn > 20) {
digitalWriteFast(15, LOW); // set the LED off
}
}
Sample output:
Code:
AT+GMR
AT version:0.21.0.0
SDK version:0.9.5
OK
AT+CWJAP?
+CWJAP:"NetworkG"
OK
AT+CIFSR
+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"1a:fe:34:9f:48:d8"
+CIFSR:STAIP,"192.168.1.50"
+CIFSR:STAMAC,"18:fe:34:9f:48:d8"
OK
AT+CWLAP
+CWLAP:(4,"HOME-A2B2",-91,"00:1d:d5:bc:a2:b0",1)
+CWLAP:(0,"xfinitywifi",-90,"06:1d:d5:bc:a2:b0",1)
+CWLAP:(2,"COLLEEN",-85,"c8:b3:73:35:c4:63",1)
+CWLAP:(3,"NetworkG",-31,"e4:f4:c6:05:ba:4a",11)
+CWLAP:(2,"STEPH",-93,"20:4e:7f:4b:8d:a8",11)
+CWLAP:(1,"F3GM0",-81,"00:1f:90:e4:bd:55",6)
+CWLAP:(3,"TEEDA-UP",-82,"6c:b0:ce:7e:9f:20",10)
OK
Latest Stable Expressif AT Firmware (at_v0.20_14_11_28): http://bbs.espressif.com/download/file.php?id=84
Latest Beta Expressif AT Firmware: Download AT21SDK95-2015-01-24.bin
FirmWare Updater Program: Link to Google drive folder with Updater Zip
AT command Reference: Download AT Instructions Reference PDF
ESPlorer - ESP8266 IDE: Link to Esplorer.ru webpage
Here are some other useful Links:
http://rancidbacon.com/files/kiwicon8/ESP8266_WiFi_Module_Quick_Start_Guide_v_1.0.4.pdf
NURDspace ESP8266 Page from the Netherlands:https://nurdspace.nl/ESP8266
Last edited: