Skip to main content

11.1

Major VersionM

by Pete Prodoehl

Introduction

Build a remote control with two thumbsticks to control your Tank. The left thumbstick controls the left treads (forward & backward) and the right thumbstick controls the right treads. You can drive forward, reverse, or spin in either direction.

You can also manipulate the Gripper using the built-in buttons on each thumbstick to open and close the fingers. We've also made it easy to change the speed of the Tank using the A and B buttons on the micro:bit

If you want a more bare-bones remote check out our Rover Simple Remote or Rover Bluetooth Control

Video Overview

Featured Document

  1. If you've built the Rover Tank Body and you want a full-featured remote control this guide will show you how to build one. We'll load new code onto the Tank's micro:bit so it can act as a receiver, and we'll load code onto the second micro:bit so it can work as a transmitter.
    • If you've built the Rover Tank Body and you want a full-featured remote control this guide will show you how to build one.

    • We'll load new code onto the Tank's micro:bit so it can act as a receiver, and we'll load code onto the second micro:bit so it can work as a transmitter.

    • Our remote will control the left and right treads independently, which will allow the tank to move forward, backwards, and turn left and right. (And spin around in circles!)

    • Since the thumbsticks have built-in buttons (that are activated when you press down) we'll use those to control the Rover Gripper if you have it attached.

    • We've added one more feature. You can change the speed of the Tank by using the remote. By default it will start at 50% speed but you can decrease or increase this.

    • Just press the A button on the Remote Control micro:bit to slow it down. (One press lowers 10% each time.)

    • Pressing the B button will inversely increase the speed by 10% each time.

  2. Note: If your kit came with the Crazy Circuits Ribbon Cable check the next step before plugging anything in. Connect the two thumbsticks as shown. For the Left Thumbstick connect VRX to Pin 0, SW to Pin 13, and then +5V to any pin in the + (positive) column and GND to any pin in the - (negative) column.
    • Note: If your kit came with the Crazy Circuits Ribbon Cable check the next step before plugging anything in.

    • Connect the two thumbsticks as shown.

    • For the Left Thumbstick connect VRX to Pin 0, SW to Pin 13, and then +5V to any pin in the + (positive) column and GND to any pin in the - (negative) column.

    • For the Right Thumbstick connect VRX to Pin 1, SW to Pin 14, and then +5V to any pin in the + (positive) column and GND to any pin in the - (negative) column.

  3. Note: In January 2024 we started to include the Crazy Circuits Ribbon Cable in our kits, which should make connecting things even easier. Take a look at the Crazy Circuits Ribbon Cable guide for more info. Take a look at the Crazy Circuits Ribbon Cable guide for more info.
    • Note: In January 2024 we started to include the Crazy Circuits Ribbon Cable in our kits, which should make connecting things even easier.

    • Take a look at the Crazy Circuits Ribbon Cable guide for more info.

  4. If you've never used a micro:bit before you'll want to check out this guide:  Bit Board V2 Setup and Use
    • If you've never used a micro:bit before you'll want to check out this guide: Bit Board V2 Setup and Use

    • We're going to load the following code for our Tank Thumb Remote RX program: https://makecode.microbit.org/_3AD53U6m0...

    • Once you load the code it won't do anything. Since the code turns the micro:bit into a receiver it will wait until a transmitter sends data before it does something.

    • If you look at the code you'll notice the numbers 1 through 3, and 4 through 6, which we referenced in Step 1. Those are the numbers the transmitter will send to the receiver.

    • You may also notice the numbers 7 and 8, which are used to control the Gripper if you have it attached to your Tank.

    • Finally numbers 9 and 10 are used to change the speed of the Tank.

    • The RX stands for "Receiver". For the code we'll load onto the second micro:bit you'll see TX which stands for "Transmitter".

  5. Let's load the code onto the second micro:bit so it can function as a transmitter and send control signals to the micro:bit on the Tank. Load the following code: Tank Thumb Remote TX program: https://makecode.microbit.org/_bUaV7LU1D...
    • Let's load the code onto the second micro:bit so it can function as a transmitter and send control signals to the micro:bit on the Tank.

    • Load the following code: Tank Thumb Remote TX program: https://makecode.microbit.org/_bUaV7LU1D...

    • If you've got the Tank you programmed in the previous step nearby make sure it isn't powered on when you load the code on your transmitter or it may roll away when you move a thumbstick!

    • Note that we've set the radio group to 2. You can choose any number you want as long as the two micro:bits use the same number. For a classroom setting with multiple pairs you'll want each to have a different number.

  6. Once you've got code loaded on both micro:bits you can test using the remote control with your Tank.
    • Once you've got code loaded on both micro:bits you can test using the remote control with your Tank.

    • The left thumbstick should make the left treads move, and the right joystick should make the right treads move.

    • Note that we consider the "left" treads to be the ones on your left side if you were standing behind the Tank, not facing the Tank.

    • The thumbsticks are also buttons that can be pressed. Pressing each should open and close the fingers of the Gripper.

    • If you want the Tank to move slower or faster press the A or B button on the micro:bit located on the Remote Control.

Finish Line

Pete Prodoehl

Member since: 03/04/2020

281 Reputation

278 Guides authored

0 Comments

Add Comment

View Statistics:

Past 24 Hours: 1

Past 7 Days: 7

Past 30 Days: 29

All Time: 441