From f16ca1229b020beb4e91d7e16791193a6cb0c679 Mon Sep 17 00:00:00 2001 From: samlcy1997 Date: Wed, 27 Oct 2021 18:59:38 +0800 Subject: [PATCH] update --- docs/Sensors_and_actuators/Light_sensor.md | 2 +- docs/smartcity/2_IOTbit.md | 22 +++++++++++----------- docs/smartcity/case09.md | 2 +- docs/smartcity/chapter3.md | 2 +- docs/smartcity/chapter4.md | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/Sensors_and_actuators/Light_sensor.md b/docs/Sensors_and_actuators/Light_sensor.md index 295a3912..31b8ef1e 100644 --- a/docs/Sensors_and_actuators/Light_sensor.md +++ b/docs/Sensors_and_actuators/Light_sensor.md @@ -19,7 +19,7 @@ When the Illumination is decrease, the resistance of resistor will increase.
|Buzzer|Passive Buzzer(Musical)|| |Wireless Module|ESP8266
ESP32
Bluetooth|Operate under UART protocol| |OLED Module|128*64 resolution OLED
Screen SSD1306|Operate under I2C protocol| -|Mirco:bit lead out|13 I/O Pins
(13 Digital & AnalogOut Pins)
(6 AnalogIn Pins)|Reserved Pins:
Wireless module:P8,P16
4-Pins module:P12,P13| +|Micro:bit lead out|13 I/O Pins
(13 Digital & AnalogOut Pins)
(6 AnalogIn Pins)|Reserved Pins:
Wireless module:P8,P16
4-Pins module:P12,P13| |I2C Pins|P19,P20|3 available ports,
1 port reserved for OLED| |ESP lead out|3 Pins for servo control(S1,S2,S3)|Control by ESP chip| @@ -86,7 +86,7 @@ Please open the image in the new tab for full size Type - Mirco:bit + Micro:bit IoT:bit Extra Port @@ -221,7 +221,7 @@ Please open the image in the new tab for full size ![pic](images/2_IOT/iot_image02.jpg) -1. Mirco:bit edge connecter +1. Micro:bit edge connecter 2. USB Port 3. Power Switch 4. 3.7V Lithium battery Port [XH2.54] @@ -241,13 +241,13 @@ Please open the image in the new tab for full size ## Detail Hardware Description -

Mirco:bit edge connecter


+

Micro:bit edge connecter


![pic](images/2_IOT/iot_image04.png)

Provide the socket for the Micro:bit to install. Follow the instruction icon right about that to install the Micro:bit to the expansion board.

Power port(USB, Battery, DC) & Switch


![pic](images/2_IOT/iot_image05.png) -

Provide three different type of methods to power on the expansion board and Mirco:bit. User can either choose common 5V USB power, or two different port which connect to 3.7V ~ 6V battery box. +

Provide three different type of methods to power on the expansion board and Micro:bit. User can either choose common 5V USB power, or two different port which connect to 3.7V ~ 6V battery box.

OLED Module

@@ -256,7 +256,7 @@ Please open the image in the new tab for full size

Wireless Module


![pic](images/2_IOT/iot_image07.png) -

The Wireless Module provide the Core function of the expansion board. Though different modules install on the socket, Mirco:bit gain the correspond connectivity ability. User may install ESP32, ESP8266, Bluetooth to implement various application project, make use of the IoT resource. +

The Wireless Module provide the Core function of the expansion board. Though different modules install on the socket, Micro:bit gain the correspond connectivity ability. User may install ESP32, ESP8266, Bluetooth to implement various application project, make use of the IoT resource.

ESP Servo port


![pic](images/2_IOT/iot_image08.png) @@ -264,7 +264,7 @@ Please open the image in the new tab for full size

Micro:bit lead out Pins


![pic](images/2_IOT/iot_image09.png) -

The Lead Out from the Mirco:bit I/O pins, provide great expansion feature for the Mirco:bit , user can connect up to 13 different sensor/actuator at the same time. Each independent GVS socket make the connection become more connivance. +

The Lead Out from the Micro:bit I/O pins, provide great expansion feature for the Micro:bit , user can connect up to 13 different sensor/actuator at the same time. Each independent GVS socket make the connection become more connivance.

Buzzer & Switch


![pic](images/2_IOT/iot_image10.png) @@ -287,20 +287,20 @@ Please open the image in the new tab for full size

MakeCode editor

-The MakeCode editor is the official cross-platform editor designed for BBC Mirco:bit, it is available on Web Browser, Mobile and tablets Apps. The Colorful coding block is familiar to who previously used Scratch, providing a simple and clear way to programming on the Micro:bit.

+The MakeCode editor is the official cross-platform editor designed for BBC Micro:bit, it is available on Web Browser, Mobile and tablets Apps. The Colorful coding block is familiar to who previously used Scratch, providing a simple and clear way to programming on the Micro:bit.

The editor offer a text-based mode for user to programming using JavaScript rather than drag the blocks
[MakeCode](https://makecode.microbit.org/#editor) ![auto_fit](images/2_IOT/iot_image13.png)

Python editor

-Python is one of the most famous programming language, widely used in school and industry. Micro:bit provided an online python editor for user to study and exercise python on Micro:bit. User just need to connect Mirco:bit with USB and click the Flash button, the compile and upload progress will be finish automatically.
+Python is one of the most famous programming language, widely used in school and industry. Micro:bit provided an online python editor for user to study and exercise python on Micro:bit. User just need to connect Micro:bit with USB and click the Flash button, the compile and upload progress will be finish automatically.
[Python editor](https://python.microbit.org/v/2.0) ![auto_fit](images/2_IOT/iot_image14.png) ## Quick Start -

1.Plug the Mirco:bit(with Program) into the the slot

+

1.Plug the Micro:bit(with Program) into the the slot

>![auto_fit](images/2_IOT/iot_MBsolt.gif)

diff --git a/docs/smartcity/case09.md b/docs/smartcity/case09.md index 322935c9..43d37edf 100644 --- a/docs/smartcity/case09.md +++ b/docs/smartcity/case09.md @@ -12,7 +12,7 @@ Use app inventor to create an APP to control the door of the house.


What is app inventor?

-App Inventor allows user to develop their own app for Android phones by simple programming and design work.

+App Inventor allows user to develop their own app for Android phones or IOS device(iphone, ipad) by simple programming and design work.

Smart House door operation

When the micro:bit receives the signal “opendoor” from the app, the 180o servo will turn for 180o to open the door. When the micro:bit receives the signal “closedoor” from the app, the 180o servo will turn back 180o to close the door.

![auto_fit](images/Case9/Concept-diagram-Case9.png)

diff --git a/docs/smartcity/chapter3.md b/docs/smartcity/chapter3.md index 2e18cb6e..e349656f 100644 --- a/docs/smartcity/chapter3.md +++ b/docs/smartcity/chapter3.md @@ -2,7 +2,7 @@ ## Introduction -App inventor 2 is a blocks-based programming tool, which help beginners to build fully functional app in Android device. The interface is graphical base and support drag and drop operations. It consists of different components, such as button, slider, date pickers, image, camera, sensors including Accelerometer and connectivity to web, etc. The app can be exported or published to Play store for our daily life.

+App inventor 2 is a blocks-based programming tool, which help beginners to build fully functional app in Android or IOS device. The interface is graphical base and support drag and drop operations. It consists of different components, such as button, slider, date pickers, image, camera, sensors including Accelerometer and connectivity to web, etc. The app can be exported or published to Play store for our daily life.

![auto_fit](images/Ch3/Ch3_des1.png)

For creating IoT application, you can use App Inventor 2 to create web connection with micro:bit. In WAN control, after micro:bit is connected to internet, it keep listening and execute customized operation when WAN command is received. The customized operation could be Pin On/off, such as “open/close LED”, or set value such as “set the light intensity” and “set current time”.

diff --git a/docs/smartcity/chapter4.md b/docs/smartcity/chapter4.md index 2c67ec3b..7eb279b5 100644 --- a/docs/smartcity/chapter4.md +++ b/docs/smartcity/chapter4.md @@ -97,7 +97,7 @@ You could also download the program from the following website:


Goal:

-We need to setup the IFTTT Applet to control the Mircobit +We need to setup the IFTTT Applet to control the Micro:bit Step 1: Create or login to IFTTT account

@@ -130,7 +130,7 @@ On IFTTT configuration, set the below. We can set the rule on the IFTTT, if some 1.Search “micro:bit” and you will see “Smarthon IoT(micro:bit)”

![auto_fit](images/Ch4/Ch4_2_ifttt1_6.png)

-2.Finish the mirco:bit setting. +2.Finish the Micro:bit setting. * Choose action "Control Command" * Input your `Device ID` (e.g. 0xa3240ac45916) and `control command` (e.g. light_on). Then click "Create action" ![auto_fit](images/Ch4/Ch4_2_ifttt1_7.png)