Skip to main content

Reply to "Using an optocoupler to connect insulated rail to input pin of shift register"

JGL,

I know the schmitt trigger doesn't debounce. I'm including as part of the RC debounce circuit. 

Megas are great boards. Love their multi serial capability. 

Professor Chaos - I used an online calculator last night and came up with a debounce time of around 20 ms. Is this correct? I used 5V as the voltage connected to the pull-up and 3V for high, which is the minimum voltage needed to make a digital pin go HIGH.

http://protological.com/debounce-calaculator/

I agree that software debouncing is perferred and usually not a big deal. I think though for what it will cost to build an RC circuit thereare about even. If you are looking to make this open source and want easy for others to assemble then just putting debounce in software doesn't make it easy. Some people maybe not that great with code, so they be better with an RC debounce. A debounce statement in the code may lead to more setup issues. It is a double ended shord, because your are not going to be able to suit everyone. The one thing that is better with code is you can easily change the debounce time. 

 

OGR Publishing, Inc., 1310 Eastside Centre Ct, Suite 6, Mountain Home, AR 72653
800-980-OGRR (6477)
www.ogaugerr.com

×
×
×
×
×