Programming a pulse interval into a signal

Hello people of programming,

so I have a small project going on, where I want to send out a 433MHz signal to a wireless power socket.
My input is a HC-SR04 ultrasonic sensor.
At the moment I have this Sketch running.

My goal is to have someone jump on a trampolin, which produces a pulse via the sensor.
This pulse should be translated into a signal which sends out a 433MHz signal to the power socket and actives it, as long as someone is jumping.
It should deactivate again if no one is jumping on it for a time = t
There should be a few extra security measures.
Like there is an minimum interval to achieve to activate it. - so no slacking on the power of jumping

So first I need to receive the signal from the 433MHz remote control - for this I can also find a tutorial.
But then I'm not sure how to continue.
At the moment I would have a input from the sensor; default = distance from sensor to trampolin
Then I want it to recognize, if someone is jumping on it and not just bouncing.

Can someone help me.

My parts:

How do you jump on a trampoline without bouncing? What distinction are you trying to make here?

Steve

A jump would be more powerfull, so it doesn't activate on a light bounce.
It is meant to have some sport behind it.

My goal is to have someone jump on a trampolin, which produces a pulse via the sensor.
This pulse should be translated into a signal which sends out a 433MHz signal

if the ultrasonic sensor is measuring a changing distance, there would be a range of measurements being made. if the range is small, there is no activity. a signal is sent when there is activity. many measurements may need to be made to confirm there is activity

Kultivation:
A jump would be more powerfull, so it doesn't activate on a light bounce.
It is meant to have some sport behind it.

the sensor could measure the distance with a delay = 10, that would do the job wouldn't it?

So I made a bit progress on my own.
I did manage to setup my 433MHz transmitter to switch on the power socket.
Now I am thinking: "activity" means the socket turns on, "no activity" means the socket turns off.
but also there should be a command, that makes it not turn off everytime someone suddenly stopped jumping for a second, rather being signaled something to an LED to remind the Person, that one should jump harder.

sounds like hystesis, you want to see some level of activity for some minimum period of time before becoming active and then remaining active for some period of time after sensor activity drop below some threshold. while in the hold state, activity exceeding a threshold will reset the hold timer

gcjr:
sounds like hystesis, you want to see some level of activity for some minimum period of time before becoming active and then remaining active for some period of time after sensor activity drop below some threshold. while in the hold state, activity exceeding a threshold will reset the hold timer

well excatly that, thanks for throwing in some more technical words to actually understand it :slight_smile: