In article <50650000000500000091AA0000-1031838699000@exchange.ni.com>,
"ian.f" wrote:
> I am not an expert in this, but what do you think a optical sensor to
> replace the mechanical relay? Or, programmatically filter-out the
> transient effect of the mechanical relay?
>
> Just something to ponder... hope that i am not making a fool of myself
> 😛
I don't think you're making a foolish comment, Ianp. In one of my
applications I'm forced to use a relay between a digital input (pulled
high) and a digital ground. A mechanical switch will be used in our final
product so this is how I must simulate it. You're right about the bounce.
I think I add a 50 to 100 ms delay before taking reading. The easiest
way to test it is to build a loop: cl
ose relay, programmable delay, take
an digital input reading, open relay, fixed delay (like 1 second so you
can look at the results). The programmable delay can be varied from the
front panel.
That's kinda what I did. I think magnitude of bounce is dependent upon
the voltage used to charge it's inductor coil. If you could drop the
voltage a little, you may see a bounce reduction. Well, there's my
foolish comment.
- Kevin