Introduction

Everybody loves a good tune, even CodeBug! You can program CodeBug to play music using a buzzer or speakers. Musical notes are generated on CodeBug by turning an output leg on and off very quickly at different frequencies depending on the note. You can control what note is played and for how long. By putting notes together, you can create tunes, make your own synthesisers or even make sounds for games.

You will need
CodeBug CodeBug
Micro USB cable
Computer
Crocclips
OR Headphones
Buzzer
10k ohm potentiometer (optional)

Activities with this step

Back to top