{"id":1734,"date":"2018-01-16T19:14:51","date_gmt":"2018-01-16T19:14:51","guid":{"rendered":"https:\/\/4tronix.co.uk\/blog\/?p=1734"},"modified":"2025-07-07T09:33:59","modified_gmt":"2025-07-07T09:33:59","slug":"bitcommander-games-consoler-controller","status":"publish","type":"post","link":"https:\/\/4tronix.co.uk\/blog\/?p=1734","title":{"rendered":"Bit:Commander"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2018\/01\/IMG_1812a.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"270\" src=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2018\/01\/IMG_1812a-300x270.jpg\" alt=\"IMG_1812a\" class=\"wp-image-1739\" srcset=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2018\/01\/IMG_1812a-300x270.jpg 300w, https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2018\/01\/IMG_1812a.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Bit:Commander is a great device for powering and experimenting with the BBC micro:bit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a title=\"Purchase Bit:Commander\" href=\"https:\/\/shop.4tronix.co.uk\/products\/bit-commander-console-controller-for-bbc-microbit\" target=\"_blank\" rel=\"noopener\">Purchase Bit:Commander here<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Makecode Extension for Bit:Commander<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In Makecode, select Extensions. Then search for BitCommander and add the extension<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">As well as a battery pack (3 x AA batteries required), the Bit:Commander includes<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Edge Connector for easy connection of the BBC micro:bit<\/li>\n\n\n\n<li>Robust on\/off switch<\/li>\n\n\n\n<li>Blue power indicator<\/li>\n\n\n\n<li>6 multi-colour RGB LEDs (aka neopixels)<\/li>\n\n\n\n<li>4 square\u00a012mm push buttons with coloured caps (Red. Yellow, Green, Blue)<\/li>\n\n\n\n<li>Analog dial input with centre click detent for easy centreing<\/li>\n\n\n\n<li>Analog Joystick with X and Y movement and a push switch<\/li>\n\n\n\n<li>Powered miniature speaker<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Suggested uses:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Acting as a remote control for another micro:bit device, such as a Bit:Bot<\/li>\n\n\n\n<li>Acting as a self-contained portable (no wires) games console<\/li>\n\n\n\n<li>Experimenting with various Digital and Analog inputs available as well as the speaker and neopixel outputs<\/li>\n\n\n\n<li>Everything is pre-fitted. No wires, soldering or jumpoers to fiddle with<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pin Connections:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Speaker: Pin 0 (*)<\/li>\n\n\n\n<li>Dial: Pin 0 (*)<\/li>\n\n\n\n<li>Joystick X: Pin 1<\/li>\n\n\n\n<li>Joystick Y: Pin 2<\/li>\n\n\n\n<li>Joystick button: Pin 8<\/li>\n\n\n\n<li>FireLeds: Pin 13<\/li>\n\n\n\n<li>Red Button: Pin 12<\/li>\n\n\n\n<li>Yellow Button: Pin 16<\/li>\n\n\n\n<li>Green Button: Pin 14<\/li>\n\n\n\n<li>Blue Button: Pin 15<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">(*) Pin 0 is used both for Speaker output (using the Music or Tone output methods) as well as the Dial analog input. This causes some compromises &#8211; most notable of which is that the Dial analog input cannot reach its normal maximum value of 1023 and stops at around 850 instead. As long as the software understands this, then it shouldn&#8217;t be a problem.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>NB. The Bit:Commander is only powered if batteries are fitted and it is switched on<\/strong>. Powering the micro:bit does not power the Bit:Commander. However, when the Bit:Commander is powered up, then it will also power the micro:bit<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using to Control Floor Robots with Makecode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">(For example: BitBot XL, BitBot PRO, MiniBit, RoboBit or MARS Rover)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can download these programs from here:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/4tronix.co.uk\/files\/microbit-BitCom_TX2.hex\">Transmitter <\/a>(for BitCommander)<\/li>\n\n\n\n<li><a href=\"https:\/\/4tronix.co.uk\/files\/microbit-BitBotXL_RX2.hex\">Receiver <\/a>(for BitBot XL)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You should consider that the BitCommander is really just a holder for a Microbit. It contains switches, a joystick etc. that the Microbit can read and do whatever it wants with. When using to control a second Microbit in a floor robot, we read the inputs that we are interested in, then use the Microbit Radio blocks to send the commands we want to the robot. The robot will have another program running that receives the commands and executes them as required.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So we need to first write a program to run on the Microbit in the BitCommander. This program will read some switches and send related commands to the robot, using the Microbit Radio blocks. Here&#8217;s a simple program that uses the coloured buttons and the button in the joystick. We will use Radio Channel 7 for this example (and make sure our robot is also using Channel 7). We&#8217;re using a simple numeric code to send the commands:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Forward (Red)<\/li>\n\n\n\n<li>Left (Yellow)<\/li>\n\n\n\n<li>Reverse (Green)<\/li>\n\n\n\n<li>Right (Blue)<\/li>\n\n\n\n<li>Stop (Joystick button)<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2018\/01\/Basic_TX.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"499\" height=\"599\" src=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2018\/01\/Basic_TX.jpg\" alt=\"\" class=\"wp-image-2765\" style=\"width:636px;height:auto\" srcset=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2018\/01\/Basic_TX.jpg 499w, https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2018\/01\/Basic_TX-250x300.jpg 250w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Select the &#8220;on button&#8230;&#8221; and &#8220;set LED&#8230;&#8221; blocks from the BitCommander extension. Select the &#8220;radio send&#8230;&#8221; blocks from the Microbit Radio section.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Install this program in the BitCommander Microbit<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now let&#8217;s create a simple program for the robot (we will use the BitBot XL, but you can write a similar program for other robots). So make sure you have installed the BitBot extension first.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Again we will start by setting the Radio group to match that in the BitCommander. Note that you can have several pairs operating at the same time as long as each pair of BitCommander and Robot, uses different Radio groups (channels).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then we listen for Radio messages and send the appropriate command to the motors.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2018\/01\/Basic_RX.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"543\" src=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2018\/01\/Basic_RX.jpg\" alt=\"\" class=\"wp-image-2766\" style=\"width:625px;height:auto\" srcset=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2018\/01\/Basic_RX.jpg 550w, https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2018\/01\/Basic_RX-300x296.jpg 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now download this to the Microbit in your BitBot and you should be able to control it via the BitCommander.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Resources:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">From the excellent Mark at multiwingspan:<br><strong>JavaScript Blocks<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Bit:Commander Blocks Overview: <a title=\"Bit:Commander Overview\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtintro\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtintro<\/a><\/li>\n\n\n\n<li>The Joystick: <a title=\"The Joystick\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtjoy\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtjoy<\/a><\/li>\n\n\n\n<li>The FireLeds: <a title=\"The Neopixels\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtneo\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtneo<\/a><\/li>\n\n\n\n<li>The Potentiometer: <a title=\"The Potentiometer\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtpot\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtpot<\/a><\/li>\n\n\n\n<li>The Pushbuttons: <a title=\"The Pushbuttons\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtbtn\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtbtn<\/a><\/li>\n\n\n\n<li>The Buzzer: <a title=\"The Buzzer\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtbuzz\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtbuzz<\/a><\/li>\n\n\n\n<li>Simon Game: <a title=\"Simon Game\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtsimon\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpxtsimon<\/a><br><p>\u00a0<\/p><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MicroPython<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that these examples are targetted at the Classic BitBot and will need changing for use on the BitBot XL and BitBot PRO<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Bit:Commander uPython Overview: <a title=\"Bit:Commander uPython Overview\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcintro\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcintro<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Joystick: <a title=\"The Joystick\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcjoy\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcjoy<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Neopixels: <a title=\"The Neopixels\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcneo\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcneo<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Potentiometer: <a title=\"The Potentiometer\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpot\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcpot<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Pushbuttons: <a title=\"The Pushbuttons\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcbtn\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcbtn<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Buzzer: <a title=\"The Buzzer\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcbuzz\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcbuzz<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Evasion Game: <a title=\"Evasion Game\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcchase\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcchase<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Lights Out Game: <a title=\"Lights Out Game\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bclights\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bclights<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Simon Game: <a title=\"Simon Game\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcsimon\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcsimon<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Bit:Bot\/Robot Controller: <a title=\"Bit:Bot Controller\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcbitbot\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcbitbot<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Text Entry: <a title=\"Text Entry\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bctext\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bctext<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unicorn Commander: <a title=\"Unicorn Commander\" href=\"http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcunic\" target=\"_blank\" rel=\"noopener\">http:\/\/www.multiwingspan.co.uk\/micro.php?page=bcunic<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use to control Bit:Bot. Install the <a title=\"Bit:Commander Transmitter (uPython)\" href=\"https:\/\/4tronix.co.uk\/bitcommander\/BC_TX.py\" target=\"_blank\" rel=\"noopener\">TX program <\/a>on Bit:Commander and the <a title=\"Bit:Bot Receiver program (uPython)\" href=\"https:\/\/4tronix.co.uk\/bitcommander\/BitBot_RX.py\" target=\"_blank\" rel=\"noopener\">RX program <\/a>on Bit:Bot<\/li>\n\n\n\n<li>Simple <a title=\"Simple Space Invaders (uPython)\" href=\"https:\/\/4tronix.co.uk\/bitcommander\/BC_Invaders.py\" target=\"_blank\" rel=\"noopener\">Space Invaders game<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Bit:Commander is a great device for powering and experimenting with the BBC micro:bit. Purchase Bit:Commander here &nbsp; Makecode Extension for Bit:Commander In Makecode, select Extensions. Then search for BitCommander and add the extension Overview As well as a battery pack (3 x AA batteries required), the Bit:Commander includes &nbsp; Suggested uses: &nbsp; Pin Connections: &hellip; <a href=\"https:\/\/4tronix.co.uk\/blog\/?p=1734\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Bit:Commander<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-1734","post","type-post","status-publish","format-standard","hentry","category-bbc-microbit"],"_links":{"self":[{"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1734"}],"version-history":[{"count":16,"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1734\/revisions"}],"predecessor-version":[{"id":2773,"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1734\/revisions\/2773"}],"wp:attachment":[{"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}