Categories: Community member project
Related Articles
Responses
Cancel reply
You must be logged in to post a comment.
You must be logged in to post a comment.
There was a problem reporting this post.
Please confirm you want to block this member.
You will no longer be able to:
Please note: This action will also remove this member from your connections and send a report to the site admin. Please allow a few minutes for this process to complete.
wow
Thanks
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!
love the fact that it jumps ..nice