Difference between revisions of "User:Martinus/IR Gateway"

From Let's Control It
Jump to navigation Jump to search
Line 6: Line 6:
 
This small box has been my IR gateway for many years and it will likely serve many years to come. It started out using Nodo firmware (the ESP module socket wasn't there yet) but is has been replaced with a small RFLink edition that runs on Atmage328P. The ESP socket was added and it runs ESP Easy Mega edition.
 
This small box has been my IR gateway for many years and it will likely serve many years to come. It started out using Nodo firmware (the ESP module socket wasn't there yet) but is has been replaced with a small RFLink edition that runs on Atmage328P. The ESP socket was added and it runs ESP Easy Mega edition.
  
The module has always worked autonomous so it does not depend on other controllers. It has always been rock solid stable.
+
The module has always worked autonomous so it does not depend on other controllers. It has always been rock solid stable and it controls several Kaku light around my house.
  
 
It used 3.5" jack plugs to connect two IR sensors that are located in other rooms (living and bedroom). These are the two jack connectors at the bottom side.
 
It used 3.5" jack plugs to connect two IR sensors that are located in other rooms (living and bedroom). These are the two jack connectors at the bottom side.
Line 14: Line 14:
  
 
Atmega 328P (but any Arduino Uno, Pro mini will also work)
 
Atmega 328P (but any Arduino Uno, Pro mini will also work)
IR receiver
+
*IR receiver
433MHz transmitter
+
*433MHz transmitter
ESP8266 ESP01 module (1MB Flash version)
+
*ESP8266 ESP01 module (1MB Flash version)
 +
*Logitech Harmony 650 (added the Kaku device)
  
 
= Software =
 
= Software =
RFLink Small https://github.com/letscontrolit/RFLinkSmall
+
*RFLink Small https://github.com/letscontrolit/RFLinkSmall
ESP Easy Dev12
+
*ESP Easy Dev12
  
  

Revision as of 13:24, 21 October 2017

IR Gateway

Introduction

User-Martinus-IR Gateway.JPG

This small box has been my IR gateway for many years and it will likely serve many years to come. It started out using Nodo firmware (the ESP module socket wasn't there yet) but is has been replaced with a small RFLink edition that runs on Atmage328P. The ESP socket was added and it runs ESP Easy Mega edition.

The module has always worked autonomous so it does not depend on other controllers. It has always been rock solid stable and it controls several Kaku light around my house.

It used 3.5" jack plugs to connect two IR sensors that are located in other rooms (living and bedroom). These are the two jack connectors at the bottom side. The right side jack plug is for serial, to upgrade the RFLink firmware when needed.

Hardware

Atmega 328P (but any Arduino Uno, Pro mini will also work)

  • IR receiver
  • 433MHz transmitter
  • ESP8266 ESP01 module (1MB Flash version)
  • Logitech Harmony 650 (added the Kaku device)

Software


ESP Easy rules sample

on !RFLink#Kaku;ID=44;SWITCH=1;CMD=ON; do
  SerialSend 10;NewKaku;000001;2;2;
  delay 500
  SerialSend 10;NewKaku;000002;2;7;
  delay 500
  SerialSend 10;NewKaku;00000A;2;5;
endon

on !RFLink#Kaku;ID=44;SWITCH=2;CMD=ON; do
  SerialSend 10;NewKaku;000001;2;15;
  delay 500
  SerialSend 10;NewKaku;000002;2;15;
  delay 500
  SerialSend 10;NewKaku;00000A;2;8;
endon

on !RFLink#Kaku;ID=44;SWITCH=1;CMD=OFF; do
  SerialSend 10;NewKaku;000001;2;OFF;
  delay 500
  SerialSend 10;NewKaku;000002;2;OFF;
  delay 500
  SerialSend 10;NewKaku;00000A;2;OFF;
endon