Details

The Official BBC micro:bit User Guide


The Official BBC micro:bit User Guide


1. Aufl.

von: Gareth Halfacree

16,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 04.10.2017
ISBN/EAN: 9781119413769
Sprache: englisch
Anzahl Seiten: 320

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<p><b>The go-to guide to getting started with the BBC micro:bit and exploring all of its amazing capabilities.</b></p> <p>The BBC micro:bit is a pocket-sized electronic development platform built with education in mind. It was developed by the BBC in partnership with major tech companies, communities, and educational organizations to provide kids with a fun, easy, inexpensive way to develop their digital skills. With it, kids (and grownups) can learn basic programming and coding while having fun making virtual pets, developing games, and a whole lot more.</p> <p>Written by internationally bestselling tech author Gareth Halfacree and endorsed by the Micro:bit Foundation, <i>The Official BBC micro:bit User Guide</i> contains what you need to know to get up and running fast with the BBC micro:bit. Learn everything from taking your first steps with the BBC micro:bit to writing your own programs. You'll also learn how to expand its capabilities with add-ons through easy-to-follow, step-by-step instructions.</p> <ul> <li>Set up your BBC micro:bit and develop your digital skills</li> <li>Write code in JavaScript Blocks, JavaScript, and Python</li> <li>Discover the BBC micro:bit’s built-in sensors</li> <li>Connect the BBC micro:bit to a Raspberry Pi to extend its capabilities</li> <li>Build your own circuits and create hardware</li> </ul> <p><i>The Official BBC micro:bit User Guide</i> is your go-to source for learning all the secrets of the BBC micro:bit. Whether you're just beginning or have some experience, this book allows you to dive right in and experience everything the BBC micro:bit has to offer.</p>
<p>Foreword xi</p> <p>Introduction xiii</p> <p><b>Part I</b></p> <p><b>Chapter 1 Meet the BBC micro:bit 3</b></p> <p>A Tour of the Board 3</p> <p>Breaking It Down 5</p> <p>Display 6</p> <p>Buttons 7</p> <p>Processor 8</p> <p>Radio 9</p> <p>Accelerometer 10</p> <p>Compass 11</p> <p>Input-Output Pins 12</p> <p>Micro-USB Port 13</p> <p>Battery Connector 14</p> <p><b>Chapter 2 Getting Started with the BBC micro:bit 17</b></p> <p>Handling the BBC micro:bit 17</p> <p>Powering the BBC micro:bit 18</p> <p>USB Power 18</p> <p>Battery Power 20</p> <p>Greetings from the BBC micro:bit 23</p> <p>Signs of Life 24</p> <p>Testing the Buttons 24</p> <p>Motion Gaming 24</p> <p>Get Coding 25</p> <p>Resetting the BBC micro:bit 25</p> <p><b>Chapter 3 Programming the BBC micro:bit 27</b></p> <p>USB Connectivity 27</p> <p>Drag-and-Drop 29</p> <p>Automatic Flashing 31</p> <p>The Code Editor 32</p> <p>Downloading Your Program 33</p> <p>About Flash Memory 38</p> <p><b>Part II</b></p> <p><b>Chapter 4 Programming Languages 41</b></p> <p>About Programming Languages 41</p> <p>The Three Main BBC micro:bit Languages 42</p> <p>JavaScript Blocks 43</p> <p>JavaScript 44</p> <p>Python 45</p> <p>Comparing Programming Languages 46</p> <p>Choosing a Programming Language 48</p> <p>Other Programming Languages 49</p> <p><b>Chapter 5 JavaScript Blocks 51</b></p> <p>Introducing the JavaScript Blocks Editor 51</p> <p>Program 1: ‘Hello, World!’ 54</p> <p>Loops 57</p> <p>Program 2: Button Inputs 58</p> <p>Multiple Buttons 60</p> <p>Program 3: Touch Inputs 61</p> <p>Variables 62</p> <p>Program 4: The Temperature Sensor 65</p> <p>Formatting the Output 67</p> <p>Program 5: The Compass Sensor 67</p> <p>Program 6: The Accelerometer Sensor 70</p> <p>Delays 73</p> <p>Reading Raw Accelerometer Data 74</p> <p>Program 7: The Fruit Catcher Game 76</p> <p>The Setup 77</p> <p>The Main Program Loop 78</p> <p>Conditional Loops 80</p> <p>Conditional Statements 82</p> <p>The Control Events 84</p> <p>Further Steps 86</p> <p><b>Chapter 6 JavaScript 87</b></p> <p>Introducing the JavaScript Editor 88</p> <p>Program 1: ‘Hello, World!’ 90</p> <p>Loops 93</p> <p>Program 2: Button Inputs 94</p> <p>Multiple Buttons 97</p> <p>Program 3: Touch Inputs 98</p> <p>Variables 99</p> <p>Program 4: The Temperature Sensor 102</p> <p>Formatting the Output 104</p> <p>Program 5: The Compass Sensor 104</p> <p>Program 6: The Accelerometer Sensor 107</p> <p>Delays 109</p> <p>Reading Raw Accelerometer Data 110</p> <p>Program 7: The Fruit Catcher Game 112</p> <p>The Setup 113</p> <p>The Main Program Loop 115</p> <p>The Conditional Loops 116</p> <p>The Conditional Statements 117</p> <p>The Control Events 120</p> <p>Further Steps 123</p> <p><b>Chapter 7 Python 125</b></p> <p>Introducing the Python Editor 126</p> <p>Program 1: ‘Hello, World!’ 128</p> <p>Loops 132</p> <p>Program 2: Button Inputs 133</p> <p>Multiple Buttons 136</p> <p>Program 3: Touch Inputs 137</p> <p>Variables 138</p> <p>Program 4: The Temperature Sensor 141</p> <p>Formatting the Output 142</p> <p>Program 5: The Compass Sensor 143</p> <p>Program 6: The Accelerometer Sensor 145</p> <p>Delays 147</p> <p>Reading Raw Accelerometer Data 148</p> <p>Program 7: The Fruit Catcher Game 150</p> <p>The Setup 150</p> <p>The Main Program Loop 153</p> <p>Conditional Loops 154</p> <p>Conditional Statements 155</p> <p>Drawing the Sprites 156</p> <p>Finishing the Program 157</p> <p>Further Steps 160</p> <p><b>Part III</b></p> <p><b>Chapter 8 The Wireless BBC micro:bit 163</b></p> <p>The BBC micro:bit Radio 163</p> <p>Program 1: One-to-One Communication 164</p> <p>Program 2: One-to-Many Communication 167</p> <p>Program 3: Radio Groups 169</p> <p>Testing the Group Feature 171</p> <p>Using the BBC micro:bit with a Smartphone or Tablet 173</p> <p><b>Chapter 9 The BBC micro:bit and the Raspberry Pi 175</b></p> <p>About the Raspberry Pi 176</p> <p>Connecting the Raspberry Pi to the BBC micro:bit 177</p> <p>Reading from the BBC micro:bit 180</p> <p>Using the BBC micro:bit Display 186</p> <p>Practical Example: A CPU Monitor 189</p> <p><b>Chapter 10 Building Circuits 193</b></p> <p>Electronic Equipment 194</p> <p>The Input-Output Pins 196</p> <p>The Large Pins 197</p> <p>The Small Pins 199</p> <p>Serial Peripheral Interface (SPI) 201</p> <p>Inter-Integrated Circuit (I2C) 201</p> <p>Universal Asynchronous Receiver/Transmitter (UART) 201</p> <p>Your First Circuits 202</p> <p>Reading from a Button Input 202</p> <p>Reading Resistor Colour Codes 205</p> <p>Writing to an LED Output 207</p> <p>Fading an LED via PWM 211</p> <p>Reading an Analogue Input 213</p> <p><b>Chapter 11 Extending the BBC micro:bit 217</b></p> <p>Extending via Breakout Boards 217</p> <p>Kitronik Edge Connector Breakout Board 218</p> <p>ScienceScope Micro:bit Breakout Board 219</p> <p>Proto-Pic Bread:Bit 220</p> <p>Proto-Pic Exhi:Bit 220</p> <p>Robotics and the BBC micro:bit 222</p> <p>Kitronik Line-Following Buggy 222</p> <p>Kitronik Motor Driver Board 223</p> <p>Technology Will Save Us Micro:Bot 224</p> <p>4tronix Bit:Bot 225</p> <p>BinaryBots 226</p> <p>Other BBC micro:bit Add-Ons 227</p> <p>Kitronik Mi:Power 227</p> <p>Proto-Pic Micro:Pixel Board 228</p> <p>Proto-Pic Simon:Says Board 229</p> <p>4tronix Bit:2:Pi Board 230</p> <p>Kitronik Mi:Pro Protector and Mi:Power Cases 231</p> <p><b>Chapter 12 The Wearable BBC micro:bit 233</b></p> <p>Advantages of the Wearable BBC micro:bit 234</p> <p>Conductive Thread 235</p> <p>Using Conductive Thread 237</p> <p>The Rain-Sensing Hat 241</p> <p>Building the Hat 242</p> <p>Mounting the BBC micro:bit 244</p> <p>The Rain-Sensing Program 245</p> <p>Battery Power 246</p> <p><b>Chapter 13 Additional Resources 249</b></p> <p>The Micro:bit Educational Foundation 249</p> <p>Official Teaching Resources 251</p> <p>Third-Party Teaching Resources 252</p> <p>The Institution of Engineering and Technology 252</p> <p>Computing At School 253</p> <p>Micro:bit for Primary Schools 253</p> <p>TES Magazine 255</p> <p>Code Clubs 256</p> <p><b>Part IV</b></p> <p>Appendix A JavaScript Blocks Recipes 259</p> <p>Appendix B JavaScript Recipes 267</p> <p>Appendix C Python Recipes 275</p> <p>Appendix D Pin-Out Listing 285</p> <p>Index 289</p>
<p><b>GARETH HALFACREE</b> is the author of the <i>Raspberry Pi User Guide</i> and an expert in educational and embedded computing. A noted technology journalist and long-time tech author, Gareth also has an extensive background in computing education.
<p><b>LEARN YOUR WAY AROUND THE BBC micro:bit TO START BUILDING AND CODING TODAY</b> <p>With comprehensive coverage and easy-to-follow instructions, <i>The Official BBC micro:bit User Guide</i> contains everything you need to know to start building right away. No coding experience? No problem. You'll begin with basic concepts and learn how the BBC micro:bit works. Simple Python and JavaScript commands demonstrate fundamental coding concepts, while step-by-step instructions walk you through the process using simple, everyday language. More experienced programmers can dive right in to writing their own code and customizing their BBC micro:bit with add-ons. The BBC micro:bit is fully compatible with the Raspberry Pi, opening the door to a whole world of possibilities at your fingertips. <p>The BBC micro:bit was created by the BBC in partnership with major tech companies, communities, and educational organizations to provide kids with a fun, practical, inexpensive way to learn programming. The board's simplicity and accessibility belie its capabilities, and its broad compatibility makes it an exciting entry point to the world of electronics. Connect the BBC micro:bit to your computer, design your own simple software or download ready-made code, build your own hardware and see where the BBC micro:bit takes you—the digital world is waiting. <p>Designed to help beginning programmers of any age have fun while developing valuable skills, <i>The Official BBC micro:bit User Guide</i> contains everything you need to know about this pocket-sized marvel: <ul> <li>Learn how the BBC micro:bit works and what it can do</li> <li>Master basic programming concepts in JavaScript Blocks (MakeCode), and Python<sup>®</sup></li> <li>Communicate wirelessly between BBC micro:bits</li> <li>Build your own wearable BBC micro:bit</li> <li>Build circuits and add extensions</li> <li>Integrate the BBC micro:bit with the Raspberry Pi<sup>®</sup></li> <li>Use provided code recipes to get started right away</li> </ul> <p>Find circuit diagrams, code downloads, and more at the companion website: <b>www.wiley.com/go/bbcmicrobituserguide.</b>

Diese Produkte könnten Sie auch interessieren: