Page 1 of 1

esp8266 wifi serial module

Posted: Tue Sep 30, 2014 8:26 pm
by DexOS
I just got two of these wifi modules
http://www.ebay.co.uk/itm/ESP8266-Seria ... 1596948485

They seem a ideal way to get wifi network working from baremetal, on the raspberrypi.
I will write some code demos and do some youtube videos to show my progress.

Re: esp8266 wifi serial module

Posted: Fri Oct 10, 2014 6:32 am
by Laksha
Awesome! Please post results soon. :mrgreen: :D

Re: esp8266 wifi serial module

Posted: Fri Oct 10, 2014 6:33 am
by Laksha
Awesome! Post results soon. :D

Re: esp8266 wifi serial module

Posted: Thu Oct 23, 2014 10:30 am
by geantas
Hey,

I am eager to hear from you about the results!!

Re: esp8266 wifi serial module

Posted: Thu Oct 23, 2014 3:14 pm
by dwelch67
exposing the second serial port pins on some future raspi would be nice, there are two uarts but we can only get at one at a time.

I bought one of these as well after seeing the post from DexOS, not really working for me, I power it both leds are on or the blue is blinking. but with the tx/rx serial connected, nothing, sometimes garbage and a couple times I got a "ready" message in the garbage, but generally it appears dead. I reflowed a number of the solder joints because the noise/etc appeared to show or change when wiggling the power wire. Have not tried it since I did that...

I have a $7 spi based wired ethernet that I have yet to work on as well...and someday just want to learn the usb well enough to get the wired ethernet up in bare metal...

Re: esp8266 wifi serial module

Posted: Thu Oct 23, 2014 5:08 pm
by DexOS
I have not had a chance to try main yet, But most people who have a problem, it seem to be the power supply, as the they need at least 150ma, which the pi can not supply.

I should in the coming days get around to test these and will update how i get on.

Re: esp8266 wifi serial module

Posted: Thu Oct 23, 2014 7:26 pm
by rst
dwelch67 wrote:...and someday just want to learn the usb well enough to get the wired ethernet up in bare metal...
I have a fairly small USB stack which works on Model B and B+ with the onboard ethernet device (also with USB keyboard and mass storage device = USB flash stick) perhaps which could help. It supports control, bulk and interrupt transfers.

I would like to give it to the public on GitHub. But it is written in C++ and it needs some infrastructure (interrupt and timer classes and more) which is not as small as CSUD needs. If one doesn't like C++ it won't help unless you can get information from it.

I think about releasing it step by step. So first the infrastructure can be constructed and then the USB stack introduced. So one can get familiar with it.

But I have some problems. I don't know git very well (still use svn at home) and I don't want to run into legal problems. I use some code snippets of others (also of you, Thanks!) which are released under different licenses. The screen font I use for log messages is from Linux (GPLv2+) so I think the best is to use GPLv3. But I'm not sure. Yes, funny but not easy to find a usable screen font.

Currently it is part of a small self-made OS so I have to extract the required infrastructure from that code. So there is still some work to do. Will see if I can manage this.

Rene

Re: esp8266 wifi serial module

Posted: Sat Oct 25, 2014 5:58 pm
by macca
rst wrote:I have a fairly small USB stack which works on Model B and B+ with the onboard ethernet device (also with USB keyboard and mass storage device = USB flash stick) perhaps which could help. It supports control, bulk and interrupt transfers.

I would like to give it to the public on GitHub. But it is written in C++ and it needs some infrastructure (interrupt and timer classes and more) which is not as small as CSUD needs. If one doesn't like C++ it won't help unless you can get information from it.
I would be happy to try your USB stack, I don't have problems with C++ and maybe I could help to port it to C.

Let me know.

Re: esp8266 wifi serial module

Posted: Sun Oct 26, 2014 9:55 am
by rst
macca wrote:I would be happy to try your USB stack, I don't have problems with C++ and maybe I could help to port it to C.
Thanks for your interest! I have prepared the first step of it on GitHub and will post an announcement soon in another thread.

It would be great to port it to C. Personally I prefer C++ but in C it may be easier to be used by many people.

Re: esp8266 wifi serial module

Posted: Mon Nov 24, 2014 3:35 am
by robotmaker
I just ran across it, and know it's sort of an old thread, but I wanted to see if there were any updates. This would be an awesome way to network the pi

Re: esp8266 wifi serial module

Posted: Mon Nov 24, 2014 5:43 pm
by DexOS
I am just waiting for my bench power supply to arrive, so i can try it out.
I can post some test code, if people have the modules and a power supply sorted out.

Re: esp8266 wifi serial module

Posted: Tue Nov 25, 2014 1:41 am
by dwelch67
I didnt put it on a scope or anything but it seems why I had problems is that the ftdi usb part I had wouldnt deliver consistent power, a coworker has one/some and added some bulk capacitance and that kept it alive, so it must have an extra draw when it transmits that the ftdi cant handle. I didnt mess with it even with that knowledge...

David

Re: esp8266 wifi serial module

Posted: Wed Dec 03, 2014 1:20 pm
by Erni
Just FYI

There is a lot going on about this chip here
Among other things new firmware, lua firmware and examples

http://www.esp8266.com/
I made som notes about upgrading the firmware;

http://www.ernstc.dk/arduino/esp8266.html

For powersupply I use a LM1117, but you can also use two AA batteries
It draws a lot of power when sending, maybe more than 200 mA, but then again the range has been reported to be several kilometers

Re: esp8266 wifi serial module

Posted: Wed Dec 03, 2014 2:34 pm
by dubau_razvan
Hi there.
I already had connected the ESP8266 to raspberry through serial port. I'm now playing with its firmware.
For those who need help on connecting the wifi module to Raspberry, I wrote quick tutorial about. I hope that its helpful.
http://www.extragsm.com/blog/2014/12/03 ... pberry-pi/

Re: esp8266 wifi serial module

Posted: Wed Dec 03, 2014 6:34 pm
by DexOS
Thanks for the info.
@ dubau_razvan i thought the max draw was 50 mA from the 3.3v pin?.
Have you had any problem with running from the pi 3.3v supply.

Re: esp8266 wifi serial module

Posted: Wed Dec 03, 2014 7:25 pm
by dubau_razvan
DexOS wrote:Thanks for the info.
@ dubau_razvan i thought the max draw was 50 mA from the 3.3v pin?.
Have you had any problem with running from the pi 3.3v supply.
No problem at all. I'm using a Raspberry Pi B model, fabricated in UK. I use the original 1 Amp power supplier for it. The raspberry is running Debian with GUI switched off. Nothing connected to USB ports, only Ethernet and Audio Jack (for playing music using MPD)

Re: esp8266 wifi serial module

Posted: Tue Dec 16, 2014 12:52 pm
by dubau_razvan
This is a quick tutorial showing how to change the firmware on the module using raspberry or any linux based device:
http://www.extragsm.com/blog/2014/12/16 ... -switcher/
The firmware contains a webserver which will allow you to control the GPIO02 from a web interface or from a button connected to GPIO00.
It is a modified version of this firmware: http://harizanov.com/2014/11/esp8266-po ... r-reading/

Re: esp8266 wifi serial module

Posted: Thu Jan 29, 2015 10:02 pm
by DexOS
Made some progress with wifi (esp8266) running bare metal on raspberry pi, using DexBasic

Will post code soon.

Re: esp8266 wifi serial module

Posted: Thu Jan 29, 2015 10:19 pm
by krom
wow nice progress DexOS, cheers for the update on this & pics =D