by chime · 10y ago · 0 comments
1) Is built using CHIP and has a simply case + power adapter
2) Is wired to https://www.sparkfun.com/products/10167
3) Has an easy Wifi setup process and does DHCP
4) Lets me do a GET http://ip/status and gives me JSON of the current temperature and humidity.
Then all I have to worry about is setting up a cron job that wgets all 50 devices and logs the result to DB.
FYI equivalent systems, even non-NIST-calibrated ones cost $500/device or more.
Also, as a warning from experience the DHT22's aren't that great and they have been a headache. They are relatively expensive, not very precise and also I've seen a huge variation in their manufacturing quality. The relative humidity readings in particular are wildly inaccurate. There are better temperature sensors that cost less than a dollar (DS18) and to get reliable humidity readings you really need something nicer like the SHT-31.
From what I can tell the ESP8266 is some sort of wifi enabled...chip? That you need to solder onto something or plug onto a breadboard, then you need an arduino for some unstated reason. What is an arduino? how do you make these two things interact? How do you provide power to these things? why are there so many arduinos?
I think the advantage of these single board computers are they are a much lower barrier to entry if you don't have that much knowledge of electronics, but have more experience of navigating Linux systems and writing software.
You don't need to solder it to anything (it already comes soldered on its own board). You don't an external microcontroller to use it. It is standalone. It is compatible with the 'Arduino'. The Arduino is a family of microcontrollers built from the ground up to be easy to use. Easy to use software, easy to program (Variant of C) - and more importantly, heaps of support and tutorials online.
Honestly, the most difficult thing about using the ESP is powering and programming it. It takes 3.3V - and only 3.3V, so finding an appropriate power supply can be trickly. It programs over serial, so you need to use a USB > serial module - $1.30 [1]
The modules themselves are super cheap: - $1.50 [0] There's a very strong community behind the module: http://www.esp8266.com/
Essentially: Don't be scared: there's an initial learning curve that is very gentle, and you'll suddenly find unlimited uses for these tiny little modules.
I've got modules that show build statuses, affiliate account activity.. etc.
They also work, as mentioned, exceptionally well in a flock reporting to a main system - which may be a CHIP system, Raspberry PI, OpenWRT router, etc.
[0] http://www.aliexpress.com/item/Free-Shipping-2pcs-lot-ESP826... [1] http://www.aliexpress.com/wholesale?catId=0&initiative_id=SB...
I wonder what other common bits of electronics might have useful amounts of processing power...
The Arduino is _not_ a familiy of microcontrollers, it's a family of dev boards (well, more like an ecosystem) and most Arduinos are based on AVR microcontrollers (but not all of them as far as I remember).
"Arduino" is used to refer both to a family of microcontrollers based on an Atmel processor as well as a set of libraries designed to make programming microcontrollers accessible to people without embedded hardware experience. Originally, the ESP8266 was marketed as a simple serial Wifi adapter for the (hardware called) Arduino, but the community quickly realized that they could be programmed on their own and used to replace the Arduino. Subsequently, the Arduino libraries were ported to the ESP8266, making it instantly much more accessible as well as giving it access to a huge range of libraries for interfacing with different hardware and software.
ESP8266 refers specifically to the processor, but it is usually sold in an integrated package with onboard memory and antenna etc. There are several of these packages for different uses, called e.g. ESP-01 or ESP-12e. While you can use these modules yourself with a bit of knowhow and some deft soldering, much easier is to buy a prepackaged dev board like the NodeMCU or WeMos D1. These are basically the equivalent to a CHIP (albeit again much fewer IO pins)- they pair an ESP integrated module (usually the ESP-12e) with all the supporting hardware needed to power and program the module. You just plug in a USB cable, load your code on and connect whatever external devices to the GPIO pins.
I didn't have any significant electronics knowledge when I dove in head first. Arduino is designed to be accessible and there are plenty of kits with detailed instructions and all the parts you need. The ESP8266 has been wildly popular in the last year or so because it's got Wifi + compatible with Arduino (i.e. easy) + dirt cheap, which was previously unheard of.
Then the module itself can run with very little external stuff - just power it with 3.3v, there are multiple options of doing so (but forget about a transformerless AC source, this thing eats up to 500mA).
You may also want a simple debounced reset button, and that's it.
If OP searches for "Arduino soil moisture sensor" he/she will find find plenty. There's not a whole lot of difference between them.
But I'm curious if Espressif actually have any design wins? I mean I don't mind using the community Arduino port (which is awesome), and buying from...unknown suppliers :) but is thing commercially viable or just a hobbyist gadget?
I got the "NodeMcu Lua WIFI Internet Things development board based ESP8266 CP2102 Arduino" a while ago on eBay for $6.85 USD, price has now dropped to $4.76 USD, plus CAD is better-ish.
I am a ESP8266 fan but not sure that I'd be confident enough to do a product with the ESP8266.
It's not the perfect solution for everything; but it's tiny, and it costs $1.50 on aliexpress / banggood, and there's a ton of code for it.
If you need a module that is mono-task, tiny, cheap and reliable, it's hard to go past the ESP.
If you're looking for a full computer, then it's an obvious choice towards CHIP / Raspberry PI, etc
Also I don't know many people who use the native C SDK for the ESP8266. Most people use Arduino (simplified C++), but there's also Lua, Javascript and Python.
I'd consider the ESP8266 if I could run Go or Rust on it.
You could probably work out a way to wire in the humidity sensor onto that, and scale it up via a printed PCB.
And instead of worrying about GETs, you can program the device to report in via MQTT to a central server.
You likely know all this, just curious :)
Onboard RTC, LiPo charger, temperature sensor, micro SD card socket. Designed to be plugged into a 5 volt solar panel. (Many complaints that the panel Seeed supplies is undersized and degrades quickly in the field, so we don't carry it, so you'd have to source that yourself, or just use a DC wall adapter) Uses XBee-footprint radio modules, sold separately. (We don't carry those either, since Digi got really obnoxious about trademark enforcement)
[1] http://lowpowerlab.com/moteino/
[2] http://jeelabs.net/projects/hardware/wiki/JeeNode
[3] http://lowpowerlab.com/blog/2015/12/17/esp8266-vs-sub-1-ghz/