Skip to main content

JoyIT_IR_Remote_Receiver

[!NOTE] This library was forked to make it installable and making it compatible with the Raspberry Pi 5. Therefore 'RPi.GPIO' is exchanged with 'gpiozero'.

Installation

pip install JoyIT-IR-Remote-Receiver

Python 3 module for receiving IR remote control signals (NEC format) on a Raspberry Pi using a TSOP382 IR Receiver

This module includes one example file. For my testing I used several remotes from around my house, the example file includes the codes for the Sparkfun 9 button remote.

Connection

The TSOP382 IR receiver has 3 legs which are connected as follows:

  • 1 - PI GPIO - Pin 16 is used in the example
  • 2 - Pi Gnd
  • 3 - Pi 3.3V

Usage

To set up a IR object use:

ir = IRModule.IRRemote(callback=yourfunctname)

To set up the Pi GPIO callback the following is required

IR = DigitalInputDevice(pin = irPin, bounce_time = 0.000005)   # irPin = Pi pin connected to the output of the TSOP382 receiver
IR.when_activated =ir.pWidth
IR.when_deactivated =ir.pWidth 

To setup your program to provide the IR code being sent use the following

ir.set_callback('DECODE')

To get a listing of the time spans of the IR pulse highs and lows use

ir.set_verbose(True)

Current user functions include:

set_callback(callback = yourfunctname)
remove_callback()
set_verbose(verbose = False)
set_repeat(repeat = True)

Updates

Apr 3, 2020 Update

  • added repeat code recognition functionality
  • added the set_repeat() function to enable/disable the repeat code functionality

Noc 25, 2025 Update

  • exchanged 'RPi.GPIO' with 'gpiozero' to ensure compatibility with Raspberry Pi 5
  • made library installable

Mar 2, 2026 Update

  • added repository to PyPi

Metadata

Release files for JoyIT-IR-Remote-Receiver 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for JoyIT-IR-Remote-Receiver 1.0.1
File Size Uploaded
joyit_ir_remote_receiver-1.0.1.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for JoyIT-IR-Remote-Receiver 1.0.1
File Interpreter ABI Platform
joyit_ir_remote_receiver-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 34.1 kB

Release files / joyit_ir_remote_receiver-1.0.1.tar.gz

Download URL joyit_ir_remote_receiver-1.0.1.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
006fc59a4ee4272006461d682bcfee47fe34642d61b06e6ab93eeacc0631e0e8
BLAKE2b-256 checksum
How to use checksums
7a5df1821570d724153cb914004be70a9979ffaa19aac50ac37be43029118ea9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / joyit_ir_remote_receiver-1.0.1-py3-none-any.whl

Download URL joyit_ir_remote_receiver-1.0.1-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fd1eb443ed7eb2af29d5149c51dbbce6b5b1b73f7cdc674cb1a8b6eea8c2bf1
BLAKE2b-256 checksum
How to use checksums
9be901ae3714d54e6b6c6caf634094ca9c754247b4cff80c11b4761588c8e6cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page