by TeMPOraL · 11y ago · 0 comments
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.
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.
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.