any object that outputs a single bang

judenelson's icon

so I have an arduino hooked up to Max that sends in digital input into Max using a force sensor. So it is sending 0 and 1s but it's value's are still constantly changing and it's outputting a constant bang which is not what I want. What I want is when I press the force sensor a single non-constant bang will occur, and when I release it it will output another single bang; instead of when I press it it outputs a rapid-fire of bangs.

MuShoo's icon

[change]

brendan mccloskey's icon

Hi
can I ask why you're using an FSR if all you require is binary input, ie press/not-press. Why not just a switch? If your sensor is constantly firing there may be something wrong with your code or circuit. If you're using Maxuino or Firmata I can't help.

Brendan