View Single Post
  #7   Spotlight this post!  
Unread 18-01-2011, 16:20
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How can we wire the Gear Tooth sensor?

The Gear Tooth Sensor output is a digital signal. Your code is expecting to see it on DIO 1. That's the first General Purpose I/O pin on the Digital Sidecar. Your connection drawing indicates that you have wired it to an analog input instead.

Remove it from the Analog Breakout and connect it to the Digital Sidecar.

I think the "bug" you saw was just a coincidence unrelated to the aluminum plate. It would happen if something was touching the DIO pin and causing it to pick up random noise, triggering the counter repeatedly.