# Compabability

**URL:** <https://forum.core-electronics.com.au/t/compabability/11348>\
**Category:** Uncategorized\
**Created:** [12 September 2021 10:09 UTC](https://forum.core-electronics.com.au/t/compabability/11348 "2021-09-12T10:09:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven177275](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@steven177275](https://forum.core-electronics.com.au/u/steven177275)\
**Post date:** [12 September 2021 10:09 UTC](https://forum.core-electronics.com.au/t/compabability/11348/1 "2021-09-12T10:09:16Z")

</div>

Hi, is this device compatible with a raspberry Pi 4? thanks

> **[Digital IR Receiver Module(Arduino Compatible)](https://core-electronics.com.au/digital-ir-receiver-module-arduino-compatible.html)**
>
> IR is widely used in remoter control. With this IR receiver, the Arduino project is able to receive command from any IR remoter controller if you have the right decoder.

Digital IR Receiver Module(Arduino Compatible)

---

<div class="post-metadata">

**Author:** ![Oliver33](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@Oliver33](https://forum.core-electronics.com.au/u/Oliver33)\
**Post date:** [12 September 2021 23:43 UTC](https://forum.core-electronics.com.au/t/compabability/11348/2 "2021-09-12T23:43:00Z")

</div>

The short answer is you can get it to work, but it won’t be plug and play.

The long answer:  
There’s always two sides to this - hardware and software.

On the hardware side, the pi is a 3.3v device while older Arduinos (like the ever popular Uno) are 5v. Most things that call themselves Arduino compatible are 5v.

Since this device provides a digital signal (as opposed to an analogue signal) this can be overcome quite easily with a (Logic) Level Converter:

> **[Logic Level Converter Bi-Directional](https://core-electronics.com.au/logic-level-converter-bidirectional.html)**
>
> This Bi-Directional Logic Level Converter is a breadboard-friendly device that converts between 5V and 3.3V logic.

A Pi does have 5v power available so this is all you’d need (besides some wires etc. to connect things up).

On the software side, DFRobot’s library is written for an Arduino, so you’ll need to find your own. The good news is it looks like this is nothing more than a standard 38kHz IR receiver mounted on a PCB for convenience - this is a very commonly used part so there’s libraries for these on pretty much everything.

A quick google for [`pi 38kHz IR library`](https://duckduckgo.com/?q=pi+38kHz+IR+library&t=brave&ia=web) brought up this great tutorial:

> **[Controlling the GPIO on a Raspberry Pi with an IR Remote](https://ozzmaker.com/how-to-control-the-gpio-on-a-raspberry-pi-with-an-ir-remote/)**
>
> Controlling the GPIO on a Raspberry Pi with an IR Remote

Edit: As an aside, you should share your project with the community here. I’m always keen to see what people are doing 🙂

---

<div class="post-metadata">

**Author:** ![steven177275](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@steven177275](https://forum.core-electronics.com.au/u/steven177275)\
**Post date:** [13 September 2021 00:41 UTC](https://forum.core-electronics.com.au/t/compabability/11348/3 "2021-09-13T00:41:30Z")

</div>

OK, well i guess following on from this, im planning on installing Android TV on the Pi, using the LineageOS build  
What would be the easiest, most cost effective way to enable an IR input to the device with this in mind?

thanks

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [14 September 2021 03:48 UTC](https://forum.core-electronics.com.au/t/compabability/11348/4 "2021-09-14T03:48:24Z")

</div>

Hi Steven,

The easiest way to do this would be a FLIRC USB dongle:

> **[FLIRC USB](https://core-electronics.com.au/flirc-usb.html)**
>
> Use any Remote with your Media Center.

These are super easy to use, with a config utility for PC, Mac, and Linux, that you can use to set which keystroke gets sent out when it recieves a certain IR command. Android should be able to deal with these keystrokes, according to this guide:

> **[Controlling Android TV and Kodi with Logitech Harmony and Flirc](https://kiljan.org/2019/03/30/controlling-android-tv-and-kodi-with-logitech-harmony-and-flirc/)**
>
> Using a Flirc with a infrared remote control on an Android TV box is not hard, but requires some background research on the commands to feed to Android TV. With this guide the background research can be skipped, and the whole chain of devices will...

Keen to see you get this up and running!  
-James
