Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4157

Troubleshooting • Re: Send IR Command LIRC

$
0
0
Hi Guys, sorry if I didn't continue the conversation. I decided to do it all again. I leave you all the steps I followed.

I'm working on a project and I would like to use Lirc to control my hi-fi device via Raspberry. I already have the configuration file taken from the database (Denon RC-220). I just need to send commands but when I go to run the irsend command nothing happens. Can anyone help me or recommend some guides to follow? Because I've tried so many but it's always the same :(



Hardware: Raspberrypi 3B+

1. List item

220ohm and 10K
transistor BC547
led ir



Software: Raspbian 9 Stretch , Kernel Version 4.19.66-v7+ , Lirc Version 0.9.4c

Code:

      /boot/config.txt    dtoverlay=gpio-ir,gpio_pin=22    dtoverlay=gpio-ir-tx,gpio_pin=23        sudo nano /etc/lirc/lirc_options.conf    nodaemon        = False    driver          = default    device          = /dev/lirc0


I only made these two changes. I took the lircd.conf file from the lirc database. The device I need to check is RC-220. For the connections I used a bredboard as seen in the photo. The problem is that when I use the irsend command nothing happens. If I frame with the camera I don't see the LED light up. I did a test by connecting a simple green LED and when I send the command it lights up so I think the Raspberry is sending the command.


These are the parameters taken from the lirc file,can they affect the sending of commands for example kernel limitations LIRCBUF_SIZE256 or IR_MAX_DURATION 500ms ?

name RC-220
bits 5
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

one 354 1753
zero 354 691
ptrail 354
pre_data_bits 5
pre_data 0x2
post_data_bits 5
post_data 0x8
gap 67101
min_repeat 1
toggle_bit 0

begin codes
KEY_OPEN 0x0000000000000001


I followed this guide:
https://github.com/mtraver/rpi-ir-remote
Figure-2_lightbox.png

IMG-20240624-WA0041.jpg

Statistics: Posted by Dende90 — Tue Jun 25, 2024 11:06 am



Viewing all articles
Browse latest Browse all 4157

Trending Articles