Path: csiph.com!news.swapon.de!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Help': 0.10; 'python': 0.10; '>in': 0.16; '>on': 0.16; '>to': 0.16; 'pressed': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'selected.': 0.16; 'wrote:': 0.16; 'module,': 0.18; 'switched': 0.18; 'url:home': 0.18; '2015': 0.20; 'aug': 0.20; 'button,': 0.22; 'seems': 0.23; 'needed.': 0.23; 'tim': 0.24; 'all.': 0.24; 'mon,': 0.24; 'module': 0.25; 'header:X-Complaints-To:1': 0.26; 'mostly': 0.27; '-0500,': 0.29; 'quite': 0.35; "isn't": 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'button': 0.38; 'to:addr:python.org': 0.40; 'hello,': 0.40; 'some': 0.40; 'software': 0.40; 'your': 0.60; 'john': 0.61; 'between': 0.65; 'intent': 0.66; 'here': 0.66; 'hoping': 0.77; '>with': 0.84; "op's": 0.84; 'triggering': 0.84; 'bounce': 0.91; 'dennis': 0.91; 'ticket,': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: RPI.GPIO Help Date: Tue, 01 Sep 2015 02:08:35 -0400 Organization: IISS Elusive Unicorn References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-68-178-61.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1441087727 news.xs4all.nl 23862 [2001:888:2000:d::a6]:52796 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:95819 On Mon, 31 Aug 2015 14:07:58 -0500, Tim Daneliuk declaimed the following: >On 08/16/2015 02:40 PM, John McKenzie wrote: >> >> Hello, all. I am hoping some people here are familiar with the RPi.GPIO >> python module for the Raspberry Pi. > > >I am not familiar with the module, but I am quite familiar with dealing >with hardware interfacing, mostly in assembler. > >One thing you need to ensure is that either the module or your >code implents software debounce. When a button is pressed or switched moved, >there is mechanical bounce for a some period of time immediately thereafter. >In the time right after the switch/button is pressed, the mechanical closure >"bounces" between "on" and "off" for a little while, until it settles down >to the position you've selected. > Since the OP's intent seems to be for accumulative time for each button, debounce likely isn't needed. If it were triggering some significant action (issuing a serial-numbered ticket, say), debounce would be needed... -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/