- Posts: 2203
- Thank you received: 0
Using Debounce
Re this:-
loadrt debounce cfg=1
addf debounce.0 servo-thread
setp debounce.0.delay 100
net homes-x < =parport.0.pin-12-in-not
net homes-x => debounce.0.0.in
I think the above is correct but when would you use a debounce.0.0.out pin and how?
Please Log in to join the conversation.
www.labbookpages.co.uk/electronics/debounce.html
[edit]
Basically you require debouncing whenever your signal does not change state in a stable manner. e.g. a mechanical contact. Sensors often have a hysteresis built in so bouncing is avoided.
In your example parport.0.pin-12-in-not is the bouncing input and debounce.0.0.out would be the debounced signal you would acually use.
Please Log in to join the conversation.
I understand what debounce mean in the context of switchesAciera wrote: Debouncing explained:
www.labbookpages.co.uk/electronics/debounce.html
[edit]
Basically you require debouncing whenever your signal does not change state in a stable manner. e.g. a mechanical contact. Sensors often have a hysteresis built in so bouncing is avoided.
In your example parport.0.pin-12-in-not is the bouncing input and debounce.0.0.out would be the debounced signal you would acually use.
Butl in my PlasmaC config i have this as an example.
net plasmac:float-switch hm2_7i96.0.gpio.003.in => debounce.0.0.in
But there are no debounce out pins. This is the bit I don't understand.
Please Log in to join the conversation.
Please Log in to join the conversation.
phillc54 wrote: The debounce out pins are used in the plasmac.tcl file
So to use debounce would this be correct:-
loadrt debounce cfg=1
addf debounce.0 servo-thread
setp debounce.0.delay 100
net home-x < = parport.0.pin-12-in-not switch or sensor
net home-x = > debounce.0.0.in
net home-x-out <= debounce.0.0.out or am I missing something here
Please Log in to join the conversation.
You would need to finish it off with something like:Clive S wrote:
phillc54 wrote: The debounce out pins are used in the plasmac.tcl file
So to use debounce would this be correct:-
loadrt debounce cfg=1
addf debounce.0 servo-thread
setp debounce.0.delay 100
net home-x < = parport.0.pin-12-in-not switch or sensor
net home-x = > debounce.0.0.in
net home-x-out <= debounce.0.0.out or am I missing something here
Please Log in to join the conversation.
