top of page
  • colleenguirand1

Musical Instrument

In this project, I decided to create a musical instrument using LEDS, analogs, Booleans, digital input/output and conditions. The first thing I did was set both my variables "light" and "force" to 0, which lets the microbit know that both need to be off at start. The light variable indicates how much light is hitting the pentiometer and force is to indicate how hard the black flask pin is pinched.


Then, I separated both variables into their own pins and created conditions for light. If the light was higher than 800, digital pin 5 would light up an LED and 8/11 would be off. Same rule applied for the other pins.


In order to hear sound, I attached the speaker to the ground button and pin 0 and depending on which way the nozzle turns, it determines how fast the beat goes.


Unfortunately, only the first half of the project work because when I turned the nozzle, the other LEDs should turn on and off.


https://makecode.microbit.org/_d6g2sdiY9Eqi




15 views0 comments

Recent Posts

See All

Final Exam Project

Originally, I was planning on creating a doodle jump game where the player presses the space key to make an object jump from platform to platform, but I didn't seem to figure out how to make the objec

Final Project Idea

For my final project, I have two game ideas as to what I want to create. The first one was going to be a platform game, where there are thin rectangles floating on the canvas moving side to side depen

Algorithmic Bias Reading Respone

Where do we see examples of algorithmic bias around us? ​ - AI has been seen used in job applications, police departments and with our personal devices Had you heard of any of these examples?​ - I hav

Post: Blog2_Post
bottom of page