0
\$\begingroup\$

I have an IR chip where I want to shortcut two pins (PA2 and PA0) when told so by a 3.3V Arduino.

enter image description here

I could do this with a sort of relay, but I want a better way.

I thought, that one of the pins needed a high input (provided by the other pin) and would pass this one when shortcutted. But this seems not to work (both pins measure 2.8V - from pin to GND).

What other way is there?

The chip needs 3V to power. Datasheet: http://www.datasheet-pdf.com/PDF/AD009-01T-Datasheet-AnGuangElectronics-1088702

\$\endgroup\$
1
  • \$\begingroup\$ Can't you find a site the projects a better view of the data sheet? \$\endgroup\$
    – Andy aka
    Sep 5 '20 at 10:53
1
\$\begingroup\$

The datasheet is in Chinese which I don't speak / read but it appears to be a remote control sender with keyboard matrix inputs (rather than just an "IR chip").

enter image description here

Figure 1. The keyboard matrix (simple version) from the datasheet.

The matrix scanner will typically pull each of the pins high (or low, depending on the logic) in turn while monitoring all of the other pins as inputs which are weakly pulled low. If one of the input pins is pulled high then a key press is registered. The thing to note here is that every pin is both an output and an input and it's not just a matter of connecting an input to ground or +3 V.

To do what you want you could try using a CMOS analog switch such as the CD4016.

enter image description here

Figure 2. A CD4016 CMOS quad analog switch. Image source: Components 101.

You will only require 1/4 of the chip. Drive the chosen switch's control input from your microcontroller and connect the keyboard matrix scanner lines to the chosen switch's IN and OUT pins.

Double-check the chosen 4016 for minimum operating voltage but as far as I can remember they work at < 3 V.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.