Back to all tutorials

vBuilder tutorial

Debounce Example

Remove unwanted ON/OFF transitions from mechanical buttons and switches.

Tutorial overview

Debounce Example

Remove unwanted ON/OFF transitions from mechanical buttons and switches.

Recommended method

Configure debounce directly on the input tag.

Debounce no longer requires a program routine in most projects. Open the Tags tool, select an Input Bit, and set its debounce duration from 0 to 255 milliseconds.

vBuilder input tag debounce setting

That setting is sufficient for most mechanical buttons and switches. Use the programmed method in the video only when the application needs a much longer debounce time.

Video walkthrough

Follow the tutorial.

Watch the steps, then use the downloadable files when available to inspect the finished project.

Long Debounce Programming Example

Project files

Download the example.

Use the original project files as a reference or starting point for your own application.

Keep building

Continue with another practical example.

Browse the full tutorial library or download vBuilder to put the example to work.