The tilt controller might be a little too responsive, but slowing it down isn’t hard. There are two facets to slowing it down.
First, the "stay still" range where there’s no no motion and the micro:bit displays a diamond can be extended from 80 to 200. This will help prevent accidentally moving the cyber:bot when you press a button on the micro:bit tilt controller.
Second, instead of dividing x and y tilts by 10 for a speed range of -100 to 100, you can divide them by 20 for half the speed range. This is helpful especially when you are getting used to controlling the cyber:bot with the Gripper.
In radio_tilt_grip_controller:
if abs(y) > 80: # Change from 80 to 200
In radio_tilt_grip_controlled_cyberbot:
fb = y / 10 # change divide by 20 instead of 10 lr = x / 10 # change divide by 20 instead of 10 … if abs(y) > 80: # change to if abs(y) > 200:
A dictionary with key-value pairs is a powerful way to organize data before exchanging it with another device. That’s the main reason why it took so few extra Python statements to add gripper functionality to the existing Radio Tilt Controlled cyber:bot project.
Here are a few ideas for putting your Tilt Controlled Gripper cyber:bot with Feedback 360° servos to use and having some fun!