I’m working with the IR Library from Ken Shirriff A Multi-Protocol Infrared Remote Library for the Arduino
It appears that my IR demodulator is spitting out a signal that is too weak to be read correctly by the default digital pin (my meter is basically showing less than 1v when I send a signal) so I thought maybe I could feed this to an analog pin and adjust the “reference point” instead. I’m not clear on how to do this code-wise. It seems that I need to use an if statement and fill a variable with the result but then I need some kind of polling loop to keep the signal updated. Maybe a simple way to ask is if there is an easy way to adjust the threshold of a digital input (either via a digital pin or analog).
btw, I’m new here. I spent some time trying to search the forum but found that the search system here is a bit difficult. Google is definitely better but I haven’t yet found what I’m looking for.
Using Arduino nano 3.1