Hola, I recently purchased the Bluetooth Controller v1 from Makeblock. I ran a simple test to see who it work and now I have a question regarding how to program the left and right thumb buttons. If you have any sample codes for the controller that will be helpful. Thank you.
The new Bluetooth Controller v1
Thank you for providing a code sample for the Bluetooth Controller v1. I made some modifications to be able to run this with my Ranger and found that when I push up or down the Ranger goes in circles. Not forward nor backwards. Also in the first part of this code I needed to change so slot1 is speed is 100 and slot2 is -100 so it can move forward or backwards. It that how it should be done?
Hi gtt115-wc,
The example program is for mBot, a little bit difference from mbot ranger. Since the two motors on mbot ranger are “mirror installation”, they move oppositely. You can use below block to control it forward or back, turn left or turn right instead of define motors speed.
If you have more question about the two motors coding, please show us your program, and video of the range movement. Thank you!
I mentioned this in another post, but you need to be aware that the two motors are identical and will spin in the same direction if given the same power, e.g., 100. Unfortunately in a configuration with one motor on each side of the robot, the motors will cause the robot to spin. As you surmised, you will need to set one of the motors to a negative value, i.e., -100 to get the robot to move in a somewhat straight line. This is not just a Makeblock thing, it’s the way that all of the robot kits operate that use motors. the [run forward] block shows in @tech_support’s sample program is a wrapper that handles those details for you under the covers.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.