Micirobit project so far

For my microbit project, (which I am doing alone), I had no idea what to do at first. I tried to think of problems that people face every day, and I started going through my daily routine in my head. I didn’t have to think very hard, because the first thing I do is wake up to my alarm, and hit snooze.

20 minutes later I actually get out of bed.

Now that I had my problem, I started brainstorming ways that I could prevent people, like me, from going back to sleep after their alarms go off, and I thought of a device that would make some sort of annoying sound until you wake up. The only problem was, how would a microbit know when someone is awake? To solve this I decided to use the light sensor on the microbit, and have the sound turn off once the light level=x. This way, the microbit would only turn off once the person got out of bed and turned on the light.

During our last advisory, I worked on my code and ended up with a sort-of finished product. For the sound, I was going to use a tedious song over and over, but I instead used the highest note you can play on a microbit, (a high B), as an eighth note, added a sixteenth rest, and had that on repeat. I went to the tech center to test out my code, which worked on my computer, on a real microbit. At first it seemed to work; I covered the microbit so it was dark, and it started ‘beeping’ at me, but for some reason I couldn’t get it to stop, even when I held my phone flashlight right at it. I asked for help from one of the teachers, and even they thought it was strange, seeing as it worked perfectly fine on my computer.

Other than those complications, the only thing I have to figure out it what the light level in my code should be set to. Eg; while (input.lightLevel() <= __)

I would have to test this by trying multiple numbers, but because of our situation with covid-19 and all, my project is put on pause for now.

One thought on “Micirobit project so far

Leave a Reply

Your email address will not be published. Required fields are marked *