signal de-bounce in Simulink

12 visualizaciones (últimos 30 días)
William Campbell
William Campbell el 8 de Abr. de 2020
Comentada: William Campbell el 10 de Abr. de 2020
I am trying to avoid signal de-bounce in Simulink so I can use binary output for a switching circuit. I have not used Stateflow before but have built a simple (probably too simple !) Stateflow model and placed it between the signal and the output (see attached pdf). When the signal <0 I want the output to be 0 and when the input is >0 the output is 1. There is a lot of noise on the signal, so if I increase the duration for the input remaining at IN>=0 for 0.5 seconds then the accuracy of the pulse is poor and when I decrease the debounce time I get unstable switching. Is there a more robust method that I can use ? The general shape of the signal profile is consistent, but the noise and the exact position of the noise can be random.

Respuesta aceptada

Jesús Zambrano
Jesús Zambrano el 9 de Abr. de 2020
The implementation looks OK. Actually, it is the same as the one recommended in the documentation
In that example, see that the signal is more noisy. Also, please check the sample time of the chart and the incoming signal.
And also check that there is an additional implementation in that example that includes a fault detection state.
  1 comentario
William Campbell
William Campbell el 10 de Abr. de 2020
Hello and thanks for your comments - I'll check through your proposals.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by