News for hackers. Stuff that matters.
Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by StavrosK on Monday February 22, 2016 @03:05PM (#11153836)
By the way, I have to warn people who are thinking about trying this chip (as I have done in other comments):

The bare chip won't be very useful to you, unless you want to design your own PCB. Instead, I would recommend a breakout board. There are two major types:

Something like the WeMos D1 Mini (http://www.aliexpress.com/item/D1-mini-Mini-NodeMcu-4M-bytes...) or NodeMCU (http://www.ebay.com/itm/NodeMCU-LUA-WIFI-Internet-Developmen...), which are very full-featured and include onboard USB programmers and fancy things like that, but are a bit bulky. The NodeMCU I linked is solid, the WeMos is also great as it's much smaller and only includes the useful pins.

The alternative is a bare breakout board, which is the minimum that you need to make the ESP breadboard-friendly and so you don't have to solder a bunch of resistors on the chip. This is best when you want to work at a lower level, and have the minimum hardware required for the ESP to work on the board, with everything else going in your circuit.

There are breakout boards on ebay like this one (http://www.ebay.com/itm/1Set-ESP8266-WiFi-Module-Breakout-Bo...). STAY AWAY FROM THESE. They don't include all the necessary components, so the ESP won't work reliably without extra pullups, and they take up the entire breadboard space.

Because I was burnt by these, I designed my own and made it open-source:

https://github.com/skorokithakis/tiny-ESP8266-breakout

It's easier to work with, leaves room on the breadboard and includes all necessary resistors/caps and an optional voltage regulator. It's also very small. There's a dirtypcbs link on the github repo so you can just order 40 of these for $14 if you like, or you can just download the KiCad schematics (KiCad is awesome and open-source) and get it fabricated at your favorite PCB house.

Back to our regularly scheduled programming. Feel free to copy/paste this comment whenever there's an ESP discussion, I think it's a good primer for people who don't have ESP experience.

Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by gh02t on Monday February 22, 2016 @03:27PM (#11154014)
So I agree that the WeMos Mini is definitely what you should buy, but the bare chips aren't that bad to work with. I've done quite a few and I usually just solder wires to each pad on the chip and then solder the other end(s) to a breadboard (something like this http://www.instructables.com/id/Getting-Started-with-the-ESP... ).

You also have to pull up CH_PD and pull down GPIO15, plus usually include a voltage regulator and/or smoothing cap, which adds enough hassle that WeMos is definitely worthwhile, but it's not really that bad if you only have the bare modules.

Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by StavrosK on Monday February 22, 2016 @03:54PM (#11154211)
That's true, but you need to solder, as you say, six resistors and and a capacitor, which quickly becomes a tangle of wires. I prefer breakouts just because they're a very cheap and good way to avoid this.
Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by gh02t on Monday February 22, 2016 @04:04PM (#11154277)
Just two resistors works or three if you want deep sleep. Some people recommend pulling up/down some of the other pins, but it's always worked fine for me to leave them floating. I tend to do those with solder bridges instead of wires, so it doesn't get too messy. I also usually put an LDO regulator on the power input since I have more 5V supplies on hand and I skip the smoothing cap. The output from the regulators I use is plenty smooth and it works OK.

The WeMos is infinitely easier, especially because it has the FTDI chip built in, but it's not terrible to use the bare modules. I got on the ESP8266 bandwagon fairly early, so I got used to working with the bare modules since they were all I could get.

Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by StavrosK on Monday February 22, 2016 @04:09PM (#11154310)
Yeah, I usually add the rest as well, for stability. I don't really use the FTDI programmer as programming it over the air is faster and more convenient.
Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by gh02t on Monday February 22, 2016 @08:52PM (#11155877)
Heh, similarly I haven't done much with the OTA programming because I keep my ESPs on an isolated WiFi network and it's a pain in the arse to access them directly from my workstation.
Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by StavrosK on Tuesday February 23, 2016 @05:59AM (#11158001)
Ah, you're missing out, I love OTA. Very fast, and you don't need to move the ESP at all (if it's on the same network, anyway :P). Plus, you can keep the serial line open for debugging while flashing.
Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by SEJeff on Monday February 22, 2016 @04:42PM (#11154511)
How can you forget something like the Adafruit Huzzah[1]? It is so nice with the ESP8266. We use it in home-assistant (http://home-assistant.io) for things like this temperature sensor[2].

    [1] https://www.adafruit.com/products/2471
    [2] https://home-assistant.io/blog/2015/10/11/measure-temperature-with-esp8266-and-report-to-mqtt/
Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by StavrosK on Monday February 22, 2016 @05:14PM (#11154718)
I forgot it because I don't have one :-P I think the wemos is better, to be honest. About the same size, half price and includes an FTDI chip just in case.
Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by GeorgeHahn on Monday February 22, 2016 @09:12PM (#11155966)
No onboard USB kills it for me, especially at that price point. For something in that price range, I'm more interested in the ESP-210 - it's tiny and has USB-Serial built in.
Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by StavrosK on Monday February 22, 2016 @06:16PM (#11155152)
Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by humancell on Monday February 22, 2016 @04:16PM (#11154357)
Nice prototyping board! We've been working on a similar concept at ESProto - http://www.esproto.com/ - and have taken a few steps beyond your board. We've created the ESProto 1, and now the ESProto IoT. Both are being released as open source, and also sold as kits.

The ESProto 1 is designed to support the AI Thinker ESP-12F (FCC Certified) module, and give you space for an optional regulator, and prototyping space on board. We include jumpers and a push button for easily entering programming mode.

The ESProto IoT is our newest prototyping board, and couples the ESP-12F with a 5v Arduino Pro Mini to provide enhanced connectivity for sensors and peripherals, all in the form factor of the Arduino Uno.

Both boards use external USB for programming.

These things are too cool, and too much fun!

Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by StavrosK on Monday February 22, 2016 @05:31PM (#11154852)
That looks interesting, but I can't find much information on your site, it seems to be a stockish install. Is there any more info somewhere?
Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by humancell on Monday February 22, 2016 @08:04PM (#11155663)
Yes ... the website is a "work in progress" and we just got our second round of PCBs that we are testing. We're pushing to get the kits up there in the next couple of weeks.

In the mean time, the Github repo is at: https://github.com/Wovyn

We've got the initial KiCAD files up there, and are putting together our sample code, etc.

Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by StavrosK on Tuesday February 23, 2016 @06:00AM (#11158003)
Very nice, I'm going to look at the files right now, thanks for making the available!
Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by Snorlack on Monday February 22, 2016 @10:03PM (#11156178)
I used the bigger NodeMCU but WeMos D1 Mini is awesome. If you want to tinker and create a custom compact unit, consider buying a few copies of the "ESP8266 WeMos shield" from OSHPark: http://oshpark.com/shared_projects/rnk2lmmh

More info at: http://github.com/hallard/WeMos-shield

Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by ank_the_elder on Monday February 22, 2016 @05:20PM (#11154770)
Have you tried the Olimex version as linked in the article? https://www.olimex.com/Products/IoT/MOD-WIFI-ESP8266-DEV/ope... I've purchased a few Olimex boards in the past and I've greatly enjoyed them.
Re:ESP8266: A $5 microcontroller with wi-fi that runs Python by StavrosK on Monday February 22, 2016 @05:29PM (#11154841)
I haven't, but it looks very interesting, thank you!