> For the complete documentation index, see [llms.txt](https://resources.digitalmoment.org/micro-bit-data-and-climate-change/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.digitalmoment.org/micro-bit-data-and-climate-change/showcase-projects/04-heavy-precipitation-days/b-servo-motor.md).

# B -Servo Motor

### Servo Motor Activity

In this activity we are using the Servo Motor we will be able to visualize different scenarios for different time periods of projected mean annual precipitation.

* Recent past(2000-2020).
* Immediate future ( 2030-2050).
* Near future(2060-2080).&#x20;

### **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>servo motor</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://climateatlas.ca/map/canada/annual_precip_baseline#lat=63.94\&lng=-82.97\&z=4)
{% endhint %}

### **Assembly Instructions**

<figure><img src="/files/Sruv60xg2Wq2IpFBS2rR" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/iJwzMKaapwYBQnfKAQcC" alt=""><figcaption></figcaption></figure>

### **Functionality**

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

* Cycle through the three different **time** **periods** programmed.
* Each time the period is represented by a lit LED on the micro:bit.

#### micro:bit B Button

* Cycle through the three different **years** within the time period.
* Each year is represented by a lit LED on the micro:bit.

#### **micro:bit A+B Buttons**

* Toggle between low and high-carbon **scenarios** for the Immediate Future and the Near Future scenarios.

#### Servo Motor

* Display different precipitation levels on the pre-printed cardboard cutout.

{% hint style="success" %}
MakeCode project - **Canada** - [**LINK**](https://makecode.microbit.org/_Xf8956MpXF9s)&#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 **fairy lights**.
