{"id":21917467,"url":"https://github.com/clusterm/rc-transceiver","last_synced_at":"2026-03-13T13:32:35.915Z","repository":{"id":61934004,"uuid":"480076677","full_name":"ClusterM/rc-transceiver","owner":"ClusterM","description":"IR remote control receiver and transmitter based on Onion Omega2","archived":false,"fork":false,"pushed_at":"2024-02-20T18:57:23.000Z","size":336,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-21T18:35:49.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ClusterM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["ClusterM"],"custom":["https://www.buymeacoffee.com/cluster","https://boosty.to/cluster"]}},"created_at":"2022-04-10T16:36:31.000Z","updated_at":"2025-11-01T19:18:33.000Z","dependencies_parsed_at":"2025-04-20T13:00:28.415Z","dependency_job_id":null,"html_url":"https://github.com/ClusterM/rc-transceiver","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ClusterM/rc-transceiver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClusterM%2Frc-transceiver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClusterM%2Frc-transceiver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClusterM%2Frc-transceiver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClusterM%2Frc-transceiver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ClusterM","download_url":"https://codeload.github.com/ClusterM/rc-transceiver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClusterM%2Frc-transceiver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30467802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T11:00:43.441Z","status":"ssl_error","status_checked_at":"2026-03-13T11:00:23.173Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T19:32:40.280Z","updated_at":"2026-03-13T13:32:35.895Z","avatar_url":"https://github.com/ClusterM.png","language":"C","funding_links":["https://github.com/sponsors/ClusterM","https://www.buymeacoffee.com/cluster","https://boosty.to/cluster"],"categories":[],"sub_categories":[],"readme":"# RC-Transceiver\nIR remote control receiver and transmitter based on Onion Omega2\n\n![image](https://user-images.githubusercontent.com/4236181/162630080-509640bc-b694-4214-8539-e739509308c4.png)\n\n## Hardware\n\n### Bill of materials\n![BoM](hardware/bom.png)\n\n### Schematic\n\n![Schematic](hardware/schematic.png)\n\n## Software\n\nRC-transceiver uses it's own Linux kernel module. This module uses the hardware PWM of Onion Omega2 for IR transmitting and GPIO for receiving.\n\n### How to load the Linux kernel module\n\nYou can load the module via command line:\n`insmod rc-transceiver rx_pin=17 pwm_channel=0`\nYou should use this parameters for my schematic but if you want to change something:\n* rx_pin - number of GPIO pin for receiving\n* pwm_channel - PWM channel used for transmitting (0 for pin 18, 1 for pin 19, see datasheet)\n\nTo load the module autocatically at boot you can create the `/etc/modules.d/99-rc-transceiver` file with this line:\n```\nrc-transceiver rx_pin=17 pwm_channel=0\n```\n**You need to set GPIO MUX to PWM manually**, e.g. put this line to the beginning of `/etc/rc.local`:\n```\nomega2-ctrl gpiomux set pwm0 pwm\n```\n\n### How to use the Linux kernel module\nIf module is loaded correctly the `/dev/rc` pseudo file should appear. You can read it as a text file and press some button on your remote control:\n```\nroot@rc-transceiver:~# cat /dev/rc\n680a7803bc017803bc01bc01bc01bc01bc0178037803bc01bc01bc01bc01bc01bc01bc01bc01bc01bc01bc01bc01bc0178037803bc01bc017803bc01bc01bc01bc01bc01bc0178037803\n```\nThis long line is a raw button code. It's encoded as a hexadecimal string of 16-bit (little-endian) values with signal lengths and gap lengths in microseconds. E.g. code `112233445566778899aa` means:\n* `1122` = 8721 microseconds of signal\n* `3344` = 17459 microseconds of gap\n* `5566` = 26197 microseconds of signal\n* `7788` = 34935 microseconds of gap\n* `99aa` = 43673 microseconds of signal\nAnd so on.\nSo [RC-6](https://www.sbprojects.net/knowledge/ir/rc6.php)-encoded button 0x3D looks like `680a7803bc017803bc01bc01bc01bc01bc0178037803bc01bc01bc01bc01bc01bc01bc01bc01bc01bc01bc01bc01bc0178037803bc01bc017803bc01bc01bc01bc01bc01bc0178037803`\n\nNow you can transmit this code by writing to the `/dev/rc`:\n```\necho 680a7803bc017803bc01bc01bc01bc01bc0178037803bc01bc01bc01bc01bc01bc01bc01bc01bc01bc01bc01bc01bc0178037803bc01bc017803bc01bc01bc01bc01bc01bc0178037803 \u003e /dev/rc\n```\n\n## Example scripts\nThis project comes with several Python scripts that demonstrate encoding and decoding of some remote control protocols:\n* `demo_scripts/receiver-test.py` - receiver\n* `demo_scripts/transmitter-test.py` - transmitter\n* `demo_scripts/necrc.py` - module to decode and encode NEC protocol (most popular one)\n* `demo_scripts/rc6.py` - module to decode and encode RC-6 protocol (used by Philips)\n\n## Donations\n\n* YooMoney: [41001843680639](https://yoomoney.ru/transfer/quickpay?requestId=343838343938323238305f64633138343335353537313930333165656235636336346136363334373439303432636264356532)\n* Bitcoin: [1GS4XXx1FjQaFjgHnoPPVAzw9xqfv5Spx5](https://btc.clusterrr.com/)\n* DonationAlerts: [https://www.donationalerts.com/r/clustermeerkat](https://www.donationalerts.com/r/clustermeerkat)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclusterm%2Frc-transceiver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclusterm%2Frc-transceiver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclusterm%2Frc-transceiver/lists"}