# Digital Egg Drop

**URL:** https://forum.makecode.com/t/digital-egg-drop/23204
**Category:** Adafruit Circuit Playground Express
**Tags:** graphics-and-math
**Created:** [October 10, 2023, 7:22pm UTC](https://forum.makecode.com/t/digital-egg-drop/23204 "2023-10-10T19:22:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chenw001](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chenw001](https://forum.makecode.com/u/chenw001)
#### Post date: [October 10, 2023, 7:22pm UTC](https://forum.makecode.com/t/digital-egg-drop/23204/1 "2023-10-10T19:22:20Z")

</div>

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?

> **[Digital Egg Drop](https://makecode.adafruit.com/25950-84418-05816-87116)**
>
> Made with ❤️ in Adafruit Circuit Playground Express - Blocks / Javascript editor.
