I’m trying to use the CPX accelerometer and the light graph function to create a digital “egg drop” test for my engineering students. If I could make this basic function work I think it would open up a lot of more advanced possibilities. Essentially a force measuring instrument. It seems like it should be possible by graphing acceleration but I can’t get it quite right and the readings are all over the place.
I created a variable “force” and have tried various conditions to set force = input.acceleration(dimension.strength). Perhaps I’m misunderstanding the meaning of strength here.
The readings seem to be all over the place, with some soft drops reading high values and hard drops barely registering. I’m testing with a console log but ultimately would like to just take readings from the light graph for classroom testing: e.g. protect your “egg” so that an 8ft drop reads below yellow.
Any ideas for making this possible?