Actually you should use the transistor with the AND gate as well.Davros- wrote: ↑Fri Apr 06, 2018 6:03 pmThe appeal of using less GPIO pins is powerful. Especially as I may want to attach buttons, swtiches, etc to the same Pi unit later. I did not realize that I could use all the IR emmitters at once with the AND gate chip though. That is not that important, but it has appeal for sure. Additionally, I did not realize the need for transisters on the demultiplexer chip and it would be nice to avoid soldering those on a bunch of wires.
Yes.Reared your original post and it was very good, giving specific instructions, but I want to make sure I interpretted it correctly due to my lack of knowledge on the subject. If I were to use the 74HC08 chip I would use in total Power (3.3v), Ground, plus 5 other GPIO pins. Is that correct?
Yes. This GPIO will be used in all 4 AND gates.When you say "output GPIO (18) to one input of each AND gate" I believe you mean solder 4 small wires to the wire going into GPIO pin 18, thus only using one GPIO pin to control the four AND gates. Is this correct?
Yes. Think of this chips as electrical versions of boolean logic - just like you have in programming languages. Each 74xx08 chip contains 4 AND gates, so you'll haveWith the 74HC08 I can both control the IR LEDs individually and all at the same time? I realize you described the abilities of this approach but this aspect is important enough that I wanted to read it again to be sure before I commit.
Yes, you can repurpose these as well. In addition to ALTx all the GPIOs (if I'm not mistaken) can be configured as normal GPIOs as well.If the above is correct, then I would still have a bunch of GPIO pins left to use. Super duper embarassed to ask this, but I am not sure if I can use the specific function GPIO pins as general purpose pins. Pins like Physical pin 8 (BCM 14) is a UART pin and Physical pin 19 (BCM pin 10) is a MOSI pin. Can they can be used for general purposes as well? I realize that if the answer is yes some configuration changes to the Pi may be needed in a few cases such as disabling the serial console to use an UART pin.
Hi, I'm also trying to set up lirc to run with multiple transmitters. I got multiple devices setup and working thanks to PhilE's code above, but what I'd like to be able to do is assign a a device to individual lircd.conf files - i.e. individual remotes. (e.g. remote1.conf uses lirc0, remote2.conf uses lirc1 etc)
Code: Select all
[email protected]:/home/pi# ir-keytable Found /sys/class/rc/rc1/ (/dev/input/event0) with: Driver gpio-rc-recv, table rc-rc6-mce Supported protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp Enabled protocols: lirc Name: gpio_ir_recv bus: 25, vendor/product: 0001:0001, version: 0x0100 Repeat delay = 500 ms, repeat period = 125 ms Couldn't find any node at /sys/class/rc/rc0/input*. [email protected]:/home/pi# ir-keytable -d /sys/class/rc/rc1/ EVIOCGNAME: Inappropriate ioctl for device EVIOCGID: Inappropriate ioctl for device [email protected]:/home/pi# ir-keytable -d /sys/class/rc/rc1/ --protocol=all Unable to query evdev protocol version: Inappropriate ioctl for device [email protected]:/home/pi#
Code: Select all
dtoverlay=gpio-ir-tx,gpio_pin=22 #dtoverlay=gpio-ir-tx,gpio_pin=24 dtoverlay=gpio-ir,gpio_pin=23
Code: Select all
ir-keytable -t -s rc0 -p nec