Adafruit Trinket node that sends messages to the gateway to indicate end-of-cycle.
The Arduino IDE needs to be configured to recognize and program the Trinket board. You can follow the instructions found on the Adafruit website. You can also watch the walkthrough video showing you step by step.
- Open dryer_node.ino in the Arduino IDE
- Uncomment the define for ENCRYPT_KEY and set it to any 16 character ASCII string
- Set FREQUENCY to
RF69_433MHZ
,RF69_868MHZ
orRF69_915MHZ
depending on your version of the RFM69 module. - If your RFM69 module is not the high power version comment out IS_RFM69HW_HCW
- Select the Adafruit Trinket 8MHz board from the Tools->Board menu.
- Select USBtinyISP from the Tools->Programmer menu.
- Program the board by clicking Sketch->Upload Using Programmer.
IMPORTANT: Make sure to use Upload Using Programmer and not Upload from the Sketch menu.
The Trinket is programmed to immediately send a JSON message over the RFM69 module when it is powered on. It will send a single message and then go into deep sleep mode until it is reset. When hooked up to the dryer buzzer this will cause the Trinket to power on at the end of cycle to send a message.