Live data from Hacker News

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

makezine.com

31–40 of 81 posts

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

#31
post #6

While this is a very cool chip for hobbyists, it is quite hard to do real TLS with this chip making it basically useless for commercial applications. It CAN do TLS but it leaves very little left over if you have any kind of real business logic.

Assuming you're talking to your own server (or even mobile app), why not go with something lighter than full TLS?

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

#34
A related crowdfunding project to facilitate MicroPython with this chip has already passed funding goals: https://www.kickstarter.com/projects/214379695/micropython-o...

The new ESP8266 source code will be made available on GitHub right after the crowdfunding campaign closes..

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

#35
post #3

Earlier quoted context omitted.

Very little, around 60kB free if writing programs in C language.

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…

How much you get depends on the version you get. The memory is external and some come with 512kB, some come with 4096kB.

cf https://gist.github.com/Coaxial/268c4198d09c2a712387 for flash and RAM for mos (all?) currently available ESP8266 versions

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

#37
post #27

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

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

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

#38

Is it possible to do real time programming in a garbage collected language?

If you don't have any cycles (and disable mark/sweep), Python's reference counting will be deterministic. However, I doubt this implementation will be able to offer real-time capability :)

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

#39
post #27

Earlier quoted context omitted.

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

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.

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

#40
Esp8266 also runs Lua, which provides first-class co-operative co-routines and is a really nice way to do cooperative multi-tasking.

I've been playing with a Esp8266 NodeMCU configuration where one co-rountine monitors and maintains the wired-access connection, another CR blinks the activity led on a timer, and another presents a telnet-like command interface listening on a tcp/ip socket.

The entire OS layer has been avoided, yet there is almost no loss of functionality.

Post reply on HN