User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

esp8266 wifi serial module

Tue Sep 30, 2014 8:26 pm

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.
Batteries not included, Some assembly required.

Laksha
Posts: 2
Joined: Fri Oct 10, 2014 6:29 am

Re: esp8266 wifi serial module

Fri Oct 10, 2014 6:32 am

Awesome! Please post results soon. :mrgreen: :D

Laksha
Posts: 2
Joined: Fri Oct 10, 2014 6:29 am

Re: esp8266 wifi serial module

Fri Oct 10, 2014 6:33 am

Awesome! Post results soon. :D

geantas
Posts: 2
Joined: Thu Oct 23, 2014 10:28 am

Re: esp8266 wifi serial module

Thu Oct 23, 2014 10:30 am

Hey,

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

dwelch67
Posts: 955
Joined: Sat May 26, 2012 5:32 pm

Re: esp8266 wifi serial module

Thu Oct 23, 2014 3:14 pm

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...

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: esp8266 wifi serial module

Thu Oct 23, 2014 5:08 pm

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.
Batteries not included, Some assembly required.

rst
Posts: 386
Joined: Sat Apr 20, 2013 6:42 pm
Location: Germany

Re: esp8266 wifi serial module

Thu Oct 23, 2014 7:26 pm

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

macca
Posts: 118
Joined: Tue Oct 16, 2012 9:14 am

Re: esp8266 wifi serial module

Sat Oct 25, 2014 5:58 pm

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.

rst
Posts: 386
Joined: Sat Apr 20, 2013 6:42 pm
Location: Germany

Re: esp8266 wifi serial module

Sun Oct 26, 2014 9:55 am

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.

User avatar
robotmaker
Posts: 35
Joined: Sun Jul 29, 2012 10:49 pm

Re: esp8266 wifi serial module

Mon Nov 24, 2014 3:35 am

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
I'm hungry. Pi anyone?

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: esp8266 wifi serial module

Mon Nov 24, 2014 5:43 pm

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.
Batteries not included, Some assembly required.

dwelch67
Posts: 955
Joined: Sat May 26, 2012 5:32 pm

Re: esp8266 wifi serial module

Tue Nov 25, 2014 1:41 am

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

Erni
Posts: 8
Joined: Sun Oct 14, 2012 1:26 pm

Re: esp8266 wifi serial module

Wed Dec 03, 2014 1:20 pm

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

dubau_razvan
Posts: 4
Joined: Fri Nov 21, 2014 8:32 am
Location: Cluj-Napoca, Romani
Contact: Website

Re: esp8266 wifi serial module

Wed Dec 03, 2014 2:34 pm

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/

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: esp8266 wifi serial module

Wed Dec 03, 2014 6:34 pm

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.
Batteries not included, Some assembly required.

dubau_razvan
Posts: 4
Joined: Fri Nov 21, 2014 8:32 am
Location: Cluj-Napoca, Romani
Contact: Website

Re: esp8266 wifi serial module

Wed Dec 03, 2014 7:25 pm

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)

dubau_razvan
Posts: 4
Joined: Fri Nov 21, 2014 8:32 am
Location: Cluj-Napoca, Romani
Contact: Website

Re: esp8266 wifi serial module

Tue Dec 16, 2014 12:52 pm

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/

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: esp8266 wifi serial module

Thu Jan 29, 2015 10:02 pm

Made some progress with wifi (esp8266) running bare metal on raspberry pi, using DexBasic

Will post code soon.
Attachments
wifi3.jpg
Output from "AT+CWLAP" command
wifi3.jpg (44.15 KiB) Viewed 16066 times
wifi.jpg
esp8266 wired to the raspberry pi
wifi.jpg (63.1 KiB) Viewed 16066 times
Batteries not included, Some assembly required.

krom
Posts: 61
Joined: Wed Dec 05, 2012 9:12 am
Contact: Website

Re: esp8266 wifi serial module

Thu Jan 29, 2015 10:19 pm

wow nice progress DexOS, cheers for the update on this & pics =D

Return to “Bare metal, Assembly language”