IR receiver doesn't work?

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, jeremy882, crail.lyu969

Post Reply
ygrakes
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Sat May 14, 2016 9:29 pm

IR receiver doesn't work?

Post by ygrakes » Sat May 14, 2016 9:31 pm

Hello
I would like to test a IR receiver (model RB-See-185) with my GrovePi-Raspberry but I don’t know if I do the correct actions.
I connect the sensor on a A0 port and launch the script : /Desktop/GrovePi/Software/Python/grove_ir_receiver.py (with parameter in script pin port=1).
The disc image on SD card is original "Dexter Industries Raspbian for Robots" image.
Nothing is not happening when I test with my remote controler.
I have tested:
– an other analogic port
– a numeric port
but nothing.
Could you help me?
All update are done on software and firmware.

kavi
Staff
Staff
Posts: 305
Joined: Tue Dec 09, 2014 12:06 pm

Re: IR receiver doesn't work?

Post by kavi » Wed May 18, 2016 2:39 pm

Hello,

Please connect the IR receiver to the RPi serial port on the GrovePi and use the code in the following link https://github.com/DexterInd/GrovePi/tr ... r_receiver

Let us know the results

ygrakes
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Sat May 14, 2016 9:29 pm

Re: IR receiver doesn't work?

Post by ygrakes » Sat May 21, 2016 7:24 pm

Hello
I have done the script with the ir receiver on serial port. Below script logs.
Nothing appears on screen :(

Thank you.




Logs:
dex login: pi
Password:
Last login: Sat May 21 07:01:02 EDT 2016 on tty1
Linux dex 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
xhost: unable to open display ""
pi@dex:~ $ cd Desktop/GrovePi/Software/Python/grove_ir_receiver/
pi@dex:~/Desktop/GrovePi/Software/Python/grove_ir_receiver $ cd script/
pi@dex:~/Desktop/GrovePi/Software/Python/grove_ir_receiver/script $ sudo chmod +x ir_install.sh
pi@dex:~/Desktop/GrovePi/Software/Python/grove_ir_receiver/script $ sudo ./ir_install.sh
_____ _
| __ \ | |
| | | | _____ _| |_ ___ _ __
| | | |/ _ \ \/ / __/ _ \ '__|
| |__| | __/> <| || __/ |
|_____/ \___/_/\_\__\___|_| _ _
|_ _| | | | | (_)
| | _ __ __| |_ _ ___| |_ _ __ _ ___ ___
| | | '_ \ / _` | | | / __| __| '__| |/ _ \/ __|
_| |_| | | | (_| | |_| \__ \ |_| | | | __/\__ \
|_____|_| |_|\__,_|\__,_|___/\__|_| |_|\___||___/



WELCOME TO IR RECEIVER SETUP FOR THE GOPIGO.
Please ensure internet connectivity before running this script.
NOTE: Reboot Raspberry Pi after completion.

Check for internet connectivity...
==================================
Connected

Installing Dependencies
=======================
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_US
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_US
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
lirc is already the newest version.
python-lirc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.

Copying Config Files
====================
Files copied

Enabling LIRC
=======================
Lib dev already present
Check Lib Rpi GPIO
Lib Rpi GPIO already present
Check Pin 15
Check Kernel Version.
LIRC for Kernel 3.18 already present
Check Kernel pin 15

Please restart the Raspberry Pi for the changes to take effect
_____ ______ _____ _______ _____ _______
| __ \| ____|/ ____|__ __|/\ | __ \__ __|
| |__) | |__ | (___ | | / \ | |__) | | |
| _ /| __| \___ \ | | / /\ \ | _ / | |
| | \ \| |____ ____) | | |/ ____ \| | \ \ | |
|_| \_\______|_____/ |_/_/ \_\_| \_\ |_|

To Restart type 'sudo reboot'
pi@dex:~/Desktop/GrovePi/Software/Python/grove_ir_receiver/script $ sudo reboot



dex login: pi
Password:
Last login: Sat May 21 07:07:47 EDT 2016 on tty1
Linux dex 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
xhost: unable to open display ""
pi@dex:~ $ cd Desktop/GrovePi/Software/Python/grove_ir_receiver/
pi@dex:~/Desktop/GrovePi/Software/Python/grove_ir_receiver $ ls
ir_recv_example.py README.md script
pi@dex:~/Desktop/GrovePi/Software/Python/grove_ir_receiver $ python ./ir_recv_example.py

Post Reply