I set the led on an Arduino Leonardo (pin 13) to change its brightness like the distance from the ground of a bouncing ball.
<p><br>
Code <a rel="nofollow" class="external text" href="https://github.com/tsester/sketchbook/tree/07db7c2b76151341ecbaac2c92482c1fa62c31f3/bouncing_ball">here(git)</a>. As you will observe from the code, the main PARAMETERS are:
</p>
<ul><li>number of bumps : 60</li>
<li>running time : 20 sec</li>
<li>last maximum height reached : 1% of the falling height</li></ul><p><br></p>
See also <a href="//commons.wikimedia.org/wiki/File:ArduinoTFTBouncingBall.3.1.ogv" title="File:ArduinoTFTBouncingBall.3.1.ogv">ArduinoTFTBouncingBall.3.1</a>
<a href="//commons.wikimedia.org/wiki/User:Enfwm" class="mw-redirect" title="User:Enfwm">Spyros Papanastasiou</a>
2015-07-11
<span class="int-own-work" lang="en">Own work</span>