Skip to content

Commit

Permalink
update IOT_case6
Browse files Browse the repository at this point in the history
  • Loading branch information
gisellechan committed Sep 14, 2020
1 parent a4dcf91 commit 4170c5d
Show file tree
Hide file tree
Showing 49 changed files with 367 additions and 26 deletions.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/smartcity/case01.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/smartcity/case06.doctree
Binary file not shown.
Binary file added docs/_build/html/_images/Case6_001.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_002.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_003.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_004.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_005.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_006.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_007.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_008.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_009.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_010.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_011.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_012.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_013.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_014.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/Case6_015.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions docs/_build/html/_sources/smartcity/case01.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,44 +41,44 @@ Electronics:
<tr><td>Equipment:
<ul><li>ScrewDriver X1</li></ul></td></tr></table>

![auto_fit](images/Case1_01.png)
![auto_fit](images/Case1/Case1_01.png)
<P>

## Practical Operation
<HR>

<span id="subtitle">Step 1</span><BR><P>
Screw the sensor. Attach the LED light to the model. Attach motion sensor to A1 model with M4 screws and nuts.<BR><P>
![auto_fit](images/Case1_02.png)<BR><P>
![auto_fit](images/Case1/Case1_02.png)<BR><P>

<span id="subtitle">Step 2</span><BR><P>
Attach the white LED light to A3 model with M4 screws and nuts.<BR><P>
![auto_fit](images/Case1_03.png)<BR><P>
![auto_fit](images/Case1/Case1_03.png)<BR><P>

<span id="subtitle">Step 3</span><BR><P>
Put together all the cardboard parts (A1-A3)<BR><P>
![auto_fit](images/Case1_04.png)<BR><P>
![auto_fit](images/Case1/Case1_04.png)<BR><P>

## Hardware connect
<HR>

Connect Motion sensor to the P0 port of Smarthon IoT:bit<BR><P>
Connect LED light to the P1 port of Smarthon IoT:bit<BR><P>
<BR>![auto_fit](images/Case1_05.png)
<BR>![auto_fit](images/Case1/Case1_05.png)
<P>

## Programming:
<HR>

<span id="subtitle">Step 1</span><BR><P>
Drag forever block from Basic. Snap if statement into forever, set get motion (triggered or not) at P0=true, that's say motion is triggered, someone passes by.<BR><P>
![auto_fit](images/Case1_06.png)<P>
![auto_fit](images/Case1/Case1_06.png)<P>
<span id="subtitle">Step 2</span><BR><P>
Turn white LED to 1023 at P1 as turning on white LED and pause 10 seconds.<P>
![auto_fit](images/Case1_07.png)<P>
![auto_fit](images/Case1/Case1_07.png)<P>
<span id="subtitle">Step 3</span><BR><P>
Else, turn white LED to 0 at P1 as turing off white LED.<P>
![auto_fit](images/Case1_08.png)<P>
![auto_fit](images/Case1/Case1_08.png)<P>

<span id="subtitle">Full Solution<BR><P>
MakeCode: [https://makecode.microbit.org/_M75EdA7XVUHW](https://makecode.microbit.org/v2/#pub:_M75EdA7XVUHW)<BR><P>
Expand All @@ -91,7 +91,7 @@ You could also download the program from the following website:<BR>
<HR>

Motion sensor is used to detect if there are people moving in the playground. If there are, the LED light will be turned on; otherwise, it will be turned off.<BR><P>
![auto_fit](images/Case1_09.gif)<P>
![auto_fit](images/Case1/Case1_09.gif)<P>

## Think
<HR>
Expand All @@ -101,6 +101,6 @@ Q2. How should we reset the programming if we connect the white LED light to P3?
Tips: As P3 is used by micro:bit LED.
(Refer to [https://makecode.microbit.org/device/pins](https://makecode.microbit.org/device/pins))<BR>
If we connect white LED light to P3, we need to disable micrbo:bit LED.<BR><P>
![auto_fit](images/Case1_10.png)<P>
![auto_fit](images/Case1/Case1_10.png)<P>

Q3. Show motion sensor value on OLED<P>
117 changes: 116 additions & 1 deletion docs/_build/html/_sources/smartcity/case06.md.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,118 @@
# IoT Case 06: Weather Station

## Introduction
Level: ![level](images/level2.png)

## Goal
<HR>
Make a weather station which gets the values from the raindrop sensor, temperature and humidity sensor. The data will be sent to IoT platform - ThingSpeak.<BR><P>

## Background
<HR>

<span id="subtitle">What is Thingspeak?</span><P>
ThingSpeak™ is an IoT analytics platform service which provides instant visualizations of data posted by your devices to ThingSpeak. In this case, we will use this platform to update our data to plot instant graphs. <BR><P>

<span id="subtitle">Weather station operation</span><P>
Collecting temperature, humidity and raindrop consistently and uploading the data by using Thingspeak. This can help us to do analytical work more conveniently as we can refer to the automatically plotted graphs. <BR><P>

## Part List
<HR>
<table><tr><td>
Electronics:
<ul display='inline-block'>
<li>micro:bit X1</li>
<li>Smarthon IoT:bit X1</li>
<li>OLED X1</li>
<li>USB Wire/Battery Holder </li>
&nbsp;&nbsp;1. Temperature and humidity Sensor (With Module wire)<BR>
&nbsp;&nbsp;2. Raindrop Sensor (With Module wire)<BR>
</ul>
</td></tr>

<tr>
<td>Model:
<ul>
<li>House Model H1-H2 X1</li>
<li>M4 Screw X4</li>
<li>M4 Nuts X4</li>
</ul>
</td></tr>
<tr><td>Equipment:
<ul><li>ScrewDriver X1</li></ul></td></tr></table>

![auto_fit](images/Case6/Case6_001.png)<P>

## Practical operation
<HR>

<span id="subtitle">Step 1</span><BR><P>
Attach the raindrop sensor to H2 model.<BR><P>
![auto_fit](images/Case6/Case6_002.png)<P>
<span id="subtitle">Step 2</span><BR><P>
Attach the temperature and humidity sensor to H2 model.<BR><P>
![auto_fit](images/Case6/Case6_003.png)<P>
<span id="subtitle">Step 3</span><BR><P>
Put together all the cardboard parts (H1-H2).<BR><P>
![auto_fit](images/Case6/Case6_004.png)<P>

## Hardware connect
<HR>

Connect the Raindrop Sensor to P0 port of Smarthon IoT:bit<BR><P>
Connect the Temperature and humidity Sensor to P2 port of Smarthon IoT:bit<BR><P>
![auto_fit](images/Case6/Case6_005.png)<P>

## IoT (ThingSpeak)
<HR>

<span id="subtitle">Step 1</span><BR><P>
Go to https://thingspeak.com/, Choose Channels -> My Channels -> New Channel<BR><P>
![auto_fit](images/Case6/Case6_006.png)<P>

<span id="subtitle">Step 2</span><BR><P>
Input Channel name, Field1 and Field2 , then click “Save Channel”<BR><P>
* Channel name: Smart Weather Station
* Field 1: temperature
* Field 2: humidity
* Freld 3: raindrop

<span id="subtitle">Step 3</span><BR><P>
Select your channel > “API Keys” ,copy the API key as follows:<BR><P>
![auto_fit](images/Case6/Case6_007.png)<P>
* For more details, please refer to 2.1. Create channel in ThingSpeak and get the key

## Programming
<HR>

<span id="subtitle">Step 1</span><BR><P>
Drag on start block from Basic. Drag Initialize WiFi IoT:bit and OLED from WiFi IoT:bit and set WiFi to ssid “wifi_name” and pwd “WiFi_password”.<BR><P>
![auto_fit](images/Case6/Case6_008.png)<P>
<span id="subtitle">Step 2</span><BR><P>
Set variable temperature, humidity and raindrop to 0.<BR><P>
![auto_fit](images/Case6/Case6_009.png)<P>
<span id="subtitle">Step 3</span><BR><P>
Drag forever block from Basic. Snap if statement into forever. If WiFi is connected then, set humidity and temperature to get humidity and temperature values from DHT11 at Pin P2. Also, set raindrop to get raindrop value (percentage) from raindrop sensor at Pin P0.<BR><P>
![auto_fit](images/Case6/Case6_010.png)<P>
<span id="subtitle">Step 4</span><BR><P>
Show string Temperature, humidity and raindrop on the OLED by using join from text.<BR><P>
![auto_fit](images/Case6/Case6_011.png)<P>
<span id="subtitle">Step 5</span><BR><P>
Drag Send Thingspeak with key (paste thingspeak key) from WiFi IoT:bit.. Set field 1 to temperature, set field 2 to humidity and set field 3 to raindrop.<BR><P>
![auto_fit](images/Case6/Case6_012.png)<P>
<span id="subtitle">Step 6</span><BR><P>
Pause for 11000ms after sending data to Thingspeak.<BR><P>
![auto_fit](images/Case6/Case6_013.png)<P>

## Result
<HR>

When micro:bit is connected to WiFi, it will check weather information (temperature, humidity from Temperature and humidity Sensor and raindrop from raindrop sensor). Then, those data will be sent to ThingSpeak and pause for 11 seconds for another update.<BR><P>
![auto_fit](images/Case6/Case6_014.png)<P>
We can find three graphs on Thingspeak including temperature, humidity and raindrop (field1, field2, field3) respectively by collecting data using different sensors.<BR><P>
![auto_fit](images/Case6/Case6_015.png)<P>

## Think
<HR>

Q1. How can we upload other module values (i.e. noise) to Thingspeak?<BR><P>

2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Large diffs are not rendered by default.

117 changes: 114 additions & 3 deletions docs/_build/html/smartcity/case06.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,15 @@
<li class="toctree-l2"><a class="reference internal" href="case04.html">13. Case 04: Urban noise detection</a></li>
<li class="toctree-l2"><a class="reference internal" href="case05.html">14. Case 05: Car speed monitoring</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">15. IoT Case 06: Weather Station</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#introduction">15.1. Introduction</a></li>
<li class="toctree-l3"><a class="reference internal" href="#goal">15.1. Goal</a></li>
<li class="toctree-l3"><a class="reference internal" href="#background">15.2. Background</a></li>
<li class="toctree-l3"><a class="reference internal" href="#part-list">15.3. Part List</a></li>
<li class="toctree-l3"><a class="reference internal" href="#practical-operation">15.4. Practical operation</a></li>
<li class="toctree-l3"><a class="reference internal" href="#hardware-connect">15.5. Hardware connect</a></li>
<li class="toctree-l3"><a class="reference internal" href="#iot-thingspeak">15.6. IoT (ThingSpeak)</a></li>
<li class="toctree-l3"><a class="reference internal" href="#programming">15.7. Programming</a></li>
<li class="toctree-l3"><a class="reference internal" href="#result">15.8. Result</a></li>
<li class="toctree-l3"><a class="reference internal" href="#think">15.9. Think</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="case07.html">16. IoT Case 07: Smart defense system</a></li>
Expand Down Expand Up @@ -179,8 +187,111 @@

<div class="section" id="iot-case-06-weather-station">
<h1><span class="section-number">15. </span>IoT Case 06: Weather Station<a class="headerlink" href="#iot-case-06-weather-station" title="Permalink to this headline"></a></h1>
<div class="section" id="introduction">
<h2><span class="section-number">15.1. </span>Introduction<a class="headerlink" href="#introduction" title="Permalink to this headline"></a></h2>
<p>Level: <img alt="level" src="../_images/level22.png" /></p>
<div class="section" id="goal">
<h2><span class="section-number">15.1. </span>Goal<a class="headerlink" href="#goal" title="Permalink to this headline"></a></h2>
<HR>
Make a weather station which gets the values from the raindrop sensor, temperature and humidity sensor. The data will be sent to IoT platform - ThingSpeak.<BR><P></div>
<div class="section" id="background">
<h2><span class="section-number">15.2. </span>Background<a class="headerlink" href="#background" title="Permalink to this headline"></a></h2>
<HR><p><span id="subtitle">What is Thingspeak?</span><P>
ThingSpeak™ is an IoT analytics platform service which provides instant visualizations of data posted by your devices to ThingSpeak. In this case, we will use this platform to update our data to plot instant graphs. <BR><P></p>
<p><span id="subtitle">Weather station operation</span><P>
Collecting temperature, humidity and raindrop consistently and uploading the data by using Thingspeak. This can help us to do analytical work more conveniently as we can refer to the automatically plotted graphs. <BR><P></p>
</div>
<div class="section" id="part-list">
<h2><span class="section-number">15.3. </span>Part List<a class="headerlink" href="#part-list" title="Permalink to this headline"></a></h2>
<HR>
<table><tr><td>
Electronics:
<ul display='inline-block'>
<li>micro:bit X1</li>
<li>Smarthon IoT:bit X1</li>
<li>OLED X1</li>
<li>USB Wire/Battery Holder </li>
&nbsp;&nbsp;1. Temperature and humidity Sensor (With Module wire)<BR>
&nbsp;&nbsp;2. Raindrop Sensor (With Module wire)<BR>
</ul>
</td></tr><tr>
<td>Model:
<ul>
<li>House Model H1-H2 X1</li>
<li>M4 Screw X4</li>
<li>M4 Nuts X4</li>
</ul>
</td></tr>
<tr><td>Equipment:
<ul><li>ScrewDriver X1</li></ul></td></tr></table><p><img alt="auto_fit" src="../_images/Case6_001.png" /><P></p>
</div>
<div class="section" id="practical-operation">
<h2><span class="section-number">15.4. </span>Practical operation<a class="headerlink" href="#practical-operation" title="Permalink to this headline"></a></h2>
<HR><p><span id="subtitle">Step 1</span><BR><P>
Attach the raindrop sensor to H2 model.<BR><P>
<img alt="auto_fit" src="../_images/Case6_002.png" /><P>
<span id="subtitle">Step 2</span><BR><P>
Attach the temperature and humidity sensor to H2 model.<BR><P>
<img alt="auto_fit" src="../_images/Case6_003.png" /><P>
<span id="subtitle">Step 3</span><BR><P>
Put together all the cardboard parts (H1-H2).<BR><P>
<img alt="auto_fit" src="../_images/Case6_004.png" /><P></p>
</div>
<div class="section" id="hardware-connect">
<h2><span class="section-number">15.5. </span>Hardware connect<a class="headerlink" href="#hardware-connect" title="Permalink to this headline"></a></h2>
<HR><p>Connect the Raindrop Sensor to P0 port of Smarthon IoT:bit<BR><P>
Connect the Temperature and humidity Sensor to P2 port of Smarthon IoT:bit<BR><P>
<img alt="auto_fit" src="../_images/Case6_005.png" /><P></p>
</div>
<div class="section" id="iot-thingspeak">
<h2><span class="section-number">15.6. </span>IoT (ThingSpeak)<a class="headerlink" href="#iot-thingspeak" title="Permalink to this headline"></a></h2>
<HR><p><span id="subtitle">Step 1</span><BR><P>
Go to https://thingspeak.com/, Choose Channels -&gt; My Channels -&gt; New Channel<BR><P>
<img alt="auto_fit" src="../_images/Case6_006.png" /><P></p>
<p><span id="subtitle">Step 2</span><BR><P>
Input Channel name, Field1 and Field2 , then click “Save Channel”<BR><P></p>
<ul class="simple">
<li><p>Channel name: Smart Weather Station</p></li>
<li><p>Field 1: temperature</p></li>
<li><p>Field 2: humidity</p></li>
<li><p>Freld 3: raindrop</p></li>
</ul>
<p><span id="subtitle">Step 3</span><BR><P>
Select your channel &gt; “API Keys” ,copy the API key as follows:<BR><P>
<img alt="auto_fit" src="../_images/Case6_007.png" /><P></p>
<ul class="simple">
<li><p>For more details, please refer to 2.1. Create channel in ThingSpeak and get the key</p></li>
</ul>
</div>
<div class="section" id="programming">
<h2><span class="section-number">15.7. </span>Programming<a class="headerlink" href="#programming" title="Permalink to this headline"></a></h2>
<HR><p><span id="subtitle">Step 1</span><BR><P>
Drag on start block from Basic. Drag Initialize WiFi IoT:bit and OLED from WiFi IoT:bit and set WiFi to ssid “wifi_name” and pwd “WiFi_password”.<BR><P>
<img alt="auto_fit" src="../_images/Case6_008.png" /><P>
<span id="subtitle">Step 2</span><BR><P>
Set variable temperature, humidity and raindrop to 0.<BR><P>
<img alt="auto_fit" src="../_images/Case6_009.png" /><P>
<span id="subtitle">Step 3</span><BR><P>
Drag forever block from Basic. Snap if statement into forever. If WiFi is connected then, set humidity and temperature to get humidity and temperature values from DHT11 at Pin P2. Also, set raindrop to get raindrop value (percentage) from raindrop sensor at Pin P0.<BR><P>
<img alt="auto_fit" src="../_images/Case6_010.png" /><P>
<span id="subtitle">Step 4</span><BR><P>
Show string Temperature, humidity and raindrop on the OLED by using join from text.<BR><P>
<img alt="auto_fit" src="../_images/Case6_011.png" /><P>
<span id="subtitle">Step 5</span><BR><P>
Drag Send Thingspeak with key (paste thingspeak key) from WiFi IoT:bit.. Set field 1 to temperature, set field 2 to humidity and set field 3 to raindrop.<BR><P>
<img alt="auto_fit" src="../_images/Case6_012.png" /><P>
<span id="subtitle">Step 6</span><BR><P>
Pause for 11000ms after sending data to Thingspeak.<BR><P>
<img alt="auto_fit" src="../_images/Case6_013.png" /><P></p>
</div>
<div class="section" id="result">
<h2><span class="section-number">15.8. </span>Result<a class="headerlink" href="#result" title="Permalink to this headline"></a></h2>
<HR><p>When micro:bit is connected to WiFi, it will check weather information (temperature, humidity from Temperature and humidity Sensor and raindrop from raindrop sensor). Then, those data will be sent to ThingSpeak and pause for 11 seconds for another update.<BR><P>
<img alt="auto_fit" src="../_images/Case6_014.png" /><P>
We can find three graphs on Thingspeak including temperature, humidity and raindrop (field1, field2, field3) respectively by collecting data using different sensors.<BR><P>
<img alt="auto_fit" src="../_images/Case6_015.png" /><P></p>
</div>
<div class="section" id="think">
<h2><span class="section-number">15.9. </span>Think<a class="headerlink" href="#think" title="Permalink to this headline"></a></h2>
<HR><p>Q1. How can we upload other module values (i.e. noise) to Thingspeak?<BR><P></p>
</div>
</div>

Expand Down
20 changes: 10 additions & 10 deletions docs/smartcity/case01.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,44 +41,44 @@ Electronics:
<tr><td>Equipment:
<ul><li>ScrewDriver X1</li></ul></td></tr></table>

![auto_fit](images/Case1_01.png)
![auto_fit](images/Case1/Case1_01.png)
<P>

## Practical Operation
<HR>

<span id="subtitle">Step 1</span><BR><P>
Screw the sensor. Attach the LED light to the model. Attach motion sensor to A1 model with M4 screws and nuts.<BR><P>
![auto_fit](images/Case1_02.png)<BR><P>
![auto_fit](images/Case1/Case1_02.png)<BR><P>

<span id="subtitle">Step 2</span><BR><P>
Attach the white LED light to A3 model with M4 screws and nuts.<BR><P>
![auto_fit](images/Case1_03.png)<BR><P>
![auto_fit](images/Case1/Case1_03.png)<BR><P>

<span id="subtitle">Step 3</span><BR><P>
Put together all the cardboard parts (A1-A3)<BR><P>
![auto_fit](images/Case1_04.png)<BR><P>
![auto_fit](images/Case1/Case1_04.png)<BR><P>

## Hardware connect
<HR>

Connect Motion sensor to the P0 port of Smarthon IoT:bit<BR><P>
Connect LED light to the P1 port of Smarthon IoT:bit<BR><P>
<BR>![auto_fit](images/Case1_05.png)
<BR>![auto_fit](images/Case1/Case1_05.png)
<P>

## Programming:
<HR>

<span id="subtitle">Step 1</span><BR><P>
Drag forever block from Basic. Snap if statement into forever, set get motion (triggered or not) at P0=true, that's say motion is triggered, someone passes by.<BR><P>
![auto_fit](images/Case1_06.png)<P>
![auto_fit](images/Case1/Case1_06.png)<P>
<span id="subtitle">Step 2</span><BR><P>
Turn white LED to 1023 at P1 as turning on white LED and pause 10 seconds.<P>
![auto_fit](images/Case1_07.png)<P>
![auto_fit](images/Case1/Case1_07.png)<P>
<span id="subtitle">Step 3</span><BR><P>
Else, turn white LED to 0 at P1 as turing off white LED.<P>
![auto_fit](images/Case1_08.png)<P>
![auto_fit](images/Case1/Case1_08.png)<P>

<span id="subtitle">Full Solution<BR><P>
MakeCode: [https://makecode.microbit.org/_M75EdA7XVUHW](https://makecode.microbit.org/v2/#pub:_M75EdA7XVUHW)<BR><P>
Expand All @@ -91,7 +91,7 @@ You could also download the program from the following website:<BR>
<HR>

Motion sensor is used to detect if there are people moving in the playground. If there are, the LED light will be turned on; otherwise, it will be turned off.<BR><P>
![auto_fit](images/Case1_09.gif)<P>
![auto_fit](images/Case1/Case1_09.gif)<P>

## Think
<HR>
Expand All @@ -101,6 +101,6 @@ Q2. How should we reset the programming if we connect the white LED light to P3?
Tips: As P3 is used by micro:bit LED.
(Refer to [https://makecode.microbit.org/device/pins](https://makecode.microbit.org/device/pins))<BR>
If we connect white LED light to P3, we need to disable micrbo:bit LED.<BR><P>
![auto_fit](images/Case1_10.png)<P>
![auto_fit](images/Case1/Case1_10.png)<P>

Q3. Show motion sensor value on OLED<P>

0 comments on commit 4170c5d

Please sign in to comment.