Posted by Robotica May 08, 2014 RoboCamp MINDSTORMS and WeDo learning courses Share Get link Facebook Twitter Pinterest Email Other Apps 1 comment
I think that the ultrasonic sensor may need to be relocated. Posibly upward facing where it will see the donut shaching hand as it pases over.
He programmed it exactly from the tutorial and it seems to work fine - although it doesn't always detect an object < 6 cm and react with the stinger. It does however detect < 30 cm quite efficiently - causing it to move backward. In short, to get it to sting you have to hold your hand in front of it for a while.
Anyone have similar experiences with this model?
One more question: Is is possible to change the resolution on the NXT-G ( more icons on the page) without changing the computers resoltion?
I haven't found a way to increase the resolution within NXT-G without changing my overall PC display... sorry.
If you make this change then you will notice another problem. Spike will oscillate if something is near the 30 inch mark - it goes a little forward and then a little back.
To fix that use a Timer. After the Move command to back up put a Timer command to reset timer 1. Then put the Move command to go forward within a Switch so that it only happens if Timer 1 > 1 second, i.e. it will only move forward if it has been at least 1 second since it started moving backwards.
I'm sure others have thought up different and better improvements.