Mini examples
Ready-to-open MoBot projects for the Mini. Each one is a .mobot file you open in MoBot, with a page that says what to plug in, what to press, and what you should see or hear. See how to run an example if this is your first time. The pins and parts of the Mini are on its kit page.
Blocks examples
Section titled “Blocks examples”9 projects made of blocks. Start with the first one in the list. If it does not work, the problem is the board or the Manual driving warning above, not your program.
| Example | What it is about |
|---|---|
| Blink and fade | LED 1 blinks on and off. LED 2 fades bright, medium, dim, off. |
| Rainbow light | The big colour light shows red, orange, green, blue and pink, gets dim, then goes out. |
| Which way do the wheels go? | Each wheel goes forwards, then backwards, then they take turns, so you can check both motors. |
| Slow, faster, fastest | The wheels climb from slow to fast and back down again, forwards and then backwards. |
| Stop before you bump | The Mini drives forward and stops by itself when something is closer than 15 cm. |
| Follow the black line | The two floor sensors keep the Mini on a black line, and the lights show what each sensor sees. |
| Play songs | Plays the seven songs in the Play sound block one after another, with a colour and a name in the serial monitor for each. |
| Drive it from your phone | Renames the Mini, shows when Bluetooth connects, and drives the wheels from the joystick. |
| Does the map block work? | A three-line test of the “map values” block: a joystick reading is turned into a wheel speed. |
Python examples
Section titled “Python examples”4 projects written in MicroPython, for when dragging blocks is not enough, and for the parts of the firmware that no block can reach. Every one has two versions, one for firmware 3.0 and one for firmware 2.x, in tabs on its page.
| Example | What it is about |
|---|---|
| Drive the Mini | The Mini’s whole motor vocabulary: forward, backward, drive, stop, brake, the speed it reports and a wheel fitted backwards. |
| Rainbow | Everything the Mini’s colour light can do - and why an effect needs tick() to keep moving. |
| Jukebox | Seven Mini songs that only Python can play, each with a colour of its own, then four of the seven songs in the Play sound block. |
| Mini eyes | A parking sensor with lights and beeps, then a deliberate demonstration of the ultrasonic/IR pin clash. |