Skip to content

[Bug] EV3 analog touch sensors need debouncing #2849

Closed

Description

@laurensvalk

Describe the bug

A program such as the following should only print something when the button becomes pressed.

This works, but the timestamps show that we sometimes get extra roundtrips within milliseconds.

We can apply some hysteresis around the threshold (not time) to counter this.

Image

Activity

  1. added
    triage
    on Oct 8, 2026
  2. added theissue type on Oct 8, 2026
  3. added
    software: pybricks-micropython
    and removed
    triage
    on Oct 8, 2026
  4. laurensvalk commented on Oct 12, 2026

    @laurensvalk
    MemberAuthor

    They are also not correctly reporting the state in Pybricks Code. They are always pressed. This is a known // TODO for the next release, possibly 4.1.1.

  5. laurensvalk commented on Oct 23, 2026

    @laurensvalk
    MemberAuthor

    This is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    software: pybricks-micropython

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions