The image below is a link. Try to click on it.

[ SOLVED ] Irdroid USB Infrared Transceiver and the Raspberry Pi3

Irdroid USB IR Transceiver and the Raspberry Pi3

Irdroid USB IR Transceiver and the Raspberry Pi3

User’s reported a bug in Lircd (v0.9.4 and below) that renders the DP Irtoy and the Irdroid USB Infrared transceiver modules unusable . When the lircd is started and and after sending a number of IR commands (sometimes it crashes after sending just one ir command ) to the Irdroid USB Infrared transceiver, the module gets de-enumerated and the only way to recover is to unplug and plug again the module in the USB port.

Last few months I am trying to fix this issue with no success then a few days ago I have received an email from a previous customer (Thomas Orgis l  Tnak you very much Thomas! ) who managed to find the bug in Lircd. Thomas has used the GDB in order to debug the issue and he found out that all happens in the “setPin” function in irtoy.c file. He contacted me to provide a patch see below:

— lirc-0.9.4d/plugins/irtoy.c.orig    2017-01-23 10:23:38.000000000 +0100
+++ lirc-0.9.4d/plugins/irtoy.c 2017-02-05 16:42:19.203099837 +0100
@@ -171,13 +171,16 @@
static int setPin(unsigned int pin, int state)
{
unsigned int mask = 1 << pin;

+#if 0
IOdirections &= ~mask;
if (state)
IOdata |= mask;
else
IOdata &= ~mask;
return setIOData();
+#else
+       return 0;
+#endif
}

I have tried to open a ticket in sourceforge providing the bugfix to the community , but they replied that this should be now fixed in lircd 0.9.4d (which is not the case). So I am providing here the lircd 0.9.4d with the above mentioned patch already applied so that the users can directly download , compile and install lircd and continue using their Irdroid USB Infrared Transceivers. I have tested the above lircd version with the patch on Raspberry Pi3 with raspbian installed , but it should also work on other GNU Linux Systems.

Downloads:

The image below is a link. Try to click on it.

Discover how to turn Raspberry Pi into a Infrared Remote control using the Irdroid-Rpi

This Blog post is a continuation of my previous Blog post for turning raspberry Pi into a Infrared Remote Control using the Irdroid USB Infrared Transceiver. This time we will be using the Irdroid-Rpi Infrared Transceiver HAT for Raspberry Pi. The Irdroid-Rpi Transceiver HAT has three powerful IR leds , that will allow wider remote control angle (you dont need to point it to the target IR controlled appliance – it can be behind it ) and improoved Infrared Remote control Range – more than 15 meters. The module also has a sensitive Infrared Receiver that will allow you to scan and digitize infrared remote controls of your choise.

In this example we will be using a Raspberry Pi model B+ with 512 MB of RAM as a system for running the open source software LIRCd , responsible for sending and receiving infrared commands in Linux.

I am using the following tools ( Hardware ) for our tests:

I also use the following software tools :

  • The latest version of LIRC

  • We will also use Raspbian , installed using NOOBS on a 16 GB sdcard.

  • The Irdroid-Rpi Infrared Transceiver HAT uses the Lirc-rpi and lirc-dev kernel modules, that normally comes with Raspbian

Below are the steps for configuring Irdroid-Rpi with LIRC on Raspbian:

  1. Attach the Irdroid-Rpi Infrared Transceiver HAT to your PI and turn your it on.

  2. After it boots issue “sudo apt-get install lirc lirc-x” and wait until the lirc packages are installed on Raspbian.

  3. cd to /boot and edit the config.txt file using your favourite text editor and uncomment “dtoverlay=lirc-rpi” . This will enable the lirc-rpi gpio kernel driver, and it will allow us to use the default IR Transmit and Receive GPIOs which are GPIO17 and GPIO18 (The Irdroid-Rpi board uses GPIO17 for IR TX and GPIO18 for IR RX , so you don’t need to change the pins. UPDATE!!! For Kernel 3.18+ where device tree is enabled by default  you will need to add “dtoverlay=lirc-rpi,gpio_in_pin=18,gpio_in_pull=high,gpio_out_pin=17” 

     “device_tree=” in order to disable the device tree.

  1. cd into /etc and edit “modules” using your favourite text editor add “lirc_dev” and under it “lirc_rpi” then save the file.

  2. cd into “/etc/lirc” and edit the file “hardware.conf” with your favourite text editor add “–listen”  as follows in “LIRCD_ARGS=”–uinput –listen”  then save the file . That will instruct lirc to listen on the default port (which is tcp port 8765), allowing connections from the local network (We will need that later for our lirc client application).

  3. Download an example lircd configuration file which includes some sample remotes. Issue “cd /etc/lirc” then issue “sudo wget http://irdroid.com/db/t.conf -O lircd.conf ” to download a sample config file with a sample “remote controls in it”

  4. Reboot your Raspberry Pi and make sure lircd is running , if not start it by issuing “sudo /etc/init.d/lirc restart”

Now you can play with the LIRCd Android clients like “Amote”  , and configure your smartphone as a custom user interface for controlling IR appliances using your newly configured Raspberry Pi Infrared Remote control.

As in my previous post I will again use the “Amote” lirc client application for Android in order to control my new Raspberry Pi infrared Transceiver.

The Amote app will allow you to:

  • Configure the network settings to connect to The lircd that runs innside Raspberry Pi

  • Allow you to connect to that lirc daemon and query for the remotes.

  • To assign and make custom buttons and interface for any of the remotes in the Lirc database . Below are some screenshots and videos.

We have a special discount ( 20% Off )offer for Raspberry Pi owners, you can purchase a Irdroid-Rpi Infrared Transceiver HAT with discount using the link below and applying the “raspberry” coupon on checkout .

http://www.irdroid.eu/product/irdroid-rpi-infrared-transceiver-raspberry-pi/

We also provide a ready configured and tested install of the LIRC daemon on a sdcard so that you can directly plug the card to your Raspberry Pi (for model B+) and save you some typing in the terminal. You can purchase a 16 Gigs SDcard with Raspbian and LIRCd configured for Irdroid from the link below:

Click here to grab a configured and tested install of Lircd, configured with the Irdroid-Rpi Infrared  Transceiver HAT  on a sdcard ready for running on your Raspberry Pi model B+

Downloads:

 

The image below is a link. Try to click on it.

Irdroid-Rpi Infrared Transceiver for Raspberry Pi

We have received a number of requests for making Infrared Transmitter / Receiver modules compatible with Raspberry Pi.  Our USB Infrared Transceiver module is compatible with Rpi , however we have decided to actually make a add-on Infrared Transceiver board / HAT for Rpi. The board is designed with Infrared Transmitter , Infrared Receiver and Olimex UEXT interconnect sections.

Irdroid-Rpi Infrared Transceiver Features:

  • Infrared Transceiver add-on / HAT for Raspberry Pi
  • Infrared Transmitter @940nm with 10+ meters range
  • Infrared Receiver up to 40khz and 10+ meters of receive range
  • On-board UEXT Interconnect for connecting Olimex sensors and boards.
  • Open Source Hardware.

We have completed the design of the board. We expect to have it in stock in mid April 2016.

Read more by following the link below ( http://www.irdroid.eu )