I have found a threshold for the speed at which people accelerate as they fall in their chair, what would ba the best way to go about implementing it into a code?
Can you explain what you want to do?
Without knowing more, the best that I can say is look at the if structure.
fishern1:
I have found a threshold for the speed at which people accelerate as they fall in their chair,
9.81 metres per second per second ?
...R
const float g = 9.81;
Is it safe to assume these people are falling into their chairs on the Earth's surface?
In this forum, I have learned, it is safe to assume nothing.
groundFungus:
In this forum, I have learned, it is safe to assume nothing.
It's called "people".
Hi,
Welcome to the forum.
Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Thanks... Tom..
We seem to be far more interested in this than the OP
...R
groundFungus:
Can you explain what you want to do?Without knowing more, the best that I can say is look at the if structure.
I tested the speed at which people fell over in their chair and found a threshold for the average speeds, I would want to implement this into a device to be able to inflate to help stop the person from falling over in their chair when the device senses the acceleration in the threshold. I am looking to implement that data on the threshold into a code to be able to sense the threshold and be able to react by inflating the device. Hope this helps with some clarification!
Hi,
Why don't you use an accelerometer and look for "freefall"?
accelerometer arduino freefall
Tom....
fishern1:
I am looking to implement that data on the threshold into a code to be able to sense the threshold and be able to react by inflating the device. Hope this helps with some clarification!
Something like this pseudo code?
void loop() {
sensorValue = read sensor
if (sensorValue > threshold) {
inflate()
}
}
If that is not the sort of reply you are hoping for then it is because you have not provided enough information.
...R