dgmltn / particle-chromis

A universal IR remote control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chromis

A universal IR remote control, named after the Flashing Chromis.

alt tag

Hardware

This project assumes a Particle Photon or Spark Core with an IR Decoder connected to pin D0. I bought part number CHQ-1838 on Amazon. The IRremote library is hard-coded to output a remote control signal on pin A5. For IR Output, I connected a NPN transistor to A5, and two IR LEDs (in series) with the C-E side of the transistor with 5V (and 50Ω resistor). I used the Photon's 5V power supply to power everything.

schematic

API

Chromis has a very simple interface. When it detects a remote control, it publishes a Particle event:

ir-detected with data representing the button that was detected, for example: NEC,FF48B7,32. It also outputs this same data string as serial output.

To re-emit this same remote control signal, call the Particle function emit, with the same button data:

emitNEC,FF48B7,32

That's it! Happy remoting!

Acknowledgements

  • Particle for their awesome and versatile (and my favorite) IoT device
  • Ken Shirriff for the bulk of the IRremote Arduino code
  • Paul Kourany, Dianel Gilbert, for the SparkIntervalTimer Arduino code

About

A universal IR remote control

License:Apache License 2.0


Languages

Language:Kotlin 72.1%Language:C++ 27.3%Language:Shell 0.6%