Update on March,2015:
Finally my wbserver is working like a charm.... I found the simple problem being with the firmware. I uploaded V0.9.2.2 Firmware and changed the baud rate to 9600 and Voila!!! the same webserver sketch above works flawlessly... Only change the serial baudrate to 9600 and it WORKS!!! At last.... :)

I used to send some sensor data from my Plantoid (Mechaphytum Animus) to the web (ThingSpeak namely) to be viewed on any browser using MyRobotLab... This time I decided to do the same with a wi-fi connection directly from the Arduino on Mechaphytum Animus. To accomplish the job I found this tiny wi-fi unit on a Chinese online seller at $5... The unit is based on ESP8266 chip and can establish wi-fi connection between units, to a PC and can create web socket via serial... It was hard to find reliable data on the net about the unit.. It came without any description or datasheet... Finding some info about its AT code descriptions and some code bits over the net from some previous users, I managed to write an Arduino code to update sensor data to my channel at ThingSpeak... 

Wi-fi unit wiki page:

http://www.electrodragon.com/w/Wi07c

My Arduino sketch to update DS18B temperature sensor data to ThingSpeak:

[[home/borsaci06/DS18BTemperatureToThingSpeak.c]]      
 
Update on Jan,2015:
The unit works as expected and sends all analog inputs sensor data to my browser via its IP... But I am having troubles about consistency... After some time it stops sending data. browser does not receive data but I can see the module still working if I ping it from the command prompt of PC. It begins transmission if I hard reset the Arduino... I realised that the unit is not consistent about sending-receiving commands. It sometimes adds /r/n twice, sometimes doesn't... so I modified the above code and replaced all serial.println commands with extra "Serial.print("\r\n"); " commands which did not help either... there is a forum about the unit on internet ( http://www.esp8266.com/index.php ) where I read something about faulty firmware. They say that the module goes into a busy mode while transmission for an unpredictable time which causes it not to receive appropriate  command from the Arduino sketch.. I am thinking of adding a watchdog timer to the sketch to monitor the module responses and reset the program.. Any ideas?... All kinds of help will be appreciated... this tiny module is awesome...
 
Update on March,2015:
Finally my wbserver is working like a charm.... I found the simple problem being with the firmware. I uploaded V0.9.2.2 Firmware and changed the baud rate to 9600 and Voila!!! the same webserver sketch above works flawlessly... Only change the serial baudrate to 9600 and it WORKS!!! At last.... :)
 
 

Thanks  Alessandro,

These batteries are not LiPo, they are Li-Ion cellphone batteries... I am using them in my low voltage projects for years... If charged properly these are safer than LiPos... I charge them with Arduino Fio Li-Ion charge port which has a lithium charge controller just like in the cellphones... They are cheap, small and reliable source of power when low voltage sensors needed to be read by Arduino... Arduino vcc port is not sufficient to drive a RF module or wifi module...

 

GroG

9 years 10 months ago

Hi borsaci,

Can you do a screen-cast of it "working" and it "not working" ?

I use free Screen-O-Matic to do screen casts..  its easy and works well.

 

Greg,

I sent to your gmail screenshots of the unit working and not working and also the cmd line ping while not working... I tested the setup with a new script (which has watchdog timer activated).. I will also send a screenshot about this new script which you can see an error while initializing... cannot process AT+CIPSTO=30 command (I already tested with different delays with this command).. with this script the unit acquires a proper IP but cannot even send data to my browser... It continuously tries to get data and nothing displayed... doesnot timeout too...

GroG

9 years 10 months ago

In reply to by borsaci06

Ya .. I don't think adjusting the server timeout will help..   it should only require a couple milliseconds to get the needed data

The last picture you sent (Serial debugger) - is the most interesting for me ..

I don't see the Serial.println for the items being printed out .. so I assume its in onewire library ?

I one ERROR - but assume it has something to do with the initial reset..

At the bottome I see an HTTP header printed out..

You might want to start putting in Serial.print lines in the library .. we need to find out where the program is getting hung up in...

GroG

9 years 7 months ago

Great News Borsaci !!

Good to have a stable system.  Now what are your plans ?  More sensor channels ? 
Was the "posting" data to Thingy speak fakey too?  And now thats fixed with the firmware upgrade?
I think the webserver would be a great control system, but I would find it a little limiting in that it does not have a file system - which makes  what it can serve to a client a little limiting.

I've seen a common design to provide a rich UI and do json calls to a web server for polling data.

looking forward to playing with these when I get home, thanks for forging ahead and figuring out the firmware problem !

Thx Greg,

Well now I started to design a sensor node board with this tiny module and a tiny Arduino Mini with 3,3V onboard supply and all pin breakouts for both Arduino and ESP8266... this will be an all-in-one webserver board under $10... A sd card add on may be good too...

Posting to ThingSpeak is worky from the beginning... But the upgraded firmware makes it more stable too... It posts data from time to time... you also know that ThingSpeak servers do not like fequent posting... I also managed to control a led remotely over internet (MRL Home Automation Project is on the way)...

I would be glad to assist your working on this tiny module in any way you want... I collected huge data and software about ESP8266 over internet.... pls don't hesitate to ask... cheers...

Dincer