1


I've been struggling for a while now to make my raspberry function as a remote control working on infrared.
Although there is a huge number of tutorials for the issue, I seem to run into some trouble that is not mentioned in any tutorial / blog and could use your help.

I've installed lirc successfully and manage to get pulse / space values for the mode2 command. When I try to use irrecord, raw or not, I can't seem to finish the job; Specificaly when it comes to generating 2*80 dots I seem to get a few dots, maybe a whole line, and then it exits saying I don't send any IR signals.

It's really frustrating for me since I've been at it for about two weeks now, and havn't find one single tutorial that addresses this problem. Needless to say I checked the published conf files and none of them is suitable for me.

If there's an easier way, maybe some native python coding to workaround lirc and learn these commands by myself and send them by myself, it would be great. I only need a small number of buttons (currently less than 10).

WOULD GREATLY APPRECIATE ANY HELP / LEAD TO THE RIGHT DIRECTION.

asked Jun 6, 2016 at 16:01

1 Answer 1

1

I can offer a non-LIRC alternative to try.

It might work, it might not, but you should be able to find out within half an hour or so (assuming you have a working IR receiver and IR transmitter).

It uses a Python script to record and playback IR codes.

http://abyz.me.uk/rpi/pigpio/examples.html#Python_irrp_py

It requires my pigpio library which may be pre-installed on a recent Raspbian system.

answered Jun 6, 2016 at 16:22
5
  • Hey, thanks for your reply. I've installed the pigpio library. Do I need to install that script, too? Commented Jun 8, 2016 at 7:26
  • Yes, you then need to sudo pigpiod to start the daemon. The script will talk to the daemon to control the GPIO. Then run the script specifying read mode and the IR receiver GPIO. Depending on the remote control protocol used by your remote it will then work or not. Commented Jun 8, 2016 at 7:52
  • OK, so I've done everything as I saw right, and when I've started the script and ran an IR command from the remote, I got the following error: pi@raspberrypi:~ $ ./irrp.py -r -g 21 -f ir-codes power Recording Press key for 'power' Short code, probably a repeat, try again Short code, probably a repeat, try again Short code, probably a repeat, try again Short code, probably a repeat, try again Short code, probably a repeat, try again Any ideas how can I fix that? Thanks! Commented Jun 8, 2016 at 11:14
  • Also when I changed the SHORT variable to 0 it remained the same output. Commented Jun 8, 2016 at 11:21
  • That suggests that your remote control is using an unusual protocol (there are hundreds) which is incompatible with my software. See if you can get a screen shot on a 'scope (or try my piscope). Commented Jun 8, 2016 at 12:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.