2 unstable releases

0.2.0 Jul 26, 2024
0.1.0 Jul 22, 2024

#5 in #infrared

38 downloads per month

Custom license

13KB
307 lines

DIY IR Remote

RGB Light Photo Create your own infrared remote that you can activate programmatically.

Getting Started

Look at the examples in the examples folder. emit.rs is for using a Raspberry Pi with a 940nm IR LED connected as a remote. receive.rs is to decode the signal that an existing remote sends so that you can mimick the behaviour of an existing remote. The examples use a Raspberry Pi, but this library works on anything that Rust works on. See my example which uses this library on an ESP32-C3.

Wiring Diagram

Wiring Diagram

Tested Devices

These signal pulses of these devices should be decoded by the current logic:

  • Generic plastic button grid remote (tested 3 different ones, they all use the same protocol) Picture of a generic plastic button grid remote
  • A Pioneer Sound System
  • A Samsung TV

Let me know if you have a device with a signal that doesn't get decoded and I can help decode it.

Resources

You can read about these to learn more about IR remotes:

Dependencies

~1MB
~28K SLoC