===== TrigBoard - Kevin Darrah Wiki ===== [[http://www.kevindarrah.com/wiki/index.php?title=TrigBoard|Originalartikel]] [[https://www.qgelm.de/wb2html/wb454.html|Backup]]
...Back to Projects:
The trigBoard is an IoT project that does one thing - it pushes you a notification triggered by a digital input. Well, it's much more than that, but this is the inspiration. I wanted to design a WiFi board that essentially sleeps most of its life, but when that door switch, flood sensor, motion sensor, etc.. gets triggered, I just want a notification immediately on my phone. And that's about it... a perfect IoT device in the background doing its job.
Demo and Base Code [Released 12/18/17] walkthrough
The setup for getting the trigBoard installed is very easy. The base firmware that comes loaded on the board is ready to work with Pushbullet. This is a service that has many other features, but for the trigBoard, this offered a simple way for the push notification to be triggered using an "off the shelf" platform. It's all simple to get setup - just follow these steps:
If you don't see a captive portal, you may need to open your browser and attempt to load a website. Try to google something. If you still don't see the portal, then you can try connecting directly to the board - in the browser, type in 192.168.4.1 in the address box. That should connect you to the portal. If you're still having problems, try disconnecting the battery from the board and allow the trigBoard SSID to fade away from the available networks on your computer. Then plug the battery back in and try again. Seems that on windows this may take more than one try.
Click configure, and select the network that you trigBoard to use and enter in the password. You'll now see where you want to enter in the Pushbullet "o.xxx" access token. Then you can give the board a name, and a trigger message. Once that's entered in, click Save and you're all done! You should now get a push notification to your phone (when you installed the app, make sure you gave permission).
Note - the free version of Pushbullet limits the maximum number of messages per month. I have so many of these boards installed, that I upgraded... the monthly fee (at the time of writing this) was very reasonable.
Note! the board is preloaded with the base firmware out-of-the-box, but if you want to develop/modify your own firmware, this section will go through the steps for getting the base code to compile.
Base Firmware Downloads:
Released 10/08/18 Changes: updated code slightly to work with latest version of libs and ESP core Tested on Arduino v1.8.7, ESP core v2.4.2, WiFi Manager v0.14.0, Arduino JSON v5.13.3
Released 12/18/17 Tested on Arduino v1.8.3, ESP core v2.3.0, WiFi Manager v0.12.0, Arduino JSON v5.11.1
Base Firmware Developed on Arduino IDE - can download Here or Here for previous versions
Then you'll find that the code does not compile and that's because you need several libraries and the board manager installed. Here's what you need:
First, go to File>>Preferences and add this URL to to the "Additional Boards Manager URL". http://arduino.esp8266.com/stable/package_esp8266com_index.json
Now, the ESP8266 boards will be available for installation. Go to Tools>>Board>>Boards Manager... Search for ESP8266, and go ahead and click install.
After the boards are installed, you can select any of the ESP8266 boards out there from the Board Selection. For the trigBoard, I have been using the Adafruit Huzzah, here are my settings. Note that I always upload as fast as possible:
These settings also work:
Next, you'll need to install the specific Arduino Libraries I'm using in the base code. The first one is is the WiFi Manager by tzapu - the easiest way to install the library is to go to Sketch>>Include Library>>Manage Libraries. Then type in WIFImanager. Go ahead and install the library.
Do the same for the Arduino JSON library by Benoit Blanchon - can just search for JSON.
Then that should be it - the other libraries are automatically installed with the ESP8266 board manager.
See the "Testing and Programming" section below for information on loading the code over a wired USB-Serial connection. The other option is to load code wirelessly "OTA - Over the Air". In the "trigBoard Operation" section this is shown.
WeatherBoard BME280 and LMT01 Weather Station
EPaperBoard E-Paper Display
CameraBoard Camera System with Arducam
Note that the USB-Serial Converter that I designed is known to work - other versions of it may not. Here is the wiki page for the USB-Serial Board: The_USB_to_Serial_Converter:
The sequence for for configuring the board into programming mode with the buttons is as follows:
Note that it may take a few tries to get it to upload, so don't give up if it fails after a few tries, I personally load code onto every board that ships, so I know it's possible.
CODE IS HERE: http://kevindarrah.com/micro/Pusher/trigBoardOpenWeather.zip
Go to the CameraBoard page
I'm just a guy who designs boards, so I'll try my best to support you as much as I can and provide tutorials as I have time for. Every board that is sold has been functionally tested, so that they can be programmed, the sleep current is right, they can be woken up, the battery voltage measurement is "close", and active current is consistent with a working board. Also, these boards are for educational, hobbyists, DIYer, maker, and development use only. If you are interested in working this board into your product, please contact me for more information