On Tue, 9 Aug 2016, Warner Losh wrote:
18B20 doesn't support humidity. The kernel also supports reading
it periodically and reporting the results via a sysctl now that we have
onewire support in the kernel. This has worked better for me than
reading them from Python...
If you want humidity also then there is the DHT22 or DHT11, both
of which can be tied to the PI but need a GPIO pin per sensor. I
haven't tried either of them personally.
Those work, but same here. I've not tried them personally.
I have half a dozen of the DHT21 here, connected to ES8266 boards,
reporting temperature and humidity wirelessly, standard 802.11g.
My software has them wake up, take measurements, and report to an MQTT
broker about once a minute. The rest of the time they are in low-power
The ESP8266 boards are just NodeMCU boards, an ESP8266 with a micro USB
port and a 3.3V regulator on a board with headers. These are about $5
US. The DHT21 is about that price or a little less. (Why the DHT21?
Because the spec sheet for it claims 3.3V compatibility, while the
others are usually 3.5V, which would probably work, but still.)
These are all running Arduino, both because of the availability of
software modules for things like MQTT and such, and also because the
built-in Lua in the NodeMCU was capable of going into low-power sleep,
but not waking up.
These modules will talk to FreeBSD with any of the standard USB to
serial adapters, including CP2102, CH340, and PL2303. I avoid and
recommend avoiding FTDI, but they work also.
Unfortunately, the later versions of the Arduino software and the
ESP8266 compilers have not been ported, so doing the development on
FreeBSD is not currently possible.
Of course this involves assembling the hardware, putting it in some kind
of case, rewriting the firmware from NodeMCU to Arduino, then adding
your own application software. It's not terribly involved, but it's not
off the shelf.
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"