Live data from Hacker News

ESP8266: A $5 microcontroller with wi-fi that runs Python

makezine.com

71–80 of 81 posts

Re: ESP8266: A $5 microcontroller with wi-fi that runs Python

#71
post #39

Earlier quoted context omitted.

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…

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.

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

#72
post #43

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

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/

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

#73

Now all we need is for AWS IoT to support TLS 1.1 with symmetric keys. Currently the ESP8266 arduino libraries only support TLS 1.1 which is not compatible with the TLS 1.2 minimum for AWS IoT. I am super excited for this board and would love to be able to kick of lambda functions automatically in response to device events. If anyone from the IoT team comes across this please make this a priority, all of us makers wi…

you could always try it on Azure assuming you haven't built a ton out in AWS already...

Re: ESP8266: A $5 microcontroller with wi-fi that runs Python

#74

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

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

#75

Question to those who know the landscape of little microcontrollers well: if I wanted to build a small pet tracking chip (gps and cell, probably) that would work way out in the boonies (like middle-of-nowhere-Wyoming), where should I look? Am I right to be thinking gps+cell, or is this something where I could get away with just GPS (and somehow track where that GPS is pinging from)? And would something like a tumble…

Have a look at goTenna (http://www.gotenna.com/). It uses 151-154 MHz radio waves to communicate upto 4 miles. Doesn't require mobile network. It's probably too large for your requirement, but may give you some ideas to DIY or adapt its PCB.

Re: ESP8266: A $5 microcontroller with wi-fi that runs Python

#76

Now all we need is for AWS IoT to support TLS 1.1 with symmetric keys. Currently the ESP8266 arduino libraries only support TLS 1.1 which is not compatible with the TLS 1.2 minimum for AWS IoT. I am super excited for this board and would love to be able to kick of lambda functions automatically in response to device events. If anyone from the IoT team comes across this please make this a priority, all of us makers wi…

Yes, would be nice if you could connect it to aws iot. Any chances amazon would add tls 1.1, or would that maybe jeopardize their security certifications? (https://aws.amazon.com/compliance/published-certifications/)

Re: ESP8266: A $5 microcontroller with wi-fi that runs Python

#77

Earlier quoted context omitted.

That's loads . Seriously, it's a huge amount. Most other comparable microcontrollers have about 2kB. Interestingly, it looks like this is a von Neumann device! Which means that code and data live in the same address space. Memory map here: http://www.esp8266.com/wiki/doku.php?id=esp8266_memory_map Looks like it's got a whopping great 512kB internal SPI ROM device too, and indications are that it's reprogrammable. You…

Very tangentially related, but: if FRAM on the MSP430 saves its state on power loss, my mind went straight to Smalltalk. It's like hardware support for saving an image. Tho from an efficiency standpoint, smalltalk might be pushing it more than MicroPython is. That, and a smalltalk editor on a machine too small to fit a vi clone might be even more of a stretch. lol.

That's a very interesting idea. The smallest real Smalltalk I've seen ran on the 286 in protected mode. It's the only app I've ever seen that actually used segmentation usefully --- each object had its own segment descriptor, so it was limited to about 32768 objects. That's still way more than will fit in an MSP430.

[Aside: I wish they made MSP430s with more RAM. It's a lovely architecture, and I'm not just saying that because I'm sick and twisted and like devices with 20-bit registers. An MSP430 with a whole megabyte of RAM would be awesome.]

I do know of Timothy Budd's Little Smalltalk, which is an ultra-lightweight pedagogical Smalltalkish, which has a core image of ~90kB and 3500 objects; but that's still rather big...

Re: ESP8266: A $5 microcontroller with wi-fi that runs Python

#78
post #71

Earlier quoted context omitted.

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.

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.

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

#79

Earlier quoted context omitted.

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?

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.

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

#80
post #59
post #25

Somewhat remotely related, I've been playing with this tiny wifi router on a usb stick for a week now with OpenWRT and it is amazing for $10 https://wiki.hackerspace.pl/projects:zsun-wifi-card-reader The future is filled with tiny wifi devices!

I ordered a couple of these as well but GearBest is taking their sweet time shipping...

It's that Chinese spring holiday I think?

Though mine seems to have come from Singapore.

Once you get a tracking number you can enter it into this box and see the progress until it gets on a cargo ship:

http://113.105.65.70:8032/xflquery.aspx (use chrome translate)

The number they give you will also work in DHL tracking system.

Mine took 48 hours to ship and then 17-18 days to get here.

The tracking stops once it hits the ocean though, blind from there.

Post reply on HN