What are the best settings to de-bounce a switch input?
Moderator: MADRIX Team
-
- Posts: 7
- Joined: Wed Feb 26, 2025 6:55 pm
What are the best settings to de-bounce a switch input?
Hello,
I am working with an existing system that has large push buttons connected to inputs of an Orion.
Sometimes pressing a button results in two packets getting sent out. I need to have only one packet sent when a button is pressed. When the button is pressed the +V is applied to the input.
These are my current settings. I cannot find additional information as what part of the hysteresis curve each column applies to. My question here is what are the best setting here for this particular use case.
Thank you.
I am working with an existing system that has large push buttons connected to inputs of an Orion.
Sometimes pressing a button results in two packets getting sent out. I need to have only one packet sent when a button is pressed. When the button is pressed the +V is applied to the input.
These are my current settings. I cannot find additional information as what part of the hysteresis curve each column applies to. My question here is what are the best setting here for this particular use case.
Thank you.
Re: What are the best settings to de-bounce a switch input?
Hi mcastrigno,
Welcome to the MADRIX forum!
Once the circuit is closed a certain value will be sent by the MADRIX ORION, if it is open again a 0 (or the defined value) will be send. The "Limits" column defines the lower and upper treshold.
Do you use MADRIX 5? If yes, please share your remote configuration.
Welcome to the MADRIX forum!
Once the circuit is closed a certain value will be sent by the MADRIX ORION, if it is open again a 0 (or the defined value) will be send. The "Limits" column defines the lower and upper treshold.
Do you use MADRIX 5? If yes, please share your remote configuration.
-
- Posts: 7
- Joined: Wed Feb 26, 2025 6:55 pm
Re: What are the best settings to de-bounce a switch input?
Hello,
Thank you for your reply. Hysteresis implies that a new transition will not be considered valid until the other limit is first crossed. The columns are not identified as to which is the high and which is the low transition. My screen shot is from my configuration. I have attached additional screen shots. I cannot tell if if it is a MADRIX 5, there is no such marking. Maybe you can tell from the serial number.
Thank you.
Thank you for your reply. Hysteresis implies that a new transition will not be considered valid until the other limit is first crossed. The columns are not identified as to which is the high and which is the low transition. My screen shot is from my configuration. I have attached additional screen shots. I cannot tell if if it is a MADRIX 5, there is no such marking. Maybe you can tell from the serial number.
Thank you.
- Attachments
-
- page 1.png (37.49 KiB) Viewed 350 times
-
- page 2.png (18.75 KiB) Viewed 350 times
Re: What are the best settings to de-bounce a switch input?
Hi mcastrigno,
If the signal goes below or above the set "Limits" (the lower limit is left, the upper right in the "Limits" column), the sent value changes to the set low or high value defined in the "DMX Channel Configuration" ("From Value" and "To Value").
Which software do you use to receive the values from the ORION? Please send us an e-mail to info[at]madrix[dot]com.
Thanks in advance!
If the signal goes below or above the set "Limits" (the lower limit is left, the upper right in the "Limits" column), the sent value changes to the set low or high value defined in the "DMX Channel Configuration" ("From Value" and "To Value").
Which software do you use to receive the values from the ORION? Please send us an e-mail to info[at]madrix[dot]com.
Thanks in advance!
-
- Posts: 7
- Joined: Wed Feb 26, 2025 6:55 pm
Re: What are the best settings to de-bounce a switch input?
Well following your explanation then, if the "lower limit" is set at 2V and the "high limit" is 10V then what does the Orion do if the voltage is 5V? I would expect that if the "Measure Function" is on Digital. The correct description would be if the signal transitions through 10V, the high value will be triggered and one packet will be sent and only if the signal then transitions back below 2V will a low value will be triggered and one packet will be sent. I use QLC+ to process that packets from the Orion and also use Wireshark to analyze the network traffic.
Re: What are the best settings to de-bounce a switch input?
Hi mcastrigno,
You are totally right. The Measure Function "Digital (Hysteresis Threshold)" will change the DMX value of the desired DMX channel if the received voltage is higher or below the set limits.
In your example:
It is impossible in case of Art-Net or sACN to send only a signal when the measured voltage is higher than the set upper limit.
You are totally right. The Measure Function "Digital (Hysteresis Threshold)" will change the DMX value of the desired DMX channel if the received voltage is higher or below the set limits.
In your example:
- - If the voltage value is higher than 10 V, the DMX value will be set to "To Value".
- - If the voltage value is lower than 2 V, the DMX value will be set to "From Value".
- - If the voltage will be decreased from higher than 10 V up to 2 V, the DMX value will still be the "To Value".
- - If the voltage will be decreased from lower than 2 V up to 10 V, the DMX value will still be the "From Value".
It is impossible in case of Art-Net or sACN to send only a signal when the measured voltage is higher than the set upper limit.
-
- Posts: 7
- Joined: Wed Feb 26, 2025 6:55 pm
Re: What are the best settings to de-bounce a switch input?
Thank you for your reply @Guertler. If I understand you correctly are you saying that the device is sending values as long as the voltages are above the thresholds and despite this inference of the documentation, this is not an edge detection setting. Here the documentation is labeled "Digital Slope Detection" but if I understand you correctly there is no way to send one packet on the slope detection.
https://www.madrix.com/download/mhm/documentation/ORION/User_Manual_MADRIX_ORION.pdf
See page 20
https://www.madrix.com/download/mhm/documentation/ORION/User_Manual_MADRIX_ORION.pdf
See page 20
Re: What are the best settings to de-bounce a switch input?
Hello mcastrigno,
The explanation in the example above refers to the Measure Function "Digital
(Hysteresis Threshold)" and not "Signal Slope Detections".
In case of the Measure Function "Signal Slope Detections", the ORION will measure the input voltage once per second and will keep the DMX value also for a second accordiong to the measured value.
The explanation in the example above refers to the Measure Function "Digital
(Hysteresis Threshold)" and not "Signal Slope Detections".
In case of the Measure Function "Signal Slope Detections", the ORION will measure the input voltage once per second and will keep the DMX value also for a second accordiong to the measured value.
-
- Posts: 7
- Joined: Wed Feb 26, 2025 6:55 pm
Re: What are the best settings to de-bounce a switch input?
Well this is pretty frustrating. It seems there is no reliable way to simple detect a transition from a low to high or high to low resulting in exactly one packet being sent. If I am incorrect please tell me how to do it.
Re: What are the best settings to de-bounce a switch input?
Hello mcastrigno,
According to the DMX standard it is a streaming protocol which sends continuously data. It is not possible to send only a DMX value if the received V+ value will be changed.
Maybe you can elaborate a bit more in detail what you want to acchive and which application is the receiver of the ORION data?
According to the DMX standard it is a streaming protocol which sends continuously data. It is not possible to send only a DMX value if the received V+ value will be changed.
Maybe you can elaborate a bit more in detail what you want to acchive and which application is the receiver of the ORION data?