MakeCode Course at Home

Videos

Welcome

Our mission at BirdBrain Technologies is to inspire deep and joyful learning in all students through creative robotics. We are excited that you are joining us in making robotics accessible to all students through this course!

Before we begin to program our Hummingbird Robotics Kit*, it may be helpful to ask yourself…

What is a robot?

We define a robot as a machine that senses its environment, thinks about it, and then reacts. Can you think of some sensing, thinking, acting machines that you have interacted with today?

 

*Please note that this course is for Hummingbird Bit. Hummingbird Duo users can also use MakeCode with the purchase of an upgrade bundle. Email support@birdbraintechnologies.com with questions.

  • You can purchase a Hummingbird Robotics Kit here.

No troubleshooting available for this section

Set Up

All programming languages have different advantages. The primary advantage to MakeCode is that you can download your code directly to the Hummingbird Bit and the code will run without assistance from any other device. This video will teach you how to set up your Hummingbird Bit to program in MakeCode.

Blinking a Single Color LED

As you are plugging in your single color LED, make sure the colored wire (green, red, or yellow) is plugged into the + side of the port, and the black wire is plugged into the – side of the port. As you are coding, double check to make sure the port number on the screen matches the port on the Hummingbird controller where you plugged in your LED. 

Once you get your LED blinking, what in your code will need to change to get that LED blinking faster?

Hummingbird Hacks with an LED

Now that you know how to get an LED to blink, what can you do with it? A blinking LED needs your creative design before it can become a robot. Watch this video for a creative tip to use with your LED.

Blinking a Tri-Color LED

The same pattern you used to blink a single color LED will also allow a tri-color LED to blink between its different colors: red, green, and blue. 

Now that you can program the individual colors, can you mix those colors to create colors like purple, turquoise, and yellow?

Hummingbird Hacks with a Tri-Color LED

You can better mix and diffuse the LED light with a translucent material, for example with a packing peanut or a styrofoam ball. Even a white napkin or a piece of cloth would do the trick! This is a great time to experiment not only with your code, but with some of the translucent materials you have around your home.

Moving a Position Servo Motor

It is important to remember that when programming a position servo motor, the angle is constant. In other words, if you program your position servo to go to 90°, the servo will move to 90°, then stop. The position servo will not move again until you instruct it to go to a new angle.

Remember how you gave the single color LED two commands to alternate between 0% and 100%? Similarly, you must give the position servo at least 2 commands. Pick your favorite angles between 0° and 180°

Hummingbird Hacks with a Position Servo

The servo horn is the little piece of plastic that fits on the servo shaft. Don’t be afraid to hot glue items onto it! When you add a unique design to the servo horn (a robot arm, a sail boat, an eyeball, etc.), it quickly transforms from a servo into your personal robot.

The Build Pages

When learning the Hummingbird Bit, a lot of time is dedicated to programming and connecting components, but knowing how to build and engineer with craft materials is just as important. Our Build pages were designed for you to get started with simple designs, but also to help you take your simple designs a bit further.

No troubleshooting available for this section

Programming a Sensor

Remember, a robot is a machine that senses, thinks, and acts, so a sensor is a critical component within any robot. When plugged into a Hummingbird Bit, a sensor is constantly gathering data, and the trick is to put that data to work. In this video, we show you a few ways to use and visualize sensor data. 

Adding a Sensor to a Project

Adding a sensor will make the most simple projects more interactive. This interaction will also allow students to better demonstrate their knowledge of a range of subjects, such as mathematics, social studies, and science. 

Additional Resources

The Teach and Resources Pages

Now that you can program with MakeCode and you have some building skills, what can you teach with the Hummingbird? Maybe more important, how can you teach with the Hummingbird?  

No troubleshooting available for this section

What Next?

We are so excited to see what you’ve created with the Hummingbird Robotics Kit. If you post any of your robots online please tag us @birdbraintech so we can appreciate your creativity!

Please keep in touch with us through our mailing list and our social media accounts (Twitter, Facebook, Instagram).

No troubleshooting available for this section