2041
General Mach Discussion / Re: Opto switches behaving badly
« on: January 19, 2010, 06:19:43 PM »
Good Dan, hopefuly your all set. Simpsons solution may be the most robust though. If setting debouce helps your problem it will tell us it is most likely noise. I should have explained it a little better. Debouce increases the time a signal state change has to be seen to be considered changed. For troubleshootiing you can set the debounce pretty high but if you have to set it very high to make the switches stable I would prefer resistors like simpson said. Other things to consider are wire routing and shielding.
Brett
Brett