use remotecontrols on smartphone [raspberrypi, android]

Mmmmh I need to integrate this to my project.

fredfire1

shopping list:
http://www.amazon.de/gp/product/B009P04XWW? (breadboard)
http://www.amazon.de/gp/product/B00EFOTJZE? (infrared diode/e.g. VS1838B)
http://www.amazon.de/gp/product/B00DI4ZSRU? (Male – Female jumper wire)

connect the device(this is for the model B):
print out this gpio-pin help so you do not get confused by the pins
https://github.com/simonmonk/wiki_images/raw/master/raspberry%20leaf%20r2.pdf
then connect them like on the following pictures.
irdiode_names
20150119_235626v2
20150120_001748v2

Install lirc in raspbian:(based on http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi )
sudo apt-get install lirc -y

sudo nano /etc/modules
add the lines:
lirc_dev
lirc_rpi gpio_in_pin=23 gpio_out_pin=22

Then exit the file with ctrl+x
Press y to confirm to save the file
Press enter

sudo nano /etc/lirc/hardware.conf
change the lines:
DRIVER="UNCONFIGURED"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE=""
MODULES=""

to:
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"

Then exit the file with ctrl+x
Press y to confirm to save the file
Press enter

sudo /etc/init.d/lirc stop
sudo /etc/init.d/lirc start

sudo reboot

test lirc:
sudo /etc/init.d/lirc stop
mode2 -d /dev/lirc0

View original post 70 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s