My first program on Micro:Bit, I attempted to create a simple circuit which would sense the magnitude of light within a given space. The LEDs on the board will display a number — 0-225 (0=Dark / 225=Bright) — which represents the brightness of the room. Alsom the LEDs will change their brightness to match roughly the same brightness as the room. My idea stemmed from creating an automated nightlight which would sense the brightness of the space around, and when the brightness in the room went below a certain point the light would turn on. I've actually been thinking about something that would serve this purpose for a while due to conflicts I've noticed between the lack of sunlight at my house and resulting plant growth. The design I've come up with is merely preliminary, but I'm sure as I progress through the learning stages of Micro:Bit, I will be able to apply my knowledge more readily.
My second idea came from searching the web for inspiration from other designers. I found that Micro:Bit has the ability to control the sound output of headphones by connecting it to the pins on the board. I started to tinker around with this idea and created the masterpiece below. I adopted some of the components from my first idea by having the brightness determine the note that is played through my headphones. I used paper clips to attach lead 0 as well as the ground to my headphone jack. Currently, one of the problems I'm experiencing is that it is extremely loud and causes hearing loss for a couple seconds after listening through the headphones.
Updated Microbit Program:
Over the past couple days, my MicroBit program has progressively gotten more and more complex. I incorporated blocks from various free packages which allowed me to access different features of MicroBit. For example, I now have the ability to connect (via bluetooth) to other devices just as long as the MicroBit app is downloaded to that device. This opened up a completely new domain of possibilities which I was eager to explore. Currently, I see the main "purpose" of my program to be some sort of very annoying alarm clock, which is, of course, very hard to turn off. I fixed previous problems I had such as the fluency between changes of different ring tones by thinking logically (pun intended). I used the "while/do" block from the "Logic" section to create a continual loop which was dependent on the light level. After I figured this out, I got increasingly better at fixing code together, and when I finished my program, I was basically thinking in [block] code. Below are some pictures of the evolution of my code.