Hallo zusammen,
ich versuche mit diesem IR-Controller https://www.amazon.de/gp/product/B00T9JPA4O/ref=od_aui_detailpages01?ie=UTF8&psc=1 (Affiliate-Link) ein IR-Signal auszugeben bzw. zu empfangen.
Ich habe wenig Erfahrung mit meinem Raspberry https://www.amazon.de/gp/product/B07BDR5PDW/ref=od_aui_detailpages00?ie=UTF8&psc=1 (Affiliate-Link), daher schließe ich einen grundlegenden Anfängerfehler nicht aus.
Über dieses Tutorial https://gist.github.com/prasan…8eb682bde34961c322c95378b habe ich die Programmierung vorgenommen, ergänzt durch dieses Tutorial https://tutorials-raspberrypi.…-infrarot-steuerung-lirc/, da das Tutorial auf github scheinbar nur Anpassungen beschreibt.
Die ersten Schritte scheinen auf den ersten Blick zu funktionieren, aber ab der Zeile mode2 -d /dev/lirc0, wo ich eine Ausgabe bei Betätigung von Tasten erwarten kann, erhalte ich keine sichtbare Reaktion. Sprich es wird kein Code wie z.B. pulse 9007 angezeigt. Demnach bleibe ich immer in diesem Schritt hängen.
Vielleicht noch hilfreich ist, dass ich in Python in der Zustandsabfrage meines Input vom IR bei keiner Tastenbetätigung eine 0 und bei Tastenbetätigung eine 1 bekomme, woraus ich hoffentlich schließen kann, dass irgendetwas da ist und der IR-Controller daher richtig angeschlossen ist. Ich habe 5V; 3,3V; GND; GPIO17(Pin 11); GPIO18(Pin 12) (siehe Datenblatt) auf einem Breadboard angeschlossen.
Meine eigentliche Frage, wo habe ich meinen Fehler in der Programmierung? Ich habe einige Tutorials und Foren durchsucht und komme nicht weiter.
hier sind die von mir bearbeiteten Dateien:
modules.txt
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
i2c-dev
lirc_rpi
lirc_dev
lirc_rpi gpio_in_pin=18 gpio_out_pin=17
hardware.conf
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="--uinput --listen"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false
#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false
#Try to load appropriate kernel modules
LOAD_MODULES=true
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"
# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
Display More
config.txt
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
lcd_rotate=2
dtoverlay=lirc-rpi,gpio_in_pin=18,gpio_out_pin=17
Display More
lirc_options.conf
# These are the default options to lircd, if installed as
# /etc/lirc/lirc_options.conf. See the lircd(8) and lircmd(8)
# manpages for info on the different options.
#
# Some tools including mode2 and irw uses values such as
# driver, device, plugindir and loglevel as fallback values
# in not defined elsewhere.
[lircd]
nodaemon = False
driver = default
device = /dev/lirc0
output = /var/run/lirc/lircd
pidfile = /var/run/lirc/lircd.pid
plugindir = /usr/lib/arm-linux-gnueabihf/lirc/plugins
permission = 666
allow-simulate = No
repeat-max = 600
#effective-user =
#listen = [address:]port
#connect = host[:port]
#loglevel = 6
#uinput = ...
#release = ...
#logfile = ...
[lircmd]
uinput = False
nodaemon = False
# [modinit]
# code = /usr/sbin/modprobe lirc_serial
# code1 = /usr/bin/setfacl -m g:lirc:rw /dev/uinput
# code2 = ...
# [lircd-uinput]
# release-timeout = 200
Display More
Entschuldigung für die vielen Codes.
Noch eine Info zur Hardware:
zusätzlich zum Pi und IR-Controller ist folgendes angeschlossen:
-Breadboard: https://www.amazon.de/gp/product/B01I58Y766/ref=od_aui_detailpages00?ie=UTF8&psc=1 (Affiliate-Link)
-Touchscreen: https://www.amazon.de/gp/product/B014WKCFR4/ref=oh_aui_detailpage_o03_s02?ie=UTF8&psc=1 (Affiliate-Link)
-Eine Bluetooth Tastatur
Ich hoffe ich habe mit meiner ersten Frage alle Regeln hier befolgt und freue mich über Antworten