3 ms·
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
by StavrosK 11y ago
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-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266/32529101036.html http://www.aliexpress.com/item/D1-mini-Mini-NodeMcu-4M-bytes...) or NodeMCU (http://www.ebay.com/itm/NodeMCU-LUA-WIFI-Internet-Development-Board-Based-on-ESP8266-/291505733201 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-Board-Adapter-Plate-for-ESP-07-ESP-08-ESP-12-/181784198861 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 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.
- gh02t 11y agoSo 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-ESP8266-ESP-12/ 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.
- StavrosK 11y agoThat'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.
- gh02t 11y agoJust 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.
- StavrosK 11y agoYeah, 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.
- gh02t 11y agoHeh, 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.
- StavrosK 11y agoAh, 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.
- humancell 11y agoNice prototyping board! We've been working on a similar concept at ESProto - http://www.esproto.com/ 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!
- StavrosK 11y agoThat 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?
- humancell 11y agoYes ... 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 https://github.com/Wovyn We've got the initial KiCAD files up there, and are putting together our sample code, etc.
- StavrosK 11y agoVery nice, I'm going to look at the files right now, thanks for making the available!
- SEJeff 11y agoHow 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 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/
- StavrosK 11y agoI 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.
- StavrosK 11y agoAlso, you may like this: https://github.com/skorokithakis/esplights https://github.com/skorokithakis/esplights
- GeorgeHahn 11y agoNo 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.
- ank_the_elder 11y agoHave you tried the Olimex version as linked in the article? https://www.olimex.com/Products/IoT/MOD-WIFI-ESP8266-DEV/open-source-hardware 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.
- StavrosK 11y agoI haven't, but it looks very interesting, thank you!
- Snorlack 11y agoI 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 http://oshpark.com/shared_projects/rnk2lmmh More info at: http://github.com/hallard/WeMos-shield http://github.com/hallard/WeMos-shield