View Single Post
Old 09-23-2013, 06:03 PM   #15 (permalink)
t vago
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 830
Thanked 708 Times in 456 Posts
Quote:
Originally Posted by nickdigger View Post
Maybe you can selectively turn the filter on/off for different ADC channels?
Thought about doing that - that'd introduce more complexity, and I'm not sure if that's such a good thing for an interrupt handler that must fire off fairly quickly. Might do it anyhow, though.

Edit: On second thought, after reviewing the AtMega128/168/328 datasheet, might just abandon the FIR filter altogether.

Quote:
Originally Posted by nickdigger View Post
Also, the Arduino code for that Parallax switch indicates they are using 5 digital inputs, not one analog. I haven't taken a closer look at the specs to see if analog output is an option, but their page only mentions "a 10k resistor", which doesn't sound promising.
Looking at the switch hardware in my hands (yes, I bought one from RadioShack), I notice that it has just a bunch of SMT 10k pullup resistors. That's your digital signalling. Remove them, and you have something that is usable. Heck, you might even be able to use the switch without removing the resistors - it'd just be a matter of doing some signal analysis with the pullup resistors added into the analysis.

Last edited by t vago; 09-23-2013 at 06:41 PM..
  Reply With Quote