# Rainfall Meter

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FqZBbgvEpA8OSXw0Ci0R2%2Fraingauge_robotbit.png?alt=media&#x26;token=fce95664-146f-4d7b-b68a-9a308584c4fa" alt=""><figcaption></figcaption></figure>

### Building Instructions

{% content-ref url="../weather-station-building-instructions/rainfall-meter-instructions" %}
[rainfall-meter-instructions](https://sharinghub-eng.kittenbot.hk/educational-kit-sets/weather-station-educational-kit/weather-station-building-instructions/rainfall-meter-instructions)
{% endcontent-ref %}

### Hardware Wiring Diagram

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F35zdka7pEpqwDNvpinDV%2Fraingauge_wiring_robotbit.png?alt=media&#x26;token=a9e3bd8b-e5e4-48c9-84a5-fd41854cdb46" alt=""><figcaption></figcaption></figure>

### Sample Program

{% hint style="info" %}
Adjust variable s(area) and h(height) to the sizes of your container.
{% endhint %}

{% embed url="<https://makecode.microbit.org/_a3cfPTAEqfT7>" %}

#### Operating Instructions:

1. OLED will display the current water level.
