Using the BBC Microbit to code frequency generator

Posted by Mr Mallon on October 17, 2022

If you are investigating sound frequency while studying waves and have access to a BBC Microbit then have some fun coding to hear the octave of a frequency.
An octave means that the frequency is doubled. Pressing one button creates a sound of frequency 256 Hz and pressing the other double the frequency to 512 Hz.
Have some computing physics fun with the microbit.

The above code can be typed into the microbit python editor.

Microbit python editor here

17Oct

Comments are closed.