Also called "One shot", I wondered if it would be possible to add rising / falling edge inputs, with a debounce parameter would be good.
Also a debounced input, this could easily be done with a delay (0-25ms) added to the existing input.
They can be made with a few components but it would be a lot neater as just a component.
Regards,
Bob
Edge detection input and debounced input components
-
RGV250
- Posts: 359
- http://meble-kuchenne.info.pl
- Joined: Sat Mar 19, 2022 4:53 pm
- Has thanked: 35 times
- Been thanked: 39 times
-
BenR
- Matrix Staff
- Posts: 2027
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 537 times
- Been thanked: 721 times
Re: Edge detection input and debounced input components
Hi Bob,
The switch components already have a debounce feature in the properties where you can set the amount of debounce time. You can then read the input state and compare to the previous input state, if they differ then you know you have just seen an edge.
Does this help?
The switch components already have a debounce feature in the properties where you can set the amount of debounce time. You can then read the input state and compare to the previous input state, if they differ then you know you have just seen an edge.
Does this help?
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel