Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
samlcy1997 committed Oct 27, 2021
1 parent f6c2786 commit f16ca12
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/Sensors_and_actuators/Light_sensor.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ When the Illumination is decrease, the resistance of resistor will increase. <BR
* Supply Voltage: 3.3V to 5V
* Interface: Analog
* Output Voltage Range: 1%~90% of supply Voltage
* Reading in the PXT(with Mirco:bit): 1~100(0.04V~3.3V)
* Reading in the PXT(with Micro:bit): 1~100(0.04V~3.3V)


## Pinout Diagram
Expand Down
22 changes: 11 additions & 11 deletions docs/smartcity/2_IOTbit.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ It is the most powerful Wi-Fi extension board for micro:bit in the STEM communit
* The Most powerful IoT chip ESP32 embedded for micro:bit
* Exchangeable wireless modular design (ESP8266, ESP32, BLE)
* Integrated OLED and Onboard buzzer embedded
* Extended I/O port x13, I2C port x2 from mirco:bit with GVS socket
* Extended I/O port x13, I2C port x2 from Micro:bit with GVS socket
* Extended Servo port x3 from ESP module
* Various types of power supply (USB, 3.7V lithium battery, 6V Normal battery)
* Extra Port: Crocodile Pin, Quick Access Port and 4-Pin Port for different usage
Expand All @@ -44,7 +44,7 @@ Hole diameter: 4mm<BR>
|Buzzer|Passive Buzzer(Musical)||
|Wireless Module|ESP8266<BR>ESP32<BR>Bluetooth|Operate under UART protocol|
|OLED Module|128*64 resolution OLED<BR> Screen SSD1306|Operate under I2C protocol|
|Mirco:bit lead out|13 I/O Pins<BR>(13 Digital & AnalogOut Pins)<BR>(6 AnalogIn Pins)|<B>Reserved Pins:</B><BR>Wireless module:P8,P16<BR>4-Pins module:P12,P13|
|Micro:bit lead out|13 I/O Pins<BR>(13 Digital & AnalogOut Pins)<BR>(6 AnalogIn Pins)|<B>Reserved Pins:</B><BR>Wireless module:P8,P16<BR>4-Pins module:P12,P13|
|I2C Pins|P19,P20|3 available ports,<BR>1 port reserved for OLED|
|ESP lead out|3 Pins for servo control(S1,S2,S3)|Control by ESP chip|

Expand Down Expand Up @@ -86,7 +86,7 @@ Please open the image in the new tab for full size
<tr>
<th class="tg-ux7d">Type</th>
<th class="tg-ux7d"></th>
<th class="tg-ux7d">Mirco:bit</th>
<th class="tg-ux7d">Micro:bit</th>
<th class="tg-ux7d">IoT:bit</th>
<th class="tg-ux7d">Extra Port</th>
</tr>
Expand Down Expand Up @@ -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]
Expand All @@ -241,13 +241,13 @@ Please open the image in the new tab for full size

## Detail Hardware Description

<H3>Mirco:bit edge connecter</H3><BR>
<H3>Micro:bit edge connecter</H3><BR>
![pic](images/2_IOT/iot_image04.png)
<P>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.

<H3>Power port(USB, Battery, DC) & Switch</H3><BR>
![pic](images/2_IOT/iot_image05.png)
<P>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.
<P>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.

<H3>OLED Module</H3>

Expand All @@ -256,15 +256,15 @@ Please open the image in the new tab for full size

<H3>Wireless Module</H3><BR>
![pic](images/2_IOT/iot_image07.png)
<P>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.
<P>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.

<H3>ESP Servo port</H3><BR>
![pic](images/2_IOT/iot_image08.png)
<P>When installed the ESP32 module, it provide extra 3 servo control port to connect the Servo motor. Compatible with general GVS 180/360 Servo motor (SG90/SG90S)

<H3>Micro:bit lead out Pins</H3><BR>
![pic](images/2_IOT/iot_image09.png)
<P>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.
<P>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.

<H3>Buzzer & Switch</H3><BR>
![pic](images/2_IOT/iot_image10.png)
Expand All @@ -287,20 +287,20 @@ Please open the image in the new tab for full size

<H3>MakeCode editor</H3>

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

<H3>Python editor</H3><P>
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. <BR>
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. <BR>
[Python editor](https://python.microbit.org/v/2.0)
![auto_fit](images/2_IOT/iot_image14.png)


## Quick Start

<H4>1.Plug the Mirco:bit(with Program) into the the slot</H4><P>
<H4>1.Plug the Micro:bit(with Program) into the the slot</H4><P>

>![auto_fit](images/2_IOT/iot_MBsolt.gif)<P>
Expand Down
2 changes: 1 addition & 1 deletion docs/smartcity/case09.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Use app inventor to create an APP to control the door of the house. <BR><P>
<HR>

<span id="subtitle">What is app inventor?</span><BR><P>
App Inventor allows user to develop their own app for Android phones by simple programming and design work.<BR><P>
App Inventor allows user to develop their own app for Android phones or IOS device(iphone, ipad) by simple programming and design work.<BR><P>
<span id="subtitle">Smart House door operation</span><BR><P>
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.<BR><P>
![auto_fit](images/Case9/Concept-diagram-Case9.png)<P>
Expand Down
2 changes: 1 addition & 1 deletion docs/smartcity/chapter3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.<BR><P>
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.<BR><P>

![auto_fit](images/Ch3/Ch3_des1.png)<P>
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”.<BR><P>
Expand Down
4 changes: 2 additions & 2 deletions docs/smartcity/chapter4.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ You could also download the program from the following website:<BR>
<HR>

<H3>Goal:</H3>
We need to setup the IFTTT Applet to control the Mircobit
We need to setup the IFTTT Applet to control the Micro:bit


<span id="subtitle" >Step 1: Create or login to IFTTT account</span><P>
Expand Down Expand Up @@ -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)”<P>
![auto_fit](images/Ch4/Ch4_2_ifttt1_6.png)<P>

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)<P>
Expand Down

0 comments on commit f16ca12

Please sign in to comment.