Installation for Hummingbird Bit

To use the Hummingbird Bit with Python, you should first complete the Set Up Hummingbird steps below. Your computer must have Bluetooth capability to program the Hummingbird in Python.

From there, you have two choices:

  • Run in Browser: The easiest option is to program the Hummingbird in the browser through brython.birdbraintechnologies.com, as shown in the Run in Browser instructions. This website is compatible with Chromebooks as well as Mac/Windows/Linux computers. Choose this option if you are using a Chromebook, are unable to download software, or just want to keep things simple.
  • Download Software: These instructions will show you how to use the Hummingbird with an offline Python IDE on Mac/Windows computers. Choose this option to use an IDE such as IDLE that will enable you to use the Hummingbird with a wider range of Python libraries.

Steps 1 2 3 4
Steps 1 2 3 4 5 6 7 8
Steps 1 2 3 4 5 6 7

((vim videoid=ps0ecy3igx wl=0))
((img class=img-responsive src=https://learn.birdbraintechnologies.com/wp-content/uploads/2018/12/STILLSnap_Humbit_Setup_1-768x432.jpg))

This module will show you how to set up your Hummingbird to program in Python. Everyone should complete this module.

((vim videoid=vfyqgxf4rs wl=1))
((img class=img-responsive src=https://learn.birdbraintechnologies.com/wp-content/uploads/2018/12/STILLSnap_Humbit_Setup_2-768x432.jpg))

Insert a micro:bit into your Hummingbird Bit Controller (you might need to push a little harder than you think!), and connect it to the computer with the USB cord. The Hummingbird also needs a source of power, so connect it to the battery pack or AC power adapter. If you are using rechargeable batteries, check out this support article before using.

((vim videoid=jswqywd6u7 wl=1))
((img class=img-responsive src=https://learn.birdbraintechnologies.com/wp-content/uploads/2018/12/STILLSnap_Humbit_Setup_4-768x432.jpg))

Optional step: If your micro:bit is already flashing 3 or 10 letters when powered on, you can skip this step.

Download this file and drag it onto the micro:bit. Your device should start to flash ten characters on its display. You will only need to complete this step once for each Hummingbird – as long as your device is flashing its initials, you are ready to connect via Bluetooth.

After dragging the file onto the micro:bit, remove the USB cord. You won’t need it to use Python.

Download Hex File

From here, you have two choices:

  • The easiest option is to program the  Hummingbird in the browser through brython.birdbraintechnologies.com, as shown in the Run in Browser instructions. This website is compatible with Chromebooks as well as Mac/Windows/Linux computers.
  • The Download Software instructions will show you how to use the Hummingbird with an offline Python IDE on Mac/Windows computers.

This module will show you how to use a browser-based web app to program the Hummingbird. Start by going to brython.birdbraintechnologies.com. You can use this website with Chromebooks or any Windows/Mac/Linux computer with built-in Bluetooth.

((img class=img-responsive src=https://learn.birdbraintechnologies.com/wp-content/uploads/2019/12/image1-3-768x311.png))

Click Find Robots. You will see a list of devices that start with FN (Finch), BB (Hummingbird), or MB (micro:bit). You may see one robot or many, depending on how many are nearby. If you have downloaded the most recent BirdBrain firmware(from step 3) then your micro:bit will flash a code starting with #BB and ending in 5 numbers and letters. Look for this code in the connection menu and connect to this device. You can also use masking tape to label your Hummingbird with it’s device name for quicker identification in the future.

((img class=img-responsive src=https://learn.birdbraintechnologies.com/wp-content/uploads/2018/11/HB_Step-3-768x453.png))

You will hear a sound as the Hummingbird connects, and the initials will stop flashing on the micro:bit. Once you have connected to a Hummingbird, the name of your robot will appear on the screen, along with a battery indicator. Brython will load automatically.

((img class=img-responsive src=https://learn.birdbraintechnologies.com/wp-content/uploads/2018/11/HB_Step-4-768x262.png))

If you become disconnected while programming your Hummingbird, click the expand button to see the Find Robots button and reconnect.

((img class=img-responsive src=https://learn.birdbraintechnologies.com/wp-content/uploads/2019/12/image3-4-768x218.png))

You can use Brython online or offline. To use Brython offline with the Finch, install it on your Chromebook using the orange install button.

((vim videoid=vl4n8uw9hi wl=1))
((img class=img-responsive src=https://learn.birdbraintechnologies.com/wp-content/uploads/2018/12/STILLSnap_Humbit_LED_2-768x432.jpg))

To test that everything is working properly, connect a single-color LED to port 1 of the Hummingbird.

((img class=img-responsive src=https://learn.birdbraintechnologies.com/wp-content/uploads/2018/11/HB_Step-7-768x279.png))

Brython loads with a sample program. To run the program on your Hummingbird, click the play button. There are also buttons to stop the program and upload or download Brython code.

Now you are ready to start writing your own Python programs with the Hummingbird! These lessons will help you to get started, and this reference summarizes the functions that are available in the Hummingbird Python library.

This section will show you how to use an offline Python editor with the Hummingbird on Mac/Windows computers. Start by installing Python and any offline Python editor. The screenshots here will show the IDLE Python editor, which is automatically installed on your computer with Python.

 

Next, install the BlueBird Connector. This software will handle the Bluetooth connection with the Hummingbird. You must run it in the background while you are programming the Hummingbird in Python.

((vim videoid=ksbj3q5zj2 wl=1))
((img class=img-responsive src=https://learn.birdbraintechnologies.com/wp-content/uploads/2018/12/STILLSnap_Humbit_Setup_6-768x432.jpg))

Open the BlueBird Connector. It will begin finding the robots around you. Click on the name of the robot that matches the initials on your device. The initials are the three letters that flash before the # symbol.

You will hear a sound as your device connects, and the initials will stop flashing on the device. The name of your robot should appear under Connected.

Troubleshooting Note: The BlueBird Connector must remain open in the background the entire time that you are working with the Hummingbird. If your Hummingbird disconnects, the app will notify you, and the Hummingbird will begin flashing its initials again. If this happens, return to the BlueBird Connector and reconnect it.

((vim videoid=vl4n8uw9hi wl=1))
((img class=img-responsive src=https://learn.birdbraintechnologies.com/wp-content/uploads/2018/12/STILLSnap_Humbit_LED_2-768x432.jpg))

To test that everything is working properly, connect a single-color LED to port 1 of the Hummingbird.

((img class=img-responsive src=https://learn.birdbraintechnologies.com/wp-content/uploads/2018/11/pythonbit1-768x510.png))

The BirdBrainPython folder contains the main library (BirdBrain.py) and a test file (HummingbirdTest.py). Open HummingbirdTest.py in your IDE.

To run the test program in IDLE, choose Run/Run Module. The single-color LED should blink 10 times.

Now you are ready to start writing your own Python programs with the Hummingbird! These lessons will help you to get started, and this reference summarizes the functions that are available in the Hummingbird Python library.

Make sure to store your programs in the BirdBrainPython folder so that they can find the BirdBrain library (BirdBrain.py). If you wish to store programs in a different folder, just make a copy of BirdBrain.py and move it to the desired folder.

Back to Top