Difference between revisions of "TrigGateway"

From Kevin Darrah Wiki
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
[[File:trigGatewayHome.png|600px]]
 
[[File:trigGatewayHome.png|600px]]
  
The Weather Board is a breakout for the [https://www.bosch-sensortec.com/bst/products/all_products/bme280 BME280] (Temperature/Humidity/Pressure) and [http://www.ti.com/lit/ds/symlink/lmt01.pdf LMT01].  The board was designed to pair up nicely with the [[trigBoard]].
+
This is the first version of a board called the "trigGateway" and this will take your trigBoard project to the next level!
  
[[File:weatherGerb.png|200px]]
+
The purpose is simple - if you are using trigBoards to send push notifications, then you want those notifications FAST!  That's where this board comes into play. Instead of the trigBoards all waking up connecting to the provisioned SSID and then sending directly to the service (pushbullet), NOW the trigBoards just wake up and immediately send a packet to the trigGateway, then it will take care of getting it off to the notification service (pushbullet).  It does this with the help of two radios - one is listening for trigBoards, the other is always connected to the SSID ready to send off with the push notification. With this setup, trigBoards are only awake for ~1sec... then you get the notification really fast now. 
  
Note! Make sure to watch the video below on the assembly of the board:
+
Using ESPnow for point-point encrypted communication within ESP8266 modules, thanks to [https://github.com/HarringayMakerSpace/ESP-Now HarringayMakerSpace]
  
 
{{#evt:
 
{{#evt:
 
service=youtube
 
service=youtube
|id=https://youtu.be/SfBbGuwqzGI
+
|id=https://youtu.be/4laUO4Sx0N8
 
|dimensions=560x315
 
|dimensions=560x315
 
}}
 
}}
Line 17: Line 17:
 
== Schematic ==
 
== Schematic ==
  
[[File:weatherSCH.png|800px]]
+
Note that this was also an experimental board for an auto-reset circuit, so make sure you pay careful attention to the rework notes:
  
== Programming ==
+
[[File:trigGatewayReworkSCH3.png|800px]]
  
For the BME280, the [https://github.com/sparkfun/SparkFun_BME280_Arduino_Library Sparkfun Library] works perfectly.  Only thing to change is the Address to 0x76, and of course make sure to use I2C.  I tested using the "I2C_ReadAllData" example. 
+
== Parts ==
  
The LMT01 is very simple to work with - follow this tutorial, make sure the code is setup for the ESP8266 and the pulsePin is 14.
+
Parts list can be downloaded [http://www.kevindarrah.com/wp-content/uploads/2018/11/trigGatewayBOMV1.xlsx HERE]
  
{{#evt:
+
== Programming ==
service=youtube
+
 
|id=https://youtu.be/Jf8fhW68vYs
+
[http://www.kevindarrah.com/wp-content/uploads/2018/11/trigBoard_Gateway_10_20_18_VIDEO.zip  HERE] is the test code. 
|dimensions=560x315
+
 
}}
+
Note that all you have to do it comment out the board you are programming, and you should set the MAC addresses appropriately as well.  These were chosen randomly
[http://www.kevindarrah.com/download/arduino_code/LMT01.ino CODE HERE]
+
 
 +
[[File:trigGatewaymode.png|800px]]
 +
 
 +
And if you're using PushBuellet, put your o.xxx key here:
 +
 
 +
[[File:gatewaypushkey.png|800px]]

Latest revision as of 22:32, 9 November 2018

...Back to Projects:

TrigGatewayHome.png

This is the first version of a board called the "trigGateway" and this will take your trigBoard project to the next level!

The purpose is simple - if you are using trigBoards to send push notifications, then you want those notifications FAST! That's where this board comes into play. Instead of the trigBoards all waking up connecting to the provisioned SSID and then sending directly to the service (pushbullet), NOW the trigBoards just wake up and immediately send a packet to the trigGateway, then it will take care of getting it off to the notification service (pushbullet). It does this with the help of two radios - one is listening for trigBoards, the other is always connected to the SSID ready to send off with the push notification. With this setup, trigBoards are only awake for ~1sec... then you get the notification really fast now.

Using ESPnow for point-point encrypted communication within ESP8266 modules, thanks to HarringayMakerSpace

Schematic

Note that this was also an experimental board for an auto-reset circuit, so make sure you pay careful attention to the rework notes:

TrigGatewayReworkSCH3.png

Parts

Parts list can be downloaded HERE

Programming

HERE is the test code.

Note that all you have to do it comment out the board you are programming, and you should set the MAC addresses appropriately as well. These were chosen randomly

TrigGatewaymode.png

And if you're using PushBuellet, put your o.xxx key here:

Gatewaypushkey.png