Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhiyong0410 committed Dec 3, 2020
1 parent 9047682 commit ad155bb
Show file tree
Hide file tree
Showing 50 changed files with 544 additions and 76 deletions.
Binary file modified build/doctrees/environment.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added build/html/_images/find_tutorial.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 build/html/_images/forwardorbackward.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/go_to_example_page.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 build/html/_images/open_tutorial.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 build/html/_images/see_tutorials.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 build/html/_images/select_product.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 build/html/_images/stop.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/turnangle.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/you_dare.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ This page show you the examples provided with IoT Sensor Kit.

## Open the Example
1. Select the product as IoT Sensor Kit
![select_product](pic/select_product.png)
![select_product](img/select_product.png)
2. Go to Example page
![go_to_example_page](pic/go_to_example_page.png)
![go_to_example_page](img/go_to_example_page.png)
3. Open the example you dare interest
![you_dare](pic/you_dare.png)
![you_dare](img/you_dare.png)
4. Open tutorials
![open_tutorial](pic/open_tutorial.png)
![open_tutorial](img/open_tutorial.png)
4. Find the corresponding tutorial
![find_tutorial](pic/find_tutorial.png)
![find_tutorial](img/find_tutorial.png)
5. Follow the tutorial to build the circuit
![see_tutorials](pic/see_tutorials.png)
![see_tutorials](img/see_tutorials.png)
6. Play according to USAGE.

-------------------------------
Expand All @@ -22,7 +22,7 @@ In this example, you will use photoresistor to make an automatic sensor light. B

The circuit is built as follows:

![twilight_switch](pic/twilight_switch.jpg)
![twilight_switch](img/twilight_switch.jpg)

Usage:
1. Flash the code
Expand All @@ -36,10 +36,10 @@ Usage:
In this example, you will create a voice-activated light using a sound sensor. The light will turn on automatically when there is enough sound. Connecting this light to the Internet allows us to turn off the light remotely at the touch of a button on the IoT interface.

The circuit is built as follows:
![sound_lamp](pic/sound_lamp.jpg)
![sound_lamp](img/sound_lamp.jpg)

The IoT control is shown below:
![iot_sound_lamp](pic/iot_sound_lamp.png)
![iot_sound_lamp](img/iot_sound_lamp.png)

Usage:
1. Modify Wifi Configuration
Expand All @@ -53,10 +53,10 @@ Usage:
In this example, you will record the sound sensor readings in a line graph. You can see from the line chart when your living environment is the noisiest.

The circuit is built as follows:
![noisy](pic/noisy.jpg)
![noisy](img/noisy.jpg)

The remote controls are as follows:
![rc_noisy](pic/rc_noisy.png)
![rc_noisy](img/rc_noisy.png)

Usage:
1. Flash the code
Expand All @@ -69,7 +69,7 @@ Usage:
The Theremin is the only electronic instrument in the world that does not require physical contact to play. Let's use ultrasonic sensors to make an instrument that also doesn't require physical contact!

The circuit is built as follows:
![organ](pic/organ.jpg)
![organ](img/organ.jpg)

Usage:
1. Flash the code
Expand All @@ -81,7 +81,7 @@ Usage:
Let's make a magic wand. Tie the RGB module and tilt switch to a small stick. Wave the stick and the light will change to different colors.

The circuit is built as follows:
![magic_wand](pic/magic_wand.jpg)
![magic_wand](img/magic_wand.jpg)

Usage:
1. Flash the code
Expand All @@ -92,7 +92,7 @@ Usage:
Monitor the temperature with the DS18B20! The real-time temperature of the room is seen in the Iot interface. The circuit is also connected to an RGB light that glows red when it is hot, blue when it is cold, and green when it is comfortable. You can test the temperature experiment with a cold water bottle or with warm hands.

The circuit is built as follows:
![hot_alarm](pic/hot_alarm.jpg)
![hot_alarm](img/hot_alarm.jpg)

Usage:
1. Flash the code
Expand All @@ -102,7 +102,7 @@ Usage:
Control the color of the RGB LEDs with the acceleration in the three axis directions of ADXL345. What happens? When you wave the ADXL345 at will, the RGB LEDs will change color. When you wave the ADXL345 and the RGB LED together, a rainbow of colors appears!

The circuit is built as follows:
![rainbow](pic/rainbow.jpg)
![rainbow](img/rainbow.jpg)

Usage:
1. Flash the code
Expand All @@ -113,10 +113,10 @@ Usage:
Let's build a smart garage system where we press button in the IoT interface, the garage door (controlled by servo) will open and the ultrasonic sensor will sense the car's position. When the car is far away, the garage door will close automatically.

The circuit is built as follows:
![door](pic/door.jpg)
![door](img/door.jpg)

The IoT control is shown below:
![iot_door](pic/iot_door.png)
![iot_door](img/iot_door.png)

Usage:
1. Modify Wifi Configuration
Expand All @@ -128,10 +128,10 @@ Usage:
Make a little game with button and digital display! The numbers will increase rapidly, so you have to press the button when the number reaches 100, and if the pinch is successful, You Win!

The circuit is built as follows:
![count100](pic/count100.jpg)
![count100](img/count100.jpg)

The remote controls are as follows:
![rc_count100](pic/rc_count100.png)
![rc_count100](img/rc_count100.png)

Usage:
1. Flash the code
Expand All @@ -143,10 +143,10 @@ Usage:
Make a monitor for your potted plant! With IoT, you can use photoresistor and moisture module to know the current growing environment of your plants even when you are not at home, and to give them additional light.

The circuit is built as follows:
![plant_monitoring](pic/plant_monitoring.jpg)
![plant_monitoring](img/plant_monitoring.jpg)

The IoT control is shown below:
![iot_plant_monitoring](pic/iot_plant_monitoring.png)
![iot_plant_monitoring](img/iot_plant_monitoring.png)

Usage:
1. Modify Wifi Configuration
Expand Down
10 changes: 10 additions & 0 deletions build/html/_sources/reference-for-block/picarx.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RaspberryPi
===========

.. toctree::
:maxdepth: 1

picarxbasic
camera
TextToSpeech
RaspberryPi
17 changes: 17 additions & 0 deletions build/html/_sources/reference-for-block/picarxbasic.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
basic
=====

## ![a](./img/picarx/basic/forwardorbackward.jpg)
- **effect:** Adjust the angle of the servo
- **parameter:** The parameter is an integer, between -90 and 90
***

## ![a](./img/picarx/basic/turnangle.jpg)
- **effect:** Drive servo
- **parameter:** Integer type, express speed, 0-100
***


## ![a](./img/picarx/basic/stop.jpg)
- **effect:** Stop the car
***
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@

<div class="section" id="get-started">
<h1>Get Started<a class="headerlink" href="#get-started" title="Permalink to this headline"></a></h1>
<p><img alt="a" src="get-started-with-ezblock2.0\./img/ezblock2.0-gettingstart.png" />
<img alt="a" src="get-started-with-ezblock2.0\./img/ezblock2.0-gettingstart2.png" />
<img alt="a" src="get-started-with-ezblock2.0\./img/ezblock2.0-gettingstart3.png" />
<img alt="a" src="get-started-with-ezblock2.0\./img/ezblock2.0-gettingstart4.png" />
<img alt="a" src="get-started-with-ezblock2.0\./img/ezblock2.0-gettingstart5.png" />
<img alt="a" src="get-started-with-ezblock2.0\./img/ezblock2.0-gettingstart6.png" /></p>
<p><img alt="a" src="../_images/ezblock2.0-gettingstart.png" />
<img alt="a" src="../_images/ezblock2.0-gettingstart2.png" />
<img alt="a" src="../_images/ezblock2.0-gettingstart3.png" />
<img alt="a" src="../_images/ezblock2.0-gettingstart4.png" />
<img alt="a" src="../_images/ezblock2.0-gettingstart5.png" />
<img alt="a" src="../_images/ezblock2.0-gettingstart6.png" /></p>
</div>


Expand Down
42 changes: 21 additions & 21 deletions build/html/get-started-with-ezblock2.0/ioT-Sensor-Kit.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,17 @@ <h1>Examples<a class="headerlink" href="#examples" title="Permalink to this head
<h2>Open the Example<a class="headerlink" href="#open-the-example" title="Permalink to this headline"></a></h2>
<ol class="simple">
<li><p>Select the product as IoT Sensor Kit
<img alt="select_product" src="get-started-with-ezblock2.0\pic/select_product.png" /></p></li>
<img alt="select_product" src="../_images/select_product.png" /></p></li>
<li><p>Go to Example page
<img alt="go_to_example_page" src="get-started-with-ezblock2.0\pic/go_to_example_page.png" /></p></li>
<img alt="go_to_example_page" src="../_images/go_to_example_page.png" /></p></li>
<li><p>Open the example you dare interest
<img alt="you_dare" src="get-started-with-ezblock2.0\pic/you_dare.png" /></p></li>
<img alt="you_dare" src="../_images/you_dare.png" /></p></li>
<li><p>Open tutorials
<img alt="open_tutorial" src="get-started-with-ezblock2.0\pic/open_tutorial.png" /></p></li>
<img alt="open_tutorial" src="../_images/open_tutorial.png" /></p></li>
<li><p>Find the corresponding tutorial
<img alt="find_tutorial" src="get-started-with-ezblock2.0\pic/find_tutorial.png" /></p></li>
<img alt="find_tutorial" src="../_images/find_tutorial.png" /></p></li>
<li><p>Follow the tutorial to build the circuit
<img alt="see_tutorials" src="get-started-with-ezblock2.0\pic/see_tutorials.png" /></p></li>
<img alt="see_tutorials" src="../_images/see_tutorials.png" /></p></li>
<li><p>Play according to USAGE.</p></li>
</ol>
</div>
Expand All @@ -193,7 +193,7 @@ <h2>Open the Example<a class="headerlink" href="#open-the-example" title="Permal
<h2>Twilight Switch<a class="headerlink" href="#twilight-switch" title="Permalink to this headline"></a></h2>
<p>In this example, you will use photoresistor to make an automatic sensor light. Before sunset, the light will remain off; after sunset, the light will automatically turn on.</p>
<p>The circuit is built as follows:</p>
<p><img alt="twilight_switch" src="get-started-with-ezblock2.0\pic/twilight_switch.jpg" /></p>
<p><img alt="twilight_switch" src="../_images/twilight_switch.jpg" /></p>
<p>Usage:</p>
<ol class="simple">
<li><p>Flash the code</p></li>
Expand All @@ -206,8 +206,8 @@ <h2>Twilight Switch<a class="headerlink" href="#twilight-switch" title="Permalin
<div class="section" id="sound-lamp">
<h2>Sound Lamp<a class="headerlink" href="#sound-lamp" title="Permalink to this headline"></a></h2>
<p>In this example, you will create a voice-activated light using a sound sensor. The light will turn on automatically when there is enough sound. Connecting this light to the Internet allows us to turn off the light remotely at the touch of a button on the IoT interface.</p>
<p>The circuit is built as follows:<br /><img alt="sound_lamp" src="get-started-with-ezblock2.0\pic/sound_lamp.jpg" /></p>
<p>The IoT control is shown below:<br /><img alt="iot_sound_lamp" src="get-started-with-ezblock2.0\pic/iot_sound_lamp.png" /></p>
<p>The circuit is built as follows:<br /><img alt="sound_lamp" src="../_images/sound_lamp.jpg" /></p>
<p>The IoT control is shown below:<br /><img alt="iot_sound_lamp" src="../_images/iot_sound_lamp.png" /></p>
<p>Usage:</p>
<ol class="simple">
<li><p>Modify Wifi Configuration</p></li>
Expand All @@ -219,9 +219,9 @@ <h2>Sound Lamp<a class="headerlink" href="#sound-lamp" title="Permalink to this
<div class="section" id="noisy">
<h2>Noisy<a class="headerlink" href="#noisy" title="Permalink to this headline"></a></h2>
<p>In this example, you will record the sound sensor readings in a line graph. You can see from the line chart when your living environment is the noisiest.</p>
<p>The circuit is built as follows:<br /><img alt="noisy" src="get-started-with-ezblock2.0\pic/noisy.jpg" /></p>
<p>The circuit is built as follows:<br /><img alt="noisy" src="../_images/noisy.jpg" /></p>
<p>The remote controls are as follows:
<img alt="rc_noisy" src="get-started-with-ezblock2.0\pic/rc_noisy.png" /></p>
<img alt="rc_noisy" src="../_images/rc_noisy.png" /></p>
<p>Usage:</p>
<ol class="simple">
<li><p>Flash the code</p></li>
Expand All @@ -234,7 +234,7 @@ <h2>Noisy<a class="headerlink" href="#noisy" title="Permalink to this headline">
<div class="section" id="theremin-organ">
<h2>Theremin Organ<a class="headerlink" href="#theremin-organ" title="Permalink to this headline"></a></h2>
<p>The Theremin is the only electronic instrument in the world that does not require physical contact to play. Let’s use ultrasonic sensors to make an instrument that also doesn’t require physical contact!</p>
<p>The circuit is built as follows:<br /><img alt="organ" src="get-started-with-ezblock2.0\pic/organ.jpg" /></p>
<p>The circuit is built as follows:<br /><img alt="organ" src="../_images/organ.jpg" /></p>
<p>Usage:</p>
<ol class="simple">
<li><p>Flash the code</p></li>
Expand All @@ -246,7 +246,7 @@ <h2>Theremin Organ<a class="headerlink" href="#theremin-organ" title="Permalink
<div class="section" id="magic-wand">
<h2>Magic Wand<a class="headerlink" href="#magic-wand" title="Permalink to this headline"></a></h2>
<p>Let’s make a magic wand. Tie the RGB module and tilt switch to a small stick. Wave the stick and the light will change to different colors.</p>
<p>The circuit is built as follows:<br /><img alt="magic_wand" src="get-started-with-ezblock2.0\pic/magic_wand.jpg" /></p>
<p>The circuit is built as follows:<br /><img alt="magic_wand" src="../_images/magic_wand.jpg" /></p>
<p>Usage:</p>
<ol class="simple">
<li><p>Flash the code</p></li>
Expand All @@ -257,7 +257,7 @@ <h2>Magic Wand<a class="headerlink" href="#magic-wand" title="Permalink to this
<div class="section" id="hot-weather-alarm">
<h2>Hot Weather Alarm<a class="headerlink" href="#hot-weather-alarm" title="Permalink to this headline"></a></h2>
<p>Monitor the temperature with the DS18B20! The real-time temperature of the room is seen in the Iot interface. The circuit is also connected to an RGB light that glows red when it is hot, blue when it is cold, and green when it is comfortable. You can test the temperature experiment with a cold water bottle or with warm hands.</p>
<p>The circuit is built as follows:<br /><img alt="hot_alarm" src="get-started-with-ezblock2.0\pic/hot_alarm.jpg" /></p>
<p>The circuit is built as follows:<br /><img alt="hot_alarm" src="../_images/hot_alarm.jpg" /></p>
<p>Usage:</p>
<ol class="simple">
<li><p>Flash the code</p></li>
Expand All @@ -268,7 +268,7 @@ <h2>Hot Weather Alarm<a class="headerlink" href="#hot-weather-alarm" title="Perm
<div class="section" id="swaying-rainbow">
<h2>Swaying Rainbow<a class="headerlink" href="#swaying-rainbow" title="Permalink to this headline"></a></h2>
<p>Control the color of the RGB LEDs with the acceleration in the three axis directions of ADXL345. What happens? When you wave the ADXL345 at will, the RGB LEDs will change color. When you wave the ADXL345 and the RGB LED together, a rainbow of colors appears!</p>
<p>The circuit is built as follows:<br /><img alt="rainbow" src="get-started-with-ezblock2.0\pic/rainbow.jpg" /></p>
<p>The circuit is built as follows:<br /><img alt="rainbow" src="../_images/rainbow.jpg" /></p>
<p>Usage:</p>
<ol class="simple">
<li><p>Flash the code</p></li>
Expand All @@ -279,9 +279,9 @@ <h2>Swaying Rainbow<a class="headerlink" href="#swaying-rainbow" title="Permalin
<div class="section" id="smart-garage-door">
<h2>Smart Garage Door<a class="headerlink" href="#smart-garage-door" title="Permalink to this headline"></a></h2>
<p>Let’s build a smart garage system where we press button in the IoT interface, the garage door (controlled by servo) will open and the ultrasonic sensor will sense the car’s position. When the car is far away, the garage door will close automatically.</p>
<p>The circuit is built as follows:<br /><img alt="door" src="get-started-with-ezblock2.0\pic/door.jpg" /></p>
<p>The circuit is built as follows:<br /><img alt="door" src="../_images/door.jpg" /></p>
<p>The IoT control is shown below:
<img alt="iot_door" src="get-started-with-ezblock2.0\pic/iot_door.png" /></p>
<img alt="iot_door" src="../_images/iot_door.png" /></p>
<p>Usage:</p>
<ol class="simple">
<li><p>Modify Wifi Configuration</p></li>
Expand All @@ -293,9 +293,9 @@ <h2>Smart Garage Door<a class="headerlink" href="#smart-garage-door" title="Perm
<div class="section" id="count-100">
<h2>Count 100<a class="headerlink" href="#count-100" title="Permalink to this headline"></a></h2>
<p>Make a little game with button and digital display! The numbers will increase rapidly, so you have to press the button when the number reaches 100, and if the pinch is successful, You Win!</p>
<p>The circuit is built as follows:<br /><img alt="count100" src="get-started-with-ezblock2.0\pic/count100.jpg" /></p>
<p>The circuit is built as follows:<br /><img alt="count100" src="../_images/count100.jpg" /></p>
<p>The remote controls are as follows:
<img alt="rc_count100" src="get-started-with-ezblock2.0\pic/rc_count100.png" /></p>
<img alt="rc_count100" src="../_images/rc_count100.png" /></p>
<p>Usage:</p>
<ol class="simple">
<li><p>Flash the code</p></li>
Expand All @@ -307,9 +307,9 @@ <h2>Count 100<a class="headerlink" href="#count-100" title="Permalink to this he
<div class="section" id="plant-monitoring">
<h2>Plant Monitoring<a class="headerlink" href="#plant-monitoring" title="Permalink to this headline"></a></h2>
<p>Make a monitor for your potted plant! With IoT, you can use photoresistor and moisture module to know the current growing environment of your plants even when you are not at home, and to give them additional light.</p>
<p>The circuit is built as follows:<br /><img alt="plant_monitoring" src="get-started-with-ezblock2.0\pic/plant_monitoring.jpg" /></p>
<p>The circuit is built as follows:<br /><img alt="plant_monitoring" src="../_images/plant_monitoring.jpg" /></p>
<p>The IoT control is shown below:
<img alt="iot_plant_monitoring" src="get-started-with-ezblock2.0\pic/iot_plant_monitoring.png" /></p>
<img alt="iot_plant_monitoring" src="../_images/iot_plant_monitoring.png" /></p>
<p>Usage:</p>
<ol class="simple">
<li><p>Modify Wifi Configuration</p></li>
Expand Down
12 changes: 6 additions & 6 deletions build/html/get-started-with-ezblock2.0/remote-control.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@

<div class="section" id="remote-control">
<h1>Remote Control<a class="headerlink" href="#remote-control" title="Permalink to this headline"></a></h1>
<p><img alt="a" src="get-started-with-ezblock2.0\./img/ezblock2.0-gettingstart7.png" />
<img alt="a" src="get-started-with-ezblock2.0\./img/ezblock2.0-gettingstart8.png" />
<img alt="a" src="get-started-with-ezblock2.0\./img/ezblock2.0-gettingstart9.png" />
<img alt="a" src="get-started-with-ezblock2.0\./img/ezblock2.0-gettingstart10.png" />
<img alt="a" src="get-started-with-ezblock2.0\./img/ezblock2.0-gettingstart11.png" />
<img alt="a" src="get-started-with-ezblock2.0\./img/ezblock2.0-gettingstart12.png" /></p>
<p><img alt="a" src="../_images/ezblock2.0-gettingstart7.png" />
<img alt="a" src="../_images/ezblock2.0-gettingstart8.png" />
<img alt="a" src="../_images/ezblock2.0-gettingstart9.png" />
<img alt="a" src="../_images/ezblock2.0-gettingstart10.png" />
<img alt="a" src="../_images/ezblock2.0-gettingstart11.png" />
<img alt="a" src="../_images/ezblock2.0-gettingstart12.png" /></p>
</div>


Expand Down
Binary file modified build/html/objects.inv
Binary file not shown.

0 comments on commit ad155bb

Please sign in to comment.