The Kitronik :MOVE mini for the BBC micro:bit provides an introduction to robotics. The :MOVE mini is a 2 wheeled robot, suitable for both remote control and autonomous operation. A range of add-on boards can expand the capabilities to include more advanced functionality.
Page 3
SUPPLIED WITH THIS KIT ELECTRONICS FIXINGS CHASSIS PANELS www.kitronik.co.uk...
Page 4
GETTING CONNECTED AND FINDING THE PROGRAMMING ENVIRONMENT Using a USB to micro-USB type B cable, connect the BBC micro:bit to a computer. Code will be created on the BBC micro:bit website. www.microbit.org...
Page 5
(although you can create a program without doing this). If this is the first time you have used your BBC micro:bit then please refer to our getting started guide at www.kitronik.co.uk/microbit. All of the experiments in this guide are based on the Microsoft PXT Block and Microsoft PXT JavaScript editors.
Page 6
GETTING A PROGRAM ON GETTING A PROGRAM ON TO THE BBC MICRO:BIT TO THE BBC MICRO:BIT GETTING A PROGRAM ON TO THE BBC MICRO:BIT It is very easy to transfer a finished program to the BBC micro:bit. First of all select ‘download’ .
Micro:bit sold separately STEP 1: Use a small Phillips screwdriver to screw the five M3 machine screws through the micro:bit and spacer, into the nuts mounted on the PCB. ZIP LEDs Servo Connections On/Off Switch PCB Mounted Nuts Spacer www.kitronik.co.uk...
Additional packages should appear below. STEP 5: Select ‘Add Package’. STEP 6: In the search bar type ‘neopixel’, then select the ‘neopixel’ box. NOTE: This will load a set of blocks compatible with Kitronik’s ZIP LEDs, which makes them really easy to code!
Page 9
This could be a number, a word or a piece of information you want your program to remember. STEP 8: Create the following code. WHAT THIS MEANS This tells the micro:bit that Pin 0 is connected to 5, colour addressable LEDs. www.kitronik.co.uk...
Page 10
WHAT THIS MEANS When button A is pressed, light up all the pixels red. WHAT THIS MEANS When button B is pressed, clear the LED’s represented by the variable ‘Pixel Array’. This will turn them off. STEP 9: Download! The program will automatically run on the simulator. Click on the ‘A’ button on the simulator to see the LED pattern.
Page 11
Set the first two pixels to red, the middle pixel to white and the last two to blue. REMEMBER: To show a change you must use a block with ‘show’ in it. STEP 13: Download Upload STEP 14: Press A and watch the lights! www.kitronik.co.uk...
Page 12
STEP 15: Create the code below. WHAT THIS MEANS This code shows a colour changing pattern when button A is pressed and stops when button B is pressed. NOTE: The ‘rotate pixels’ tool shifts each LED colour onto the next LED. When it reaches the end of the line, it goes back onto to the first LED.
The centre of the horn and the centre of the wheel should be aligned. Press fit the wheel onto the servo and repeat for the opposite side. NOTE: The screws should go through the holes shown above in red. www.kitronik.co.uk...
SPEED: STOP DEGREES: Because of component tolerances, we may need to set the centre point on the :MOVE mini servos to ensure it will stop when commanded. This is done with a trimmer, which is explained later on.
Page 15
STEP 2: With both wheel servos plugged in, it is time to write some test code. Set out the servos like below. This will allow trimming/calibration of the servos. This means they will stop and travel at the same speed when commanded. www.kitronik.co.uk...
Page 16
STEP 3: Bring up JavaScript Blocks Editor (pxt.microbit.org). STEP 4: Create the following code. When button A is pressed, both servos should turn anti-clockwise (looking from the wheel side). When button B is pressed both servos should turn clockwise (looking from the wheel side).
STEP 2: Once the servos are calibrated unplug them from the board and detach the wheels from the servos. NOTE: The diagram below shows how the number of degrees set in the code relates to the speed of the servo. SPEED: STOP DEGREES: www.kitronik.co.uk...
ASSEMBLING THE CHASSIS STEP 1: Slot the servo into the base plate with the shaft facing out, and the wires facing up. This should fit very tightly and may require some pressure to snap into place. STEP 2: Slot the side part over the top of the servo, ensuring the panel sits in front of blue plastic lip of the servo before securing it with a screw and nut.
Page 19
STEP 4: Slot the screws through the outer panel and into the green panel, then add a nut onto the end of each. Repeat for the opposite side. STEP 5: Attach to the chassis, slot the nut into the T-joint and tighten the screw. www.kitronik.co.uk...
Page 20
STEP 6: Repeat for the opposite side. STEP 7: Add a wheel (built earlier) and screw the smallest servo screw through the middle to secure it.
Page 21
STEP 8: Repeat for the opposite side. The chassis is now complete. www.kitronik.co.uk...
ATTACHING ELECTRONICS STEP 1: Plug the servo cables back into the SERVO:LITE board. The left servo should plug into the left-hand side of the :MOVE board and vice versa. The cables should be threaded down the gaps on either side as shown and any excess tucked under the pen mounting plate.
Page 23
STEP 3: Push the SERVO:LITE board fully back inside the :MOVE mini. STEP 4: Secure the SERVO:LITE board and micro:bit with the :MOVE T-piece. STEP 5: Tidy up the cables by tucking them into the gaps in between the side panels.
NOTE: Because the servos are mounted on opposite sides of the :MOVE mini, one has to turn clockwise (Value 0), and one anti-clockwise (Value 180) to drive the :MOVE mini in a straight line. STEP 2: Download Upload...
Page 25
Drive one servo at full speed, and the stop the other. This will cause the :MOVE mini to drive in a circle. STEP 4: Download Upload ADD SOME LIGHTS! STEP 5: Create the following code to give :MOVE mini a head-light or tail-light. www.kitronik.co.uk...
STEP 1: In the JavaScript Blocks Editor, create the following variables. These are used to store some constants about the :MOVE mini. WHAT THIS MEANS These tell the micro:bit about how fast the servos are moving, they allow easy tuning of the Javascript code.
Page 27
NOTE: There is a pause to allow you to move your hand before the :MOVE mini starts turning Use this code to fine tune the ‘NumberOfDegreesPerSec’ so that the :MOVE mini turns through 90 degrees. If the :MOVE mini turns too far try making the value bigger. www.kitronik.co.uk...
Page 28
STEP 4: Next make a function to cause the MOVE mini to drive forwards: WHAT THIS MEANS This code is very similar to the block code used earlier, but includes a timer to stop the :MOVE mini after a certain distance.
Page 29
Now we have the building blocks to make the :MOVE mini draw a shape. STEP 7: Change the code in the ‘onButtonPressed(Button.A, () ’ function to: WHAT THIS MEANS This will draw a basic four-sided shape, which if your turns are accurate, will be a square.
- Use your phone as a remote control! - Use a second micro:bit as a remote control! - Output to a third servo, such as an axe! - Pimp the :MOVE mini with extra ZIP LED strips! :MOVE mini PIN OUT - 3V...
TROUBLESHOOTING If you are having issues with the :MOVE mini, try the steps below! THE SERVOS ARE MISBEHAVING - Is the orange servo wire at the bottom of the connector? - Check all connections are secure. - Are the screws holding the electronics together tight? - Review your code, are you outputting to the correct pin(s)? :MOVE MINI WON’T DRIVE IN A STRAIGHT LINE...
Page 32
A range of add on boards can expand the capabilities to include more advanced functionality. The :MOVE mini board included in this pack can also be used in conjunction with a BBC micro:bit to build other movement based projects.
Need help?
Do you have a question about the MOVE mini and is the answer not in the manual?
Questions and answers