351
www.keyestudio.com
Project 16:Multiple Functions
1. Project Description: :
The final lesson is the combination of all modules and sensors. It is an
analog smart home.
2.Preparation:
A micro:bit and the smart home model.
Interface the micro:bit with a computer with a micro USB cable.
Add the libraries:
https://github.com/keyestudio2019/ks_IoT
3. Test Code:
Summary of Contents for KS4028
Page 20: ...20 www keyestudio com...
Page 25: ...25 www keyestudio com You can also directly drag the hex file onto the MICROBIT E disk...
Page 31: ...31 www keyestudio com Click Next...
Page 32: ...32 www keyestudio com Click another Next...
Page 35: ...35 www keyestudio com...
Page 38: ...38 www keyestudio com Or click Advanced to select Extensions as shown below...
Page 41: ...41 www keyestudio com...
Page 42: ...42 www keyestudio com...
Page 44: ...44 www keyestudio com Click the Explorer on the left side...
Page 48: ...48 www keyestudio com Click Import File...
Page 55: ...55 www keyestudio com 6 Install the Smart Home Part 1 Component s Needed...
Page 56: ...56 www keyestudio com Installation Diagram Prototype Part 2...
Page 57: ...57 www keyestudio com Component s Needed Installation Diagram...
Page 58: ...58 www keyestudio com Prototype Part 3 Component s Needed...
Page 59: ...59 www keyestudio com Installation Diagram...
Page 63: ...63 www keyestudio com Prototype Part 5 Component s Needed...
Page 64: ...64 www keyestudio com Installation Diagram Prototype...
Page 65: ...65 www keyestudio com Part 6 Component s Needed peel the sticker off the Acrylic board first...
Page 67: ...67 www keyestudio com Prototype Part 7...
Page 68: ...68 www keyestudio com Component s Needed Installation Diagram...
Page 69: ...69 www keyestudio com Prototype Part 8...
Page 70: ...70 www keyestudio com Component s Needed Installation Diagram...
Page 71: ...71 www keyestudio com Prototype Part 9 Component s Needed...
Page 72: ...72 www keyestudio com Installation Diagram Prototype Part 10...
Page 73: ...73 www keyestudio com Component s Needed...
Page 75: ...75 www keyestudio com Component s Needed Installation Diagram...
Page 76: ...76 www keyestudio com Prototype Part 12 Component s Needed...
Page 77: ...77 www keyestudio com Installation Diagram Prototype Part 13...
Page 78: ...78 www keyestudio com Component s Needed Installation Diagram...
Page 79: ...79 www keyestudio com Prototype Part 14 Component s Needed...
Page 80: ...80 www keyestudio com Installation Diagram Prototype Part 15...
Page 81: ...81 www keyestudio com Component s Needed Installation Diagram...
Page 82: ...82 www keyestudio com Prototype Part 16 Component s Needed...
Page 83: ...83 www keyestudio com Installation Diagram Prototype Part 17...
Page 84: ...84 www keyestudio com Component Needed...
Page 85: ...85 www keyestudio com Installation Diagram Prototype...
Page 86: ...86 www keyestudio com Part 18 Component s Needed...
Page 87: ...87 www keyestudio com Installation Diagram Prototype Part 19...
Page 88: ...88 www keyestudio com Component s Needed peel the sticker off the Acrylic board first...
Page 89: ...89 www keyestudio com Installation Diagram...
Page 90: ...90 www keyestudio com Prototype Part 20 Component s Needed...
Page 91: ...91 www keyestudio com Installation Diagram...
Page 92: ...92 www keyestudio com Prototype Part 21...
Page 93: ...93 www keyestudio com Component s Needed...
Page 94: ...94 www keyestudio com Installation Diagram...
Page 95: ...95 www keyestudio com Prototype Start Wiring...
Page 97: ...97 www keyestudio com The wiring of the yellow LED The wiring of the RGB module...
Page 98: ...98 www keyestudio com The wiring of the PIR motion sensor The wiring of the 1602LCD...
Page 102: ...102 www keyestudio com The wiring of the solar panel...
Page 105: ...105 www keyestudio com Component s Needed Installation Diagram...
Page 106: ...106 www keyestudio com Prototype Installation Diagram...
Page 107: ...107 www keyestudio com Prototype...
Page 108: ...108 www keyestudio com Install Micro bit main board Prototype...
Page 116: ...116 www keyestudio com Make combinations of these blocks...
Page 120: ...120 www keyestudio com Make combinations of these blocks...
Page 126: ...126 www keyestudio com...
Page 127: ...127 www keyestudio com Make combinations of these blocks...
Page 131: ...131 www keyestudio com...
Page 132: ...132 www keyestudio com Make combinations of these blocks...
Page 136: ...136 www keyestudio com temperature in the current environment as shown in the figures below...
Page 137: ...137 www keyestudio com...
Page 138: ...138 www keyestudio com...
Page 150: ...150 www keyestudio com...
Page 151: ...151 www keyestudio com...
Page 152: ...152 www keyestudio com Make combinations of these blocks...
Page 153: ...153 www keyestudio com...
Page 154: ...154 www keyestudio com...
Page 158: ...158 www keyestudio com Make combinations of these blocks 5 Test Result 1...
Page 162: ...162 www keyestudio com Command blocks...
Page 163: ...163 www keyestudio com Make combinations of these blocks...
Page 167: ...167 www keyestudio com Project 8 Light Brightness Detection...
Page 170: ...170 www keyestudio com...
Page 171: ...171 www keyestudio com Make combinations of these blocks...
Page 178: ...178 www keyestudio com Make combinations of these blocks...
Page 181: ...181 www keyestudio com Make combinations of these blocks...
Page 182: ...182 www keyestudio com...
Page 183: ...183 www keyestudio com...
Page 184: ...184 www keyestudio com...
Page 185: ...185 www keyestudio com...
Page 186: ...186 www keyestudio com...
Page 187: ...187 www keyestudio com The musical score of Ode to Joy is attached below...
Page 191: ...191 www keyestudio com...
Page 192: ...192 www keyestudio com Make combinations of these blocks...
Page 197: ...197 www keyestudio com...
Page 198: ...198 www keyestudio com Make combinations of these blocks...
Page 208: ...208 www keyestudio com...
Page 209: ...209 www keyestudio com...
Page 210: ...210 www keyestudio com Make combinations of these blocks...
Page 211: ...211 www keyestudio com...
Page 214: ...214 www keyestudio com...
Page 215: ...215 www keyestudio com...
Page 216: ...216 www keyestudio com...
Page 217: ...217 www keyestudio com Make combinations of these blocks...
Page 218: ...218 www keyestudio com...
Page 223: ...223 www keyestudio com...
Page 225: ...225 www keyestudio com Secondly click Pair a new micro bit...
Page 227: ...227 www keyestudio com...
Page 230: ...230 www keyestudio com...
Page 231: ...231 www keyestudio com...
Page 233: ...233 www keyestudio com...
Page 234: ...234 www keyestudio com...
Page 235: ...235 www keyestudio com Name the project as 1 and click to save it...
Page 237: ...237 www keyestudio com...
Page 238: ...238 www keyestudio com...
Page 251: ...251 www keyestudio com...
Page 261: ...261 www keyestudio com...
Page 262: ...262 www keyestudio com Make combinations of these blocks...
Page 263: ...263 www keyestudio com...
Page 264: ...264 www keyestudio com...
Page 267: ...267 www keyestudio com...
Page 268: ...268 www keyestudio com Make combinations of these blocks...
Page 274: ...274 www keyestudio com...
Page 277: ...277 www keyestudio com...
Page 279: ...279 www keyestudio com...
Page 295: ...295 www keyestudio com Make combinations of these blocks...
Page 307: ...307 www keyestudio com...
Page 313: ...313 www keyestudio com...
Page 319: ...319 www keyestudio com...
Page 327: ...327 www keyestudio com...
Page 342: ...342 www keyestudio com...
Page 346: ...346 www keyestudio com as shown below...
Page 348: ...348 www keyestudio com Command blocks can be found on the right as shown below...
Page 355: ...355 www keyestudio com Add the BT library file as shown below 3 Test Code...
Page 361: ...361 www keyestudio com 9 Resources https fs keyestudio com KS4027 4028...