Related Articles

Responses

  1. I think your Dino will jump a bit better if you get rid of what looks like a long delay in your main loop.
    Squinting at the video it looks like your light sensor reading is not updating very quickly, and the red side-lights stay on for quite a long time, so I suspect you have something like a 500ms delay after you turn on the red lights? During this time your Cube is doing nothing, and will miss the passing cacti.
    So you’ve probably set the threshold lower to make the Dino jump, but now it jumps all the time.
    So you have all the pieces working – but to have the Dino jump better I would recommend:
    * Getting rid of the long delay in your loop so that the light sensor updates much quicker
    * Twiddle with the light value reading to have your Cube correctly trigger only when a Cacti is detected rather than all the time.

    Good effort!