Working on adding a IR Receiver to the Pi 4 i tried looking it up online how to do so and what configuration to look for.
IR receiver I have
red wire for 3v3 power
black wire for Ground
white wire for S out
After connecting the three wires to the IR receiver sensor i then connect them to the Pi 4.
1 Red wire to 3v3 Pin 1
2 Black wire to Ground pin 5
3 White wire to GPIO18 pin 6
I looked up how to config the IR receiver to the pi but when i do, it says edit it for example ( **.**Edit /etc/lirc/hardware.conf
and have it appear exactly as shown below.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 # /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="--uinput"
# 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=""
and it shows that i would likely raise an error.
So do anyone have the right steps already edited and work.