# A - Neopixel Grid

<figure><img src="https://2550165886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fyb2qmcYgqwLw68em5mST%2Fuploads%2FPxo6aeg3xNSybhHgVcgG%2FmapsLED-01.png?alt=media&#x26;token=ba79d16b-15b8-4263-9a07-784bd07813ef" alt=""><figcaption></figcaption></figure>

### Neopixel Grid Activity

In this activity we are using the 8x8 neopixel grid to visualize carbon dioxide emissions from each province from 2009 to 2019:

### **Materials**

<table><thead><tr><th width="226">Quantity</th><th>Material</th></tr></thead><tbody><tr><td>1</td><td>micro:bit</td></tr><tr><td>1</td><td>battery pack</td></tr><tr><td>1</td><td>set of 3 alligator clips to M connector </td></tr><tr><td>1</td><td>neopixel grid</td></tr><tr><td>1</td><td>pre-cut cardstock sheet</td></tr></tbody></table>

{% hint style="info" %}
Data used for this activity [**DATA**](https://www150.statcan.gc.ca/n1/pub/71-607-x/71-607-x2020008-eng.htm)
{% endhint %}

### **Assembly Instructions**

<figure><img src="https://2550165886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fyb2qmcYgqwLw68em5mST%2Fuploads%2FkAP3Rk0qE6MuI6rn4iAY%2FAssembly%20Instructions-04.png?alt=media&#x26;token=f2eae17f-6158-47df-9aea-56b9d45525b6" alt=""><figcaption><p>under construction</p></figcaption></figure>

### **Functionality**

#### **micro:bit A Button**

* Move forward to different years from 2009 to 2019.
* Each year is represented by a lit LED on the micro:bit.

#### micro:bit B Button

* Move back to different years from 2009 to 2019.
* Each year is represented by a lit LED on the micro:bit.

#### Neopixel

* One of the rows of the neopixel has colour lights representing different levels.
  * 🔵 blue - No change.
  * 🟢 green - Safe.
  * :yellow\_circle: yellow - Caution.
  * :red\_circle: red - Danger.
* Once the project is assembled, the neopixel LEDs will light up points in each province on the map pre-printed on the cardstock sheet.

{% hint style="success" %}
MakeCode project - **Canada** - [**LINK**](https://makecode.microbit.org/_RvCViCX1PCYc)&#x20;

Find more projects at our partner's website [SteamLabs](https://steamlabs.ca/data-visualization/)
{% endhint %}

We continue with our rainy weather in the next section, this time we are working with the **neopixel lights**.
