MoonCampaign by Myra (9 years)
Light sensor and the rows and coloum
Myra
Show and Tell
Show n Tell
Coming Soon
I made a light sensor activity using a Micro:bit. When I press the simulation button and increase the light level, the LEDs on the Micro:bit start turning on row by row. When the light level decreases, the LEDs disappear again. I used Tinkercad, a light sensor, and coding blocks like “while true,” “input light level,” “LED plot,” “pause,” and “clear screen.” My project can be used for signaling or for fun party lighting.
I created a project using a Micro:bit, a light sensor, and Tinkercad.
My project is all about how the Micro:bit LEDs can light up using rows and columns depending on the light level. When I click the “Start Simulation” button, I can increase or decrease the light sensor value. As I increase the light level, the LEDs on the Micro:bit begin to turn on, one row or one column at a time. When I make the light level lower, the LEDs slowly disappear again. I think this looks very cool because it almost feels like the Micro:bit is breathing with light.
To build this project, I used components like the Micro:bit for the LEDs, a light sensor to control the brightness, and the code editor in Tinkercad. The code is the most important part. I used the “while true” block to keep the program running forever, so I don’t have to keep repeating the instructions. I also used “input light level” to check how bright the light is. With “LED plot,” I told the Micro:bit exactly which LED should turn on at which light level. I added a one-second pause and then used “clear screen” to reset the LEDs before the next cycle.
This project can be used for signaling someone or even as a fun party light because it keeps blinking and changing patterns. I really enjoyed making it, and I learned how rows, columns, and light sensors work together.
©️ Copyright, Moonpreneur Inc.
3031 Tisch Way, 110 Plaza West PMB # 138, San Jose, CA 95128, USA
Likes
Rating
44 days left
Light sensor and the rows and coloum