ESP8266 is Serial Port WiFi Module. It is very low cost.
Then we can use for many Application for Home Automation or IOT.
How to Test
You should use AT-Command to Test Module First.
So,you will know how to use At-Command and step to use ( set mode ,connect wifi, make server )
Hardware for test
You must have USB to RS-232 Converter ( I've one but I can't found it )
So,I decide to use Arduino board as USB to RS-232 Converter by remove MCU out form board.
ESP8266 WiFi Module use 3.3 V power supply and logic.
So,I use Arduino Duemilanove Board because it can set 3.3V power supply and logic.
(Then don't need the logic converter )
Or If you use Arduino 5V supply board such as Arduino UNO or other.
You need logic converter.
Wiring Diagram
ESP8266 PCB layout and pin out
Top Layer
Arduino Pin 0 (Rx) toESP8266Pin URXD Arduino Pin 1 (Tx) toESP8266Pin UTXD 3.3 V to ESP8266 Pin CH_PD
and VCC 3.3V , GND
For Arduino 3.3V Power Supply and Logic
For Arduino 5V Power Supply and Logic ( Need logic Converter )
Software to Test We use Arduino IDE and Serial Monitor to test. It 's work fine. Set your Module Baud rate and Both NL and CR
use "AT" for check Communication Response "OK" use "AT+RST" for Software Reset Module Response "OK" use "AT+GMR" for check Firmware Version Response "Firmware Version xxxxxxx" Response "OK" use "AT+CWMODE=1" for Set Mode 1 ( Station ) Response "OK" use "AT+CWLAP" for check WiFi Network Available Response "Network Detail" Response "OK"
use AT+CWJAP="ssid","password" to Connect WiFi Network Response "OK" use AT+CIPMUX=1 set to Multi point Mode Response "OK" use AT+CIPSERVER=1,port to Start Server Response "OK" use AT+CIFSR to check your IP Address Response "IP Address" Response "OK" use AT+CIPCLOSE=0 to close all socket Now You can use the Server.
send a string to the
host computer using a custom command type
Receiving
Messages
available()
check to see if there
are any incoming messages in the buffer
processInput()
process incoming
messages from the buffer, sending the data to any registered callback functions
attach(byte
command, callbackFunction myFunction)
attach a function to an
incoming message type
detach(byte
command)
detach a function from
an incoming message type
Callback Functions
In order to attach your function to a message type, your
function must match the standard callback function. There are currently three
types of callback functions in Firmata:generic,string,
andsysex.
Support for Arduino 1.x (still works with pre 1.x IDEs)
Support for Mega 2560, Sanguino and Teensy boards
Easier pin assignment. Any pin can be assigned to any glcd function.
Accurate/Consistent font rendering of any font size on any pixel location.
User definable text areas
Up/Down text scrolling
Circle functions
Additional example and demo sketches including a diagnostic sketch
Fully search-able documentation in HTML format
Pins can optionally be assigned by AVR port and bit instead of Arduino pin number.
Supports fixed width fonts that provides up to 8 x 21 character display with the supplied system font.
CursorTo method to position the cursor to a given font location (fixed width fonts only)
DrawBitmap function to display bitmap images stored in Flash memory. A Processing utility is provided in the download to convert a monochrome bitmap file to a header file that stores the image in flash for use by the DrwBitmap method.
TFT LCD module has always been one of the hot products in DIY industry and LCD is basically the necessary products during all projects, at the same time, serial port modules are also the popular ones, because it takes few IO and the usage is simple. This section of the 2.2S-inch TFT LCD serial SPI integrated features of compact, SPI interface, fully compatible with popular LCD5110 interface cable sequence, and will replace the increasingly reducing LCD5110.
Feature:
TFT01_2.2 SP is a 2.2 "SPI TFT LCD Screen Module, 10pins interface, compatible LCD5110 interface. Not just a LCD break but include SD card (2GB),
The LCD in the TFT01 is ILI9341. It's a 240 * 320 (resolution), 2.2S inch TFT LCD screen.The LCD has a wide viewing angle, the contrast is also very suitable.
The display interface is serial, it just needs 5 wires (CS, RS, SCL, SDA, RST) for controlling.
Replace LCD5110, Support direct plug in ElecFreaks Joystick shield, EFCom, Key Pad Shield etc
SDcard use hardware SPI interface (CS / MOSI / MISO / SCK), Not solder pins.
his library is the continuation of my ITDB02_Graph, ITDB02_Graph16 and RGB_GLCD libraries for Arduino and chipKit. As the number of supported display modules and controllers started to increase I felt it was time to make a single, universal library as it will be much easier to maintain in the future.