03 - Neopixel and Data
Last updated
Last updated
In this activity we are using a micro:bit to collect data from our environment, and visualize it using a neopixel matrix. Like the last challenges, it will be using the micro:bit sensors (temperature and light) to collect our data.
Besides using the neopixel matrix, we are using other two different concepts in this build:
We will manually trigger the data collection.
We are using a new concept in computer science called arrays to help us store the collected data.
Arrays are lists that hold information. These lists or containers can grow and shrink depending on the data they include.
In this project, we are visualizing different light levels within a specific environment. Think of collecting data at several points in your classroom and then displaying all the points on a grid.
Requirements
Collect and visualize light levels in a room.
Data Collection
Press the A button on the micro:bit to collect light levels in different places within the chosen room.
Data Visualization
Press the B button on the micro:bit to display the current data available on the neopixel matrix
Read the requirements and try to code the activity. Once you are done or you give it your best, take a look at the way we solved it, below.
You can see our solved version here
We are now ready to tackle the Climate Change Activities in the next section.