background image

 

 

Mi:Node Kit 

使用

手冊

 

Make c

reative ‘things’

 with micro:bit 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Revision 

Date 

Description 

V0.1.0 

March 2017 by Paul  Initial version 

 

 

 

Summary of Contents for Mi:Node

Page 1: ...Mi Node Kit Make creative things with micro bit Revision Date Description V0 1 0 March 2017 by Paul Initial version...

Page 2: ...library Steps Work without our library Modules Usage API Reference Light Sensor Block API Get the light level Parameters Light Sensor event Parameters Example Show the light level Light level change e...

Page 3: ...n to control the motor s speed Speaker Module Example Let your speaker make a sound PIR Module Block API Check the PIR status Parameters PIR event Parameters Example Detecting the movement RGB LED Blo...

Page 4: ...Show the switch module s status Relay Module Block API Set relay status open close Parameters Example Control the relay by button Appendix Microsoft PXT Support...

Page 5: ...need for soldering plug then use the construction of the working circuit can be done within one minute Lego 10 Features It is modular safe and ready to use just like Lego 10 sensor modules include en...

Page 6: ...e between the micro bit and sensor modules Sensor Module 10 Light Sensor 1 Analog Input It can be used to detect the intensity of light in the environment Temperature and Humidity Sensor 1 Analog Inpu...

Page 7: ...witch ON OFF Relay 1 Digital Output It is an digital switch can be used to control high votage elecrical devices maximum 250V Cables Universal 4 Pin Buckled Cable 8 NA 20cm cable x 2 10cm cable x 6 Mi...

Page 8: ...It s a 2 0mm 1x4 connector With signals include 1 VCC 1GND 2 analog digital signal An E brick connector have 4 pins Pin ID Pin Name Description Pin 1 Signal 1 Connect to a micro bit pin with analog in...

Page 9: ...r Digital IO Type Pin ID Pin Name Remark Pin 1 D1 Connect to a micro bit pin with digital io function Pin 2 D2 Same to D1 but most sensor module may not use the D2 pin E brick Connector IIC Type IIC I...

Page 10: ...or Name There is a convention in the connector name A connector name can be indicated the mapped micro bit signal name For example Connector D12 means The Signal 1 is remapped to micro bit pin 12 and...

Page 11: ...as a digital io connector D12 D13 D14 D15 can be only used as digital IO connector 3 IIC can be only used as IIC connector How to use it Just plug then use it That s easy Programming with the kit As...

Page 12: ...the technical details of the modules For example The RGB LED is based on the IIC bus We just need to call the library function to control the color and brightness We don t care the IIC bus itself Wit...

Page 13: ...pin12 You can also use the micro bit pin library to control the sensor modules directly In this situation We can get the micro bit pin ID by the E brick connector ID For example We connect a sensor mo...

Page 14: ...an be used to detect the intensity of light in the environment We divide the brightness into 5 levels This module can only be pluged into Analog connector A0 A1 and A2 Module Connect Type Available Co...

Page 15: ...alog connector A0 A1 and A2 Light Sensor event MCU Configure the MCU check the light level periodically and then execute the associated code block whenever the light level changes function onLightSens...

Page 16: ...ere will show a string on the screen DHT11 Temperature and Humidity Sensor This DHT11 Temperature Humidity Sensor features a temperature humidity sensor complex with a calibrated digital signal output...

Page 17: ...ectors DHT11 Digital IO D12 D13 D14 D15 TODO Need hardware engineers to confirm this module s specific parameters Module Measurement Range Humidity Accuracy Temperature Accuracy DHT11 20 90 RH 0 50 5...

Page 18: ...emperature you can choose Celsius or Fahrenheit Get humidity Get current humidity function DHTGetHumidity connName ConnName number Parameters connName is the connector s name this module can be pluged...

Page 19: ...ton to get the temperature and humidity A B A B This example show you how to use the button A and B to get the temperature and humidity When you press the button A the screen will show the current tem...

Page 20: ...detect the sound strength of the environment We divide the sound into 5 levels you can use our block to get the current level This module can only be plugged into analog connector A0 A1 and A2 Module...

Page 21: ...to analog connector A0 A1 and A2 Sound Sensor event mcu Configure the mcu check the sound level periodically and then execute the associated code block whenever the sound level change function onMICEv...

Page 22: ...changes a string will show on the screen Rotary Module 0 300 Rotary 0 Vcc A0 A1 A2 The Rotary can produce analog output between 0 and Vcc by adjust the angular range from 0 300 This module can only b...

Page 23: ...ame is the analog connector s name this module can only be pluged into analog connector A0 A1 and A2 Light Sensor event mcu AD AD Configure the mcu check the rotary AD value periodically and then exec...

Page 24: ...on the LED screen Rotary control the LED show 50 When the percentage is smaller than 50 the screen will show nothing otherwise there will be a smile face on the screen Rotary change event When you rot...

Page 25: ...n Module The mini fan module contains a DC motor and orbit fan we can control the speed of the motor according to different situations Module Connect Type Available Connectors Mini Fan Module Analog A...

Page 26: ...he analog connector s name this module can only be pluged into analog connector and digital connector speed is the speed of the motor The adjustment range is from 0 to 100 which 0 means the motor is s...

Page 27: ...Speaker Module The Speaker can be used to make a sound by using the Music blocks NOTE As the default music is speaking through pin P0 so we need to connect our speaker module to connector A0...

Page 28: ...Module Connect Type Available Connectors Speaker Module Analog A0 Example Let your speaker make a sound The speaker will circle the sound of the three beat...

Page 29: ...n Sensors allows user to sense motion usually human movement in its range When this module detects that there is an object moving the PIR signal line will jump from the low level to the high level and...

Page 30: ...e Digital IO D12 D13 D14 D15 Block API Check the PIR status pir Check whether the switch is triggered or not when the pir module is triggered the status signal which was detected will be in high level...

Page 31: ...never the pin in rising edge which means the PIR has detected movement function onPIREvent connName ConnName body void void Parameters connName is the connector s name this module can be pluged into b...

Page 32: ...colorful LED The color and brightness can be programable And the color and brightness is controled by the gray value of red green and blue Module Connect Type Available Connectors RGB LED Digital IO D...

Page 33: ...That is red green blue yellow pink cyan and white you can choose one color from the given color to light up you RGB module Set a specific RGB color by setting rgb gray value RGB You can change the co...

Page 34: ...RGB B When you press button A the RGB module will show red if you press button B the color will be green Set specific color A B This example show you how to set a specific color There are two differe...

Page 35: ...Switch Module The switch module can used to switch ON OFF...

Page 36: ...connName is the connector s name this module can be pluged into both analog connector and digital connector Switch event Configure the specified pin for digital input and then execute the associated c...

Page 37: ...will show a smile face otherwise it will show nothing Show the switch module s status switch LED LED In this example we use the switch event to show the switch s status When the switch is opened the l...

Page 38: ...elay Module 250V The relay is an electrically operated switch It is an digital switch can be used to control high votage electrical devices such as some home appliances maximum 250V AC 110V 220V Dange...

Page 39: ...n you switch the relay ON OFF You do not have to connect to a real appliance Module Connect Type Available Connectors Relay Module Digital IO D12 D13 D14 D15 TODO HW Team Need hardware engineers to ad...

Page 40: ...e status of the relay open or close Example Control the relay by button A B Button A and B control the open and close of the relay module Appendix Microsoft PXT Home https pxt microbit org Getting Sta...

Page 41: ...Website http minode embest tech com Github repo http github com minodekit...

Reviews: