Giter Site home page Giter Site logo

ir_rpi_link's Introduction

ir_rpi_link

IR or infrared, communication is a common, inexpensive, and easy to use wireless communication technology. IR light is very similar to visible light, except that it has a slightly longer wavelength. This means IR is undetectable to the human eye - perfect for wireless communication.

A common modulation scheme for IR communication is something called 38kHz modulation. There are very few natural sources that have the regularity of a 38kHz signal, so an IR transmitter sending data at that frequency would stand out among the ambient IR. 38kHz modulated IR data is the most common, but other frequencies can be used.

Koruza IR Link

Koruza IR link is a working prototype that will be used in wireless optical system KORUZA. It represents a system that is capable of establishing infrared communication over distances to 200 m. This IR link uses LIRC (Linux Infrared Control) with Raspberry Pi and additional hardware for IR transmitter (High Power Infrared Emitting Diode) and IR receiver.

LIRC

LIRC is a package that allows you to decode infrared signals of many (but not all) commonly used remote controls. LIRC runs as a daemon that will decode IR signals received by the device drivers and provide the information on a socket.

Instaling LIRC

Upgrade RPi2 firmware to newest version using these commands in order:

sudo apt-get update
sudo apt-get upgrade
sudo rpi-update
sudo reboot

After reboot, type the following command to install LIRC:

sudo apt-get install lirc liblircclient-dev

Configuring LIRC

Open the /etc/modules file, and add these lines at the end to make LIRC start up on boot and set the IR sensor pin to Pin-18 and IR LED pin(for later) to Pin-17 (pins can be changed):

lirc_dev
lirc_rpi gpio_in_pin=18 gpio_out_pin=17

Now we need to edit the LIRC hardware configuration file /etc/lirc/hardware.conf. Change the following lines:

DRIVER="default"
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"

Reboot your Raspi once:

sudo reboot

To make LIRC work on Raspberry Pi 2, you need to edit /boot/config.txt,add the following line to it:

dtoverlay=lirc-rpi,gpio_in_pin=18,gpio_out_pin=17,gpio_in_pull=up

All configurantion files can be found in folder config_files of this repository.

Resources

lirc - LIRC home page

Setting Up LIRC on the RaspberryPi

How to Control the GPIO on a Raspberry Pi with an IR Remote

Read/emulate remotes with Arduino and Raspberry Pi

ir_rpi_link's People

Contributors

vojislavm avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.