Noise Problem using 74HC165
Lee Sadeli
Posts: 29
Hi,
I am trying to expand input by·using 74HC165, schematic same as EXPANDED INPUT in StampWorks literature. All input is pull HIGH with 1K resistor and button is connected to Ground. They all work fine until I extend the button cables up to 300 feets away. With extended cables, sometimes the stamp read the right input, but many times it goes crazy. I believe this is due to the noise from the long cables. Please advise if there is a· way I can eliminate the noise, maybe by using capacitor at the input of the 74HC165 ?· Thanks in advance.
I am trying to expand input by·using 74HC165, schematic same as EXPANDED INPUT in StampWorks literature. All input is pull HIGH with 1K resistor and button is connected to Ground. They all work fine until I extend the button cables up to 300 feets away. With extended cables, sometimes the stamp read the right input, but many times it goes crazy. I believe this is due to the noise from the long cables. Please advise if there is a· way I can eliminate the noise, maybe by using capacitor at the input of the 74HC165 ?· Thanks in advance.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rule your Destiny-
--Be Good. Be Bad. Be Provas--
Finally I got it working even with 300 ft of LAN cables. Believe it or not, it's code problem. When I was using the Stampsworks code, it had noise, but I re-wrote it with another HIGH Load before the PULSOUT Load, 5. Then after the SHIFTIN command, another LOW Load. These solve my problem.
Thanks anyway.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Only the HIGH and LOW command works so far
Another thought -- since you are going through so much wire you might want to put a pull-up on the load line next to your '165; this will keep that line low and now count on the load line to drive it that way.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
http://www.faqs.org/docs/electric/AC/AC_14.html