Amazon introduces its Dash Button to order much needed goods. But there are alternatives. Two of them are bt.tn and flic.
bt.tn and flic are just what the name suggests: connected push buttons that can trigger actions. Together with IFTTT they can trigger a growing number of services. Relating to the connectivity bt.tn and flic differ.
The bt.tn has built-in internet connectivity and needs no smartphones or apps to pair with. Flic uses a Bluetooth low energy connection to an Android or iOS smart phone and the flic app for network connection.
These offers are interesting to experiment with. But, we can build such an IoT Button by yourself and save a lot of money.
D1 mini combined with an 1-Button shield is one solution. You can buy both for $ 4.99 from Aliexpress.
IFTTT offers channels for bt.tn and flic. IFTTT’s Maker Channel allows you to connect IFTTT to your personal projects like this IoT Button.
This time my IoT Button sends a Twitter Direct Message after pressing it. It’s a starting point to test the mechanism.
The configuration of IFTTT is well documented and should be no problem.
For a door contact application step-by-step instructions for IFTTT setup are in my book “IoT Node for les than 15 $”.
This time I work on reducing power consumption to get a battery-powered solution.
To measure the room conditions we can use a traditional Thermo-Hygrometer as shown in the image.
If you want to see these conditions from any location around your home then you can use a cheap DHTxx shield connected to a D1 mini and dweet its data to dweet.io. Use freeboard.io to make these data visible at any location. The program sample dht_dweet.lua can be downloaded from Sourceforge.
You can use your smartphone or a tablet to visualize the room conditions of the observed room (https://freeboard.io/board/BQK578).
Further information on NodeMCU and ESP8266 devices in “Building an IoT Node for less than 15 $” (http://amzn.com/3907857305; http://amzn.com/B018J1OVC4)
…build from DHT shield and D1 mini board
- Install last firmware version (for DHT commands)
- Use the floating point version nodemcu_float_0.9.6-dev_20150704.bin
- Download dht.lua and run it on DHT shield/D1 board package
- You will get the following output:
You can add a time stamp after calling a timeserver, for example.
Still on time in the old year, the Wemos delivery has arrived.
I ordered the D1 board, the D1 mini and a DHT shield. In the mean time there are further D1 mini shields.
You can order components via Aliexpress store.
After installation of NodeMCU firmware we can use Arduino shields w/ the D1 board to build IoT nodes.
Program examples will follow.
Wemos.cc offers the D1 mini – an ESP12F module based on ESP8266 WiFi-enabled microcontroller – and a DHT11 shield for temperature & humidity measurement.
Connecting both boards together builds a matchbox-sized weather station which can be powered by USB-mini connector.
NodeMCU sample code will be placed here after arriving of the ordered boards.
… is now available in the CreateSpace eStore and Amazon. Further shops will offer this title in the next days. The Kindle edition is online too.
Readers from Austria, Germany and Switzerland can order here.
This book covers #NodeMCU & #ESP8266 modules and their #Lua based programming.