If I get an ESP8266, I can have something that run code, sit on my home network wirelessly and use it to do things like report on sensor inputs? Am I missing some larger expense that would be required as this seems very cheap compared to other options I've seen.
I have done exactly this, it sends values to an MQTT server on my NAS every second or so, which the NAS then adds to Graphite and plots them in Grafana. It also has some logic to act on these values and send commands back, like turning lights on and off, etc.
I feel like this comment could be turned into a popular blog post.
https://github.com/skorokithakis/ArduiRC
I'll write up the details, but this is a good chunk of it.
I'm pretty disheartened, I'll try some more and either succeed or go back to an Arduino over serial... Do you have any experience with making it not crash?
Good luck!
By the way, if you don't want to keep checking the comments, you can follow me on Twitter at @stavros and experience my frustration first-hand. I'll be posting about it there.
Just be careful not to connect the 5V VCC to the ESP8266, it will probably kill it.
You need to run it on 3.3v which means 3.3v versions of your sensore or external level shifting. You've got limited IO compared to, say, Arduino.
But of you've got 3.3v sensors - yeah - all you need is an ESP8266 and some way of providing 3.3v. (And probably some pulldown/up resistors and decoupling caps...)
EDIT:
And given the power, you can start offloading computation on what would otherwise be "dumb" control/data acquisition units. Hell, with that much compute you can start running serious DSP on it, which opens some additional use cases.
My current solution (to be deployed in a week or two, after I get home): $2 Chinese fast charger with 4 USB ports (2x 2A, 2x 1A). I had a chance to test them personally before buying; they're decent enough for the task and cheap enough to buy a bunch. You can then use either an Arduino ($2-3 with USB cable) and ESP8266, or NodeMCU + $3 USB cable.
http://www.aliexpress.com/item/4-Port-2A-USB-Fast-Charger-Mo...
The price on Aliexpress is stunningly high though; I bought it for something like $2-$3 in person. I guess this is one of those cases (I've noticed a few), where Chinese just leave the same price numeric value but change the unit from CNY to USD.
Are you sure about this? It doesn't sound... legal.
But if you are not planning on using shields you can get arduino mini for ~$1.3 or nano for ~$1.8
You can get a Pro Mini clone for less than $1.50.
A full-size Arduino R3 clone (with a cheaper USB chip, the CH340G) is less than $3 with free shipping.
They can't even have a profit margin with that price point. So why not open-source it anyway to let go of the burden of manufacturing? That would be a great boost for the Raspberry platform.
Or at least it used to be so; sadly, in the last few years the US was pressuring Chinese government to crack down on it. Anyway, you can read more about this phenomenon here: [0].
Oh, and one more thing. It may not apply to RPi in terms of cloning it because it's still quite a niche product, but in general, they actually recycle electronics here. Like, seriously, when you throw away your smartphone, it'll likely end up in China for desoldering. So will your laptop. The amount of desoldered components and especially ICs available for sale is staggering. I have no data for this, but I'm pretty sure people here are making small-scale production runs out of recycled ICs. So Broadcom may not sell you their chip, but the lady on the first floor of SEG building in Shenzhen just might.
BTW., I love how they recycle components so much, and how it leads to interesting situations sometimes. For instance, I recently got my phone fixed - $15 and 15 minutes of waiting was all it took to get the front half of Galaxy S4 replaced with a brand new part (screen + touch surface + glass + box) and to get a new camera (electronics, lens and all). The equivalent repair at home would cost me around $240 and would take a few days. The secret of such cheap and fast repair? They took the broken parts from me. They'll regain 90% of value of that repair by simply replacing broken subcomponents in their own time, and then pushing the fixed modules back onto the market.
And she will also happily affix a holographic "genuine" sticker to the part and package it in "original" "tamper proof" packaging. Just like brand new!
don't have any data on that either. but I'm guessing it is more likely than getting what you ordered.
I've recently figured out that there's no point in designing your own PCB for placing sensors at home, when you can get an Arduino and an ESP8266 for $5; add power (and some ~$0 of voltage regulation) and you have a base station. Or just buy NodeMCU for $3 and skip on wiring Arduino and ESP8266 together.