Esp202

ESP202

======
ESP8266Flasher.exe program #1

esp8266_1.jpg

ESP8266Flasher.exe #2

esp8266_2.jpg

ESP8266Flasher.exe #3

esp8266_3.jpg
=== ESP202.jpgesp202pic.jpg

ESP202

Well I bought one ESP8266 based module from dx.com and made some addions to this.
ESP202 is WIFI module, which works with serial communication.
It also can programmed to work independenty.
I started to use it with serial drive.

In dx.com page there was no information, not even schematic of the device

Here is the circuit layout

ESp_12_E.png

and here is other

Module-ESP-202.jpg

and here is the internal circuit

ESP-01_Schematic.png

====

First I build it.

I got information how to connect it from
http://smart-prototyping.com/ESP8266-based-WiFi-module-ESP-202.html
It was wrong!
I can't find information to their email to inform them that they deliver wrong informaton.

Here is faulty picture

esp202_virhe.jpg

I made LD33 regulator to make 3.3V power supply.
I addes TTL/RS232 converter to make right connection.
I added some resistors to start it.

Then I connect my terminal program and oscilloscope.
I tried AT<CR><LF> command to get some responce.

I got only 2-3 mA load, it should be about 100mA.

When I try to give AT -command, I got nothing.
I try first 115200 baud, then 9600 and the other bauds, nothing.

Then I changed TX and RX-wires. Then I got LED blinging according my baud.
It blinks with any baud from 110-256000 baud.
I do not get answer either, it was going wrong way.

Is the device faulty?
I have never seen new faulty electronic device in my life.

I have designing circuits 56 years.

I got today information that CD_PD pin should be connected to VCC.
Let see how it goes.

28.2.2016

I connect 2k2 resitor from CD_PD to VCC.

Yes. It started to work!
It took 88mA to 5V regutor.
It was working at 115200 baud.

I reset it, with
AT+RST<CR><LF>
OK
ets Jan 8 2013,rst cause:4, boot mode:(3,0) etc

AT+CIPMUX=1<CR><LF> // Multilpe connection
OK
AT+CWJAP="myIP","mypassword"<CR><LF> // Connect to Internet Use your own passwords.
OK

AT+CWMODE =3<CR><LF> 1=Station mode, 2=AP Mode, 3=Station +AP mode
OK

AT+CIPSTART=1,"UDP","255,255,255,255",4111,4112<CR><LF>
// Connect number 1 channel to other computer at any IP (255.255.255.255) with UDP, Remote port 4111, Local port 4112 . Start the UDP-program on other computer.

OK

AT+CIPSEND,1,10<CR><LF> ( Send to number 1 channel 10 character, maximun is 2048 )

“>” after execute command. 20ms interval between each packet.
When single packet containing “+++” is received, it returns to command mode.

DATA SEND

+IPD,1,9;remotesend // Msg remotesend came from remote station.

AT+CIPCLOSE=1<CR><LF> // Close connection

Everything went ok.

10.3.2016

I made a new circuit board for PIC16F886
It has three temperature sensors DS1820 and HC-SR04 ultrasonic distance sensor for oil height,

ESP202 Wifi-adapter, 5 to 3.3V regulator and two different power supply connectors.
There is a relay for temperarure regulator.

I try to measure my heating oil level and outside temperature using Wifi
Let see how it will go.

ESP202c.jpg

Here is PCB for this circuit

ESP202PCB.jpg

When I was prototyping the device. The HC-SR04 did't give responce.
I was drawing the device.
I got following schematic.

HC-SR04.jpg

I was examinging the HC-SR04.
The prosessor did't give any responce.
It did't have oscillator working, not even a new crystal ( 4MHz).
Well I have to replace the whole device.
Then it worked.

'============

There seems to be may kinds of ESP8266 devices:ESP01, EPS02,ESP03, EPS04,ESP05, EPS06
ESP07, EPS08,ESP09, EPS10,ESP11, EPS12,ESP13,ESP14, Wroom-02, ESP201 and ESP202
ESP202 seems to similar to ESP12.

They have displayded here:
http://aaes.us/esp8266parts.htm

=====================0

Here are some links

ESP8266 specification
http://remotesmart.wikidot.com/local--files/esp202/ESP8266_Specifications_English.pdf
Here are some general data, nothing usefull. It is done by the manufacturer.
This has nothing special, no AT-commands etc. No use to look.

This has AT-commands:

https://room-15.github.io/blog/2015/03/26/esp8266-at-command-reference/
Really usefull.

http://tomeko.net/other/ESP8266/
***Here are description of ESP01 and some desciption of AT-commands.

http://www.esp8266.com/
Here is discussion on ESP8266
It is diffucult to find any important or useful data, but I think it may have, but I can't find it.
There is lot discussion.

Cross Compiler Tools and C SDK Installation.

Espressif, the ESP8266’s manufacturer, provide the source code for the gcc cross-compiler tool chain, and for their C SDK (Note that some parts of the SDK are closed source, and distributed as object code only).

Unfortunately, due to its relative newness and being rapidly changing, installing it all is quite fiddly, error prone, and tedious, but fortunately, pfalcon has come to the rescue and combined everything into his single esp-open-sdk package which can be installed on Linux quite effortlessly. We will be using it here.

First, we need to ensure that the standard GNU development tools are installed. For Ubuntu 14.04:

Create a directory for everything to go in:

Then, download, build and install:

This will take some time, but when it is done everything is installed in the esp-open-sdk subdirectory, which has three important subdirectories: xtensa-lx106-elf, esp_iot_sdk_v0.9.5, and esptool which we will look at now.

Here is the intenal picture of ESP8266

esp8266kuva.png===
Here is a better picture of ESP8266.
ESP8266.jpg

and here is a schemtic diagramm if internal ESP8266

Esp8266_schematic.png

Here are source code for WIFI-device

http://remotesmart.wikidot.com/local--files/esp202/ds1820.c
http://remotesmart.wikidot.com/local--files/esp202/HC-SR.c
http://remotesmart.wikidot.com/local--files/esp202/Ultra4.c
http://remotesmart.wikidot.com/local--files/esp202/PIC18F.H
http://remotesmart.wikidot.com/local--files/wifi.c
http://remotesmart.wikidot.com/local--files/esp202/HC-SR.hex

====
Pekka
moc.liamg|odg3ho#moc.liamg|odg3ho

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License