[{"data":1,"prerenderedAt":1292},["ShallowReactive",2],{"tutorial:\u002Flearn\u002Fpicobricks\u002Fblinking-led":3,"tutorial-steps:\u002Flearn\u002Fpicobricks\u002Fblinking-led":352,"glossary":567,"kit-\u002Flearn\u002Fpicobricks\u002Fblinking-led":908,"key-words-glossary":1123},{"id":4,"title":5,"body":6,"description":329,"draft":332,"duration":333,"extension":334,"image":335,"kit":336,"language":341,"level":342,"meta":343,"navigation":344,"path":345,"pdf":346,"platform":347,"seo":348,"stem":349,"youtube":350,"__hash__":351},"tutorials\u002Flearn\u002Fpicobricks\u002Fblinking-led\u002Findex.md","Blinking LED Project",{"type":7,"value":8,"toc":328},"minimark",[9],[10,11,12,60,66,73,107,207,228,250],"tutorial-steps",{},[13,14,16,28,40,43],"step",{"title":15},"Overview",[17,18,19,20,24,25,27],"p",{},"In computer programming, when learning a new coding language we typically create a ",[21,22,23],"strong",{},"Hello World"," project, which prints ",[21,26,23],{}," to the screen.",[17,29,30,31,33,34,39],{},"When working with robotics and physical computing, our ",[21,32,23],{}," project becomes a blinking ",[35,36,38],"g",{"slug":37},"led","LED"," (light-emitting diode).",[17,41,42],{},"Let's take a look at how we'd create this on the PicoBricks using the Brick IDE.",[44,45,48,53],"callout",{"color":46,"icon":47},"green","🎯",[17,49,50],{},[21,51,52],{},"What you'll learn",[54,55,56],"ul",{},[57,58,59],"li",{},"How to make an LED blink on and off",[13,61,63],{"title":62},"What you'll need",[64,65],"what-youll-need",{},[13,67,69],{"title":68},"Key words",[70,71],"key-words",{":terms":72},"led, forever-loop",[13,74,76,100],{"title":75},"Set up your PicoBricks",[77,78,79,90,93],"ol",{},[57,80,81,82,89],{},"Open your favourite web browser. We recommend either Google Chrome or Microsoft Edge. Type ",[83,84,88],"a",{"href":85,"rel":86},"http:\u002F\u002Fide.picobricks.com",[87],"nofollow","ide.picobricks.com"," into the address bar.",[57,91,92],{},"Connect the PicoBricks board to your computer using the USB cable.",[57,94,95,96,99],{},"Connect the PicoBricks board to the Brick IDE by selecting the ",[21,97,98],{},"Connection"," button at the top of the code area.",[17,101,102],{},[103,104],"img",{"alt":105,"src":106},"The PicoBricks Brick IDE coding environment","\u002Flearn\u002Fpicobricks\u002Fblinking-led\u002FCodingEnvironment.webp",[13,108,110,198,204],{"title":109},"Build the code",[77,111,112,124,136,152,171,185],{},[57,113,114,115,118,119,123],{},"Select ",[21,116,117],{},"Basic",". Select a ",[120,121,122],"code",{},"PicoBricks"," block and drop it in the code area.",[57,125,114,126,118,129,132,133,135],{},[21,127,128],{},"Loops",[120,130,131],{},"forever"," block and snap it to the ",[120,134,122],{}," block.",[57,137,114,138,118,141,144,145,147,148,151],{},[21,139,140],{},"Bricks",[120,142,143],{},"Set Led"," block and snap it within the ",[120,146,131],{}," block. It will be set to ",[21,149,150],{},"on"," by default.",[57,153,114,154,118,156,132,159,162,163,166,167,170],{},[21,155,128],{},[120,157,158],{},"wait",[120,160,161],{},"Set Led on"," block. Change the ",[21,164,165],{},"1"," to ",[21,168,169],{},"0.5",".",[57,172,114,173,118,175,132,177,162,180,166,182,170],{},[21,174,140],{},[120,176,143],{},[120,178,179],{},"wait 0.5",[21,181,150],{},[21,183,184],{},"off",[57,186,114,187,118,189,132,191,162,194,166,196,170],{},[21,188,128],{},[120,190,158],{},[120,192,193],{},"Set Led off",[21,195,165],{},[21,197,169],{},[17,199,200],{},[103,201],{"alt":202,"src":203},"The completed block code for the blinking LED","\u002Flearn\u002Fpicobricks\u002Fblinking-led\u002FCompletedCode.webp",[17,205,206],{},"We've now completed the code for our blinking LED.",[13,208,210,219,222],{"title":209},"Run it and watch",[77,211,212],{},[57,213,214,215,218],{},"Select the ",[21,216,217],{},"run"," button at the top of the code window.",[17,220,221],{},"Your LED should now blink on and off every half a second. 🎉",[17,223,224],{},[103,225],{"alt":226,"src":227},"The LED blinking on and off every half a second","\u002Flearn\u002Fpicobricks\u002Fblinking-led\u002FBlinkingLED.gif",[13,229,231],{"title":230},"Try it yourself",[232,233,234],"try-it",{},[17,235,236,239,240,242,243,246,247,249],{},[21,237,238],{},"Challenge:"," Can you make your LED blink faster or slower? Try changing both ",[120,241,179],{}," blocks to a smaller number like ",[120,244,245],{},"0.1"," for a speedy flash, or a bigger number like ",[120,248,165],{}," for a slow, sleepy blink. What happens if you give the two waits different numbers?",[13,251,253],{"title":252},"Stuck? Quick fixes",[254,255,256,269],"table",{},[257,258,259],"thead",{},[260,261,262,266],"tr",{},[263,264,265],"th",{},"Problem",[263,267,268],{},"Try this",[270,271,272,281,298,317],"tbody",{},[260,273,274,278],{},[275,276,277],"td",{},"The LED isn't lighting up at all",[275,279,280],{},"Check the USB cable is pushed in properly at both ends, and make sure the Brick IDE shows it's connected to your PicoBricks board.",[260,282,283,286],{},[275,284,285],{},"The blocks won't snap together",[275,287,288,289,291,292,294,295,297],{},"Make sure each block is dropped just inside the one above it. The ",[120,290,143],{}," and ",[120,293,158],{}," blocks need to sit inside the ",[120,296,131],{}," loop, not below it.",[260,299,300,303],{},[275,301,302],{},"The LED comes on but never turns off",[275,304,305,306,308,309,311,312,314,315,135],{},"Check your second ",[120,307,143],{}," block is set to ",[21,310,184],{},", and that a ",[120,313,158],{}," block sits after each ",[120,316,143],{},[260,318,319,322],{},[275,320,321],{},"Nothing happens when I press run",[275,323,324,325,327],{},"Try reconnecting the board, then press ",[21,326,217],{}," again. Unplugging the USB cable and plugging it back in often helps too.",{"title":329,"searchDepth":330,"depth":330,"links":331},"",2,[],false,"10 mins","md","\u002Flearn\u002Fpicobricks\u002Fblinking-led\u002Fcover-blink.png",[337,338,339,340],"PicoBricks Kit","PicoBricks Brick IDE","MicroUSB to USB cable","Laptop or tablet for coding",null,"Beginner",{},true,"\u002Flearn\u002Fpicobricks\u002Fblinking-led","\u002Flearn\u002Fpicobricks\u002Fblink-project\u002Fblink-project.pdf","picobricks",{"title":5,"description":329},"learn\u002Fpicobricks\u002Fblinking-led\u002Findex","https:\u002F\u002Fyoutu.be\u002FiaCOzFQv5NY","TP7wi7qCgj8J-JrrB6vHskJHxBFwfneUlINmA2p6gW0",{"id":4,"title":5,"body":353,"description":329,"draft":332,"duration":333,"extension":334,"image":335,"kit":564,"language":341,"level":342,"meta":565,"navigation":344,"path":345,"pdf":346,"platform":347,"seo":566,"stem":349,"youtube":350,"__hash__":351},{"type":7,"value":354,"toc":562},[355],[10,356,357,383,387,391,410,480,494,508],{},[13,358,359,365,371,373],{"title":15},[17,360,19,361,24,363,27],{},[21,362,23],{},[21,364,23],{},[17,366,30,367,33,369,39],{},[21,368,23],{},[35,370,38],{"slug":37},[17,372,42],{},[44,374,375,379],{"color":46,"icon":47},[17,376,377],{},[21,378,52],{},[54,380,381],{},[57,382,59],{},[13,384,385],{"title":62},[64,386],{},[13,388,389],{"title":68},[70,390],{":terms":72},[13,392,393,406],{"title":75},[77,394,395,400,402],{},[57,396,81,397,89],{},[83,398,88],{"href":85,"rel":399},[87],[57,401,92],{},[57,403,95,404,99],{},[21,405,98],{},[17,407,408],{},[103,409],{"alt":105,"src":106},[13,411,412,474,478],{"title":109},[77,413,414,420,428,438,450,462],{},[57,415,114,416,118,418,123],{},[21,417,117],{},[120,419,122],{},[57,421,114,422,118,424,132,426,135],{},[21,423,128],{},[120,425,131],{},[120,427,122],{},[57,429,114,430,118,432,144,434,147,436,151],{},[21,431,140],{},[120,433,143],{},[120,435,131],{},[21,437,150],{},[57,439,114,440,118,442,132,444,162,446,166,448,170],{},[21,441,128],{},[120,443,158],{},[120,445,161],{},[21,447,165],{},[21,449,169],{},[57,451,114,452,118,454,132,456,162,458,166,460,170],{},[21,453,140],{},[120,455,143],{},[120,457,179],{},[21,459,150],{},[21,461,184],{},[57,463,114,464,118,466,132,468,162,470,166,472,170],{},[21,465,128],{},[120,467,158],{},[120,469,193],{},[21,471,165],{},[21,473,169],{},[17,475,476],{},[103,477],{"alt":202,"src":203},[17,479,206],{},[13,481,482,488,490],{"title":209},[77,483,484],{},[57,485,214,486,218],{},[21,487,217],{},[17,489,221],{},[17,491,492],{},[103,493],{"alt":226,"src":227},[13,495,496],{"title":230},[232,497,498],{},[17,499,500,239,502,242,504,246,506,249],{},[21,501,238],{},[120,503,179],{},[120,505,245],{},[120,507,165],{},[13,509,510],{"title":252},[254,511,512,520],{},[257,513,514],{},[260,515,516,518],{},[263,517,265],{},[263,519,268],{},[270,521,522,528,540,554],{},[260,523,524,526],{},[275,525,277],{},[275,527,280],{},[260,529,530,532],{},[275,531,285],{},[275,533,288,534,291,536,294,538,297],{},[120,535,143],{},[120,537,158],{},[120,539,131],{},[260,541,542,544],{},[275,543,302],{},[275,545,305,546,308,548,311,550,314,552,135],{},[120,547,143],{},[21,549,184],{},[120,551,158],{},[120,553,143],{},[260,555,556,558],{},[275,557,321],{},[275,559,324,560,327],{},[21,561,217],{},{"title":329,"searchDepth":330,"depth":330,"links":563},[],[337,338,339,340],{},{"title":5,"description":329},[568,581,593,605,618,631,643,656,669,682,693,705,717,729,741,753,765,776,788,800,812,824,836,848,860,872,884,896],{"id":569,"category":570,"definition":571,"example":572,"extension":334,"meta":573,"stem":578,"term":579,"__hash__":580},"glossary\u002Fglossary\u002Faccelerometer.md","Hardware","An accelerometer is a tiny part inside the micro:bit that senses movement, like tilting, shaking or being turned over. It turns that movement into numbers your code can react to.","A bit like the sensor in a games controller that knows when you tilt it to steer, the accelerometer notices when the micro:bit moves.",{"body":574},{"type":7,"value":575,"toc":576},[],{"title":329,"searchDepth":330,"depth":330,"links":577},[],"glossary\u002Faccelerometer","Accelerometer","ksJj58OEPP72c3cASeHPlPiw73FfxxUbtIkoEIYW2Rc",{"id":582,"category":570,"definition":583,"example":584,"extension":334,"meta":585,"stem":590,"term":591,"__hash__":592},"glossary\u002Fglossary\u002Fbutton.md","A button is a switch you press to tell your project to do something. The code can check whether it's being pressed or not.","Pressing a doorbell is just like pressing a button, one press sends a signal that makes something happen.",{"body":586},{"type":7,"value":587,"toc":588},[],{"title":329,"searchDepth":330,"depth":330,"links":589},[],"glossary\u002Fbutton","Button","PgfcNSpG1mpSW_fVJZZMkF4D6eYiQLiyKWeq6_CXsMA",{"id":594,"category":570,"definition":595,"example":596,"extension":334,"meta":597,"stem":602,"term":603,"__hash__":604},"glossary\u002Fglossary\u002Fbuzzer.md","A buzzer is a tiny speaker that makes beeps and tones when you send it electricity. By telling it different numbers, you can make it play notes and tunes.","The beep a microwave makes when your food is ready comes from a buzzer.",{"body":598},{"type":7,"value":599,"toc":600},[],{"title":329,"searchDepth":330,"depth":330,"links":601},[],"glossary\u002Fbuzzer","Buzzer","L0-h_InzgZ_gB0Iy3IE-ojdFF0cXjdB2AxJY0QU0VpU",{"id":606,"category":607,"definition":608,"example":609,"extension":334,"meta":610,"stem":615,"term":616,"__hash__":617},"glossary\u002Fglossary\u002Fforever-loop.md","Programming","A forever loop repeats its instructions again and again without ever stopping (until you switch off or reset). It's perfect for anything you want to keep happening over and over.","Like a clock's second hand that keeps ticking round and round, a forever loop keeps running the same steps over and over.",{"body":611},{"type":7,"value":612,"toc":613},[],{"title":329,"searchDepth":330,"depth":330,"links":614},[],"glossary\u002Fforever-loop","Forever loop","1j2cYaiR3yKeoh54w9Vg2aWr_cEXEtj7F0WCR3_jdc0",{"id":619,"category":620,"definition":621,"example":622,"extension":334,"meta":623,"stem":628,"term":629,"__hash__":630},"glossary\u002Fglossary\u002Ffrequency.md","Electronics","A frequency is just a number that tells a buzzer which note to play. A small number makes a low sound, and a big number makes a high sound.","Setting a buzzer to a low number gives a deep, rumbly note, while a high number makes a squeaky, high-pitched one, a bit like the left and right ends of a piano.",{"body":624},{"type":7,"value":625,"toc":626},[],{"title":329,"searchDepth":330,"depth":330,"links":627},[],"glossary\u002Ffrequency","Frequency","XY4AeY0bsJaqF0XBjkEAvTSzqxdpPPLt09Z_LbZSjPg",{"id":632,"category":607,"definition":633,"example":634,"extension":334,"meta":635,"stem":640,"term":641,"__hash__":642},"glossary\u002Fglossary\u002Ffunction.md","A function is a chunk of code you give a name to, so you can use it again and again without building it from scratch each time. Think of it like a favourite recipe, you write down the steps once, then follow it whenever you need it.","Like writing out a pancake recipe once. Whenever you fancy pancakes, you just follow the recipe again rather than working it all out from scratch.",{"body":636},{"type":7,"value":637,"toc":638},[],{"title":329,"searchDepth":330,"depth":330,"links":639},[],"glossary\u002Ffunction","Function","0aEVvGRMWsAC1qXngj6QCHxCoIn1mWfHYBBi95ayuLE",{"id":644,"category":645,"definition":646,"example":647,"extension":334,"meta":648,"stem":653,"term":654,"__hash__":655},"glossary\u002Fglossary\u002Fide-code-editor.md","General","An IDE is the program where you write and run your code. A code editor lots of children and parents will already know is Scratch, where you drag blocks together to build a program. IDE stands for \"integrated development environment\".","It's like a kitchen for code: one place with all the tools you need to put your project together and test it.",{"body":649},{"type":7,"value":650,"toc":651},[],{"title":329,"searchDepth":330,"depth":330,"links":652},[],"glossary\u002Fide-code-editor","IDE (code editor)","yc7Eds8WdmrIM56FGlCmMtjhoodKwT1IUvQCC9bsvKs",{"id":657,"category":658,"definition":659,"example":660,"extension":334,"meta":661,"stem":666,"term":667,"__hash__":668},"glossary\u002Fglossary\u002Fif-statement.md","Logic","An if statement checks whether something is true, and only runs its instructions when it is. It's how code makes decisions.","\"If it's cold, put on a coat.\" If it's warm, you skip the coat, the action only happens when the check is true.",{"body":662},{"type":7,"value":663,"toc":664},[],{"title":329,"searchDepth":330,"depth":330,"links":665},[],"glossary\u002Fif-statement","If statement","3uYmpX5sGUnkc327qCP_EkL6IGkFiginfOP39Kstry8",{"id":670,"category":671,"definition":672,"example":673,"extension":334,"meta":674,"stem":679,"term":680,"__hash__":681},"glossary\u002Fglossary\u002Finteger.md","Data & Variables","An integer is just a whole number, like 1, 2 or 3. It has no bits after a dot, so 4 is an integer, but 4.5 isn't.","Counting down 3… 2… 1… uses integers, but a price like £4.99 isn't an integer because it has numbers after the dot.",{"body":675},{"type":7,"value":676,"toc":677},[],{"title":329,"searchDepth":330,"depth":330,"links":678},[],"glossary\u002Finteger","Integer","lktbVeg3VEBLF2Jg3R_EKdjEowVZeabE1gPnGpI2OXY",{"id":683,"category":570,"definition":684,"example":685,"extension":334,"meta":686,"stem":691,"term":38,"__hash__":692},"glossary\u002Fglossary\u002Fled.md","An LED is a tiny light you can switch on and off (and sometimes change colour) with your code. LED is short for \"light-emitting diode\".","The little standby light on a TV is an LED, your code can flash one on and off the same way.",{"body":687},{"type":7,"value":688,"toc":689},[],{"title":329,"searchDepth":330,"depth":330,"links":690},[],"glossary\u002Fled","M41j-xq46HhMvOjtpYSjfy0ypnoMYVzgeqVGSuyVciY",{"id":694,"category":570,"definition":695,"example":696,"extension":334,"meta":697,"stem":702,"term":703,"__hash__":704},"glossary\u002Fglossary\u002Fled-matrix.md","The LED matrix is the grid of little red lights on the front of the micro:bit. By switching them on and off in patterns, your code can show numbers, letters and tiny pictures.","Like a mini scoreboard made of dots, the LED matrix lights up to spell out your step count.",{"body":698},{"type":7,"value":699,"toc":700},[],{"title":329,"searchDepth":330,"depth":330,"links":701},[],"glossary\u002Fled-matrix","LED Matrix","KfPJAm7v5EXlm2ejZZLldfB4w7zOMZQhbrmsqxpqJi8",{"id":706,"category":570,"definition":707,"example":708,"extension":334,"meta":709,"stem":714,"term":715,"__hash__":716},"glossary\u002Fglossary\u002Flight-sensor.md","A light sensor is a little part that measures how bright or dark it is around it, then turns that into a number your code can read. As the light changes, so does the number.","Like the automatic headlights on a car that switch on when it gets dark, a light sensor notices the light dropping and lets your code react.",{"body":710},{"type":7,"value":711,"toc":712},[],{"title":329,"searchDepth":330,"depth":330,"links":713},[],"glossary\u002Flight-sensor","Light Sensor","tEERMTJO24JmYYlQoIO7DxY9yXg0GNehs78E_LQL28U",{"id":718,"category":645,"definition":719,"example":720,"extension":334,"meta":721,"stem":726,"term":727,"__hash__":728},"glossary\u002Fglossary\u002Fmillisecond.md","A millisecond is a tiny slice of time. There are 1,000 of them in just one second! That's why it's perfect for measuring things that happen really fast.","A blink of an eye takes around 300 milliseconds, so a really quick button press might be even faster than a blink.",{"body":722},{"type":7,"value":723,"toc":724},[],{"title":329,"searchDepth":330,"depth":330,"links":725},[],"glossary\u002Fmillisecond","Millisecond","2TwuImc8S9MyMSqRFO3i6iHVCdsxyJ_S9N_BxGbZL-8",{"id":730,"category":570,"definition":731,"example":732,"extension":334,"meta":733,"stem":738,"term":739,"__hash__":740},"glossary\u002Fglossary\u002Fmodule.md","A module is a small part that does one job, like a buzzer, a button or a screen. You connect modules to the main board to give your project new powers.","Like adding different attachments to a toy, each module snaps on to add a new ability, sound, light or buttons.",{"body":734},{"type":7,"value":735,"toc":736},[],{"title":329,"searchDepth":330,"depth":330,"links":737},[],"glossary\u002Fmodule","Module","IDLrS2CrlwNauzAWoCd7V16aO_ygDWyjp11bMsfuwO0",{"id":742,"category":570,"definition":743,"example":744,"extension":334,"meta":745,"stem":750,"term":751,"__hash__":752},"glossary\u002Fglossary\u002Fmotor-controller.md","A motor controller is the part that sits between your board and a motor, passing on the right amount of power so the motor moves the way your code asks.","Like a remote control for a toy car, it takes your instructions and makes the motor do them.",{"body":746},{"type":7,"value":747,"toc":748},[],{"title":329,"searchDepth":330,"depth":330,"links":749},[],"glossary\u002Fmotor-controller","Motor controller","McSSBLd3fPtYq-o2LUQBhW3pBeEmMSjF6cnb2O9ectE",{"id":754,"category":570,"definition":755,"example":756,"extension":334,"meta":757,"stem":762,"term":763,"__hash__":764},"glossary\u002Fglossary\u002Foled-screen.md","An OLED screen is a small display that shows words, numbers and pictures from your code. On some kits it's labelled the \"LED display\", but it's the same little screen.","Like the small screen on a fitness watch showing your steps, an OLED screen can show a score or a countdown.",{"body":758},{"type":7,"value":759,"toc":760},[],{"title":329,"searchDepth":330,"depth":330,"links":761},[],"glossary\u002Foled-screen","OLED screen","14SaCtmWj71MOziFuPIW377cynK4FRv5TsdEx4fGGFk",{"id":766,"category":570,"definition":767,"example":768,"extension":334,"meta":769,"stem":774,"term":122,"__hash__":775},"glossary\u002Fglossary\u002Fpicobricks.md","PicoBricks is an all-in-one coding kit that joins up handy parts, like a screen, a buzzer, buttons and lights, onto one board, so you can build projects without any fiddly wiring.","It's a bit like a Lego baseboard for electronics: everything clicks together in one place, ready to code.",{"body":770},{"type":7,"value":771,"toc":772},[],{"title":329,"searchDepth":330,"depth":330,"links":773},[],"glossary\u002Fpicobricks","TeGs24I-3fkAdlpiuQPPBDUO8EKBe8PS1ewHaj-w5_s",{"id":777,"category":570,"definition":778,"example":779,"extension":334,"meta":780,"stem":785,"term":786,"__hash__":787},"glossary\u002Fglossary\u002Fpotentiometer.md","A potentiometer is a knob or dial that controls how much electricity flows through a circuit. Think of it like a tap for water: turn it one way and more comes out, turn it the other way and less comes out.","A volume dial on a speaker is a potentiometer, turn it up for louder sound and down for quieter.",{"body":781},{"type":7,"value":782,"toc":783},[],{"title":329,"searchDepth":330,"depth":330,"links":784},[],"glossary\u002Fpotentiometer","Potentiometer","ohP2krcKZLkMtpI44R32nhDVwImLmSBQWP6SOArsh6M",{"id":789,"category":570,"definition":790,"example":791,"extension":334,"meta":792,"stem":797,"term":798,"__hash__":799},"glossary\u002Fglossary\u002Frgb-led.md","An RGB LED is a tiny light that can glow in any colour you like. It mixes red, green and blue light in different amounts, a bit like mixing paints, to make all sorts of colours.","Like the colour-changing lights some people put behind their TV, an RGB LED can shift from red to green to blue and everything in between.",{"body":793},{"type":7,"value":794,"toc":795},[],{"title":329,"searchDepth":330,"depth":330,"links":796},[],"glossary\u002Frgb-led","RGB LED","mIu-76nYeQtI-NsTMcvPueLH11JE0fC5X2jJxBmKwPU",{"id":801,"category":607,"definition":802,"example":803,"extension":334,"meta":804,"stem":809,"term":810,"__hash__":811},"glossary\u002Fglossary\u002Frandom.md","Random means you can't guess what's coming next, a bit like rolling a dice. The computer picks for you, so you get a different surprise each time.","Asking a computer for a random number between 1 and 6 is just like rolling a dice, you never know if you'll get a 1 or a 6.",{"body":805},{"type":7,"value":806,"toc":807},[],{"title":329,"searchDepth":330,"depth":330,"links":808},[],"glossary\u002Frandom","Random","LkGfQKwUNfJ_TPXihwPveX2JeJ9-BB7DpUire9a2pqI",{"id":813,"category":570,"definition":814,"example":815,"extension":334,"meta":816,"stem":821,"term":822,"__hash__":823},"glossary\u002Fglossary\u002Fraspberry-pi-pico.md","The Raspberry Pi Pico is a tiny, low-cost computer chip on a small board. It's the \"brain\" that stores your code and tells the other parts what to do.","It's like the brain inside a toy robot, small enough to fit in your hand, but clever enough to run your whole project.",{"body":817},{"type":7,"value":818,"toc":819},[],{"title":329,"searchDepth":330,"depth":330,"links":820},[],"glossary\u002Fraspberry-pi-pico","Raspberry Pi Pico","HVa7r-PC6I5-DVcDdOULsBHP6h7V4SafhFtdazcSWYg",{"id":825,"category":607,"definition":826,"example":827,"extension":334,"meta":828,"stem":833,"term":834,"__hash__":835},"glossary\u002Fglossary\u002Frepeat-loop.md","A repeat loop does its instructions a set number of times, then stops. You tell it exactly how many goes you want.","\"Repeat 3 times: blow out a candle.\" After the third candle, the loop is finished, no matter what.",{"body":829},{"type":7,"value":830,"toc":831},[],{"title":329,"searchDepth":330,"depth":330,"links":832},[],"glossary\u002Frepeat-loop","Repeat loop","YC2iTUQ841lfmltd6Pkq89uuQbk29RWgR-rWs7MvjJ4",{"id":837,"category":570,"definition":838,"example":839,"extension":334,"meta":840,"stem":845,"term":846,"__hash__":847},"glossary\u002Fglossary\u002Fservo-motor.md","A servo motor is a special motor that turns to an exact position you tell it, like 0 or 90 degrees, instead of just spinning round and round.","Like the hand on a clock moving to point at a number, a servo turns to the exact angle you ask for.",{"body":841},{"type":7,"value":842,"toc":843},[],{"title":329,"searchDepth":330,"depth":330,"links":844},[],"glossary\u002Fservo-motor","Servo motor","IFtMLIEoNZ746ebquvkvp-PAqDQObQACMiWUTb3rfZ8",{"id":849,"category":570,"definition":850,"example":851,"extension":334,"meta":852,"stem":857,"term":858,"__hash__":859},"glossary\u002Fglossary\u002Ftemperature-sensor.md","A temperature sensor is a little part that measures how warm or cold it is around it, then turns that into a number your code can read. As the room heats up or cools down, the number changes too.","Like the thermometer that tells you if you've got a temperature when you're poorly, a temperature sensor measures the warmth around it and gives your code a number to work with.",{"body":853},{"type":7,"value":854,"toc":855},[],{"title":329,"searchDepth":330,"depth":330,"links":856},[],"glossary\u002Ftemperature-sensor","Temperature sensor","UbSScS-TCPLSFDjnxsaFltpoKbORTAOaxh68b_-FMw8",{"id":861,"category":658,"definition":862,"example":863,"extension":334,"meta":864,"stem":869,"term":870,"__hash__":871},"glossary\u002Fglossary\u002Fthreshold.md","A threshold is a cut-off number you pick to help your code make a decision. The code checks whether a value is above or below it, then acts. It's like drawing a line and asking \"are we over it or under it?\"","Like setting a bedtime of 8 o'clock: before 8 you're still up, after 8 it's lights out. The time is your threshold.",{"body":865},{"type":7,"value":866,"toc":867},[],{"title":329,"searchDepth":330,"depth":330,"links":868},[],"glossary\u002Fthreshold","Threshold","xikcgh-PcWY0Z_HhDY16B8SLJLbL0oJD8WUU3KpHqvY",{"id":873,"category":671,"definition":874,"example":875,"extension":334,"meta":876,"stem":881,"term":882,"__hash__":883},"glossary\u002Fglossary\u002Fvariable.md","A variable is something that can change. Think of it like a labelled box: you pop something inside, and the label tells you what it is. You can swap what's inside whenever you like.","A variable called score might start at 0, then change to 1, 2 and 3 as you collect points in a game.",{"body":877},{"type":7,"value":878,"toc":879},[],{"title":329,"searchDepth":330,"depth":330,"links":880},[],"glossary\u002Fvariable","Variable","nlzJUTSGqyIAKSbopFF01oPBuJT59zOT7MSoCpOMp1E",{"id":885,"category":607,"definition":886,"example":887,"extension":334,"meta":888,"stem":893,"term":894,"__hash__":895},"glossary\u002Fglossary\u002Fwhile-loop.md","A while loop keeps repeating its instructions for as long as something stays true. The moment that thing stops being true, the loop stops.","\"While it's still raining, keep the umbrella up.\" As soon as the rain stops, you put the umbrella down, and the loop ends.",{"body":889},{"type":7,"value":890,"toc":891},[],{"title":329,"searchDepth":330,"depth":330,"links":892},[],"glossary\u002Fwhile-loop","While loop","igK-e_snGhkP0kgSn6sPO7YQybQ0WpDfQMB0_8I2iZg",{"id":897,"category":570,"definition":898,"example":899,"extension":334,"meta":900,"stem":905,"term":906,"__hash__":907},"glossary\u002Fglossary\u002Fmicro-bit.md","The micro:bit is a tiny programmable computer, about the size of a matchbox, made for learning to code. It has two buttons, a grid of little red LED lights and built-in sensors that can detect movement, light and temperature.","A bit like a pocket-sized computer you can program yourself, a micro:bit can become a step counter, a thermometer or even a simple game.",{"body":901},{"type":7,"value":902,"toc":903},[],{"title":329,"searchDepth":330,"depth":330,"links":904},[],"glossary\u002Fmicro-bit","micro:bit","GZPIPrw-9_LkW4seKGxZt6hAdg8MO_A_wOS-mN4qDTg",{"id":4,"title":5,"body":909,"description":329,"draft":332,"duration":333,"extension":334,"image":335,"kit":1120,"language":341,"level":342,"meta":1121,"navigation":344,"path":345,"pdf":346,"platform":347,"seo":1122,"stem":349,"youtube":350,"__hash__":351},{"type":7,"value":910,"toc":1118},[911],[10,912,913,939,943,947,966,1036,1050,1064],{},[13,914,915,921,927,929],{"title":15},[17,916,19,917,24,919,27],{},[21,918,23],{},[21,920,23],{},[17,922,30,923,33,925,39],{},[21,924,23],{},[35,926,38],{"slug":37},[17,928,42],{},[44,930,931,935],{"color":46,"icon":47},[17,932,933],{},[21,934,52],{},[54,936,937],{},[57,938,59],{},[13,940,941],{"title":62},[64,942],{},[13,944,945],{"title":68},[70,946],{":terms":72},[13,948,949,962],{"title":75},[77,950,951,956,958],{},[57,952,81,953,89],{},[83,954,88],{"href":85,"rel":955},[87],[57,957,92],{},[57,959,95,960,99],{},[21,961,98],{},[17,963,964],{},[103,965],{"alt":105,"src":106},[13,967,968,1030,1034],{"title":109},[77,969,970,976,984,994,1006,1018],{},[57,971,114,972,118,974,123],{},[21,973,117],{},[120,975,122],{},[57,977,114,978,118,980,132,982,135],{},[21,979,128],{},[120,981,131],{},[120,983,122],{},[57,985,114,986,118,988,144,990,147,992,151],{},[21,987,140],{},[120,989,143],{},[120,991,131],{},[21,993,150],{},[57,995,114,996,118,998,132,1000,162,1002,166,1004,170],{},[21,997,128],{},[120,999,158],{},[120,1001,161],{},[21,1003,165],{},[21,1005,169],{},[57,1007,114,1008,118,1010,132,1012,162,1014,166,1016,170],{},[21,1009,140],{},[120,1011,143],{},[120,1013,179],{},[21,1015,150],{},[21,1017,184],{},[57,1019,114,1020,118,1022,132,1024,162,1026,166,1028,170],{},[21,1021,128],{},[120,1023,158],{},[120,1025,193],{},[21,1027,165],{},[21,1029,169],{},[17,1031,1032],{},[103,1033],{"alt":202,"src":203},[17,1035,206],{},[13,1037,1038,1044,1046],{"title":209},[77,1039,1040],{},[57,1041,214,1042,218],{},[21,1043,217],{},[17,1045,221],{},[17,1047,1048],{},[103,1049],{"alt":226,"src":227},[13,1051,1052],{"title":230},[232,1053,1054],{},[17,1055,1056,239,1058,242,1060,246,1062,249],{},[21,1057,238],{},[120,1059,179],{},[120,1061,245],{},[120,1063,165],{},[13,1065,1066],{"title":252},[254,1067,1068,1076],{},[257,1069,1070],{},[260,1071,1072,1074],{},[263,1073,265],{},[263,1075,268],{},[270,1077,1078,1084,1096,1110],{},[260,1079,1080,1082],{},[275,1081,277],{},[275,1083,280],{},[260,1085,1086,1088],{},[275,1087,285],{},[275,1089,288,1090,291,1092,294,1094,297],{},[120,1091,143],{},[120,1093,158],{},[120,1095,131],{},[260,1097,1098,1100],{},[275,1099,302],{},[275,1101,305,1102,308,1104,311,1106,314,1108,135],{},[120,1103,143],{},[21,1105,184],{},[120,1107,158],{},[120,1109,143],{},[260,1111,1112,1114],{},[275,1113,321],{},[275,1115,324,1116,327],{},[21,1117,217],{},{"title":329,"searchDepth":330,"depth":330,"links":1119},[],[337,338,339,340],{},{"title":5,"description":329},[1124,1130,1136,1142,1148,1154,1160,1166,1172,1178,1184,1190,1196,1202,1208,1214,1220,1226,1232,1238,1244,1250,1256,1262,1268,1274,1280,1286],{"id":569,"category":570,"definition":571,"example":572,"extension":334,"meta":1125,"stem":578,"term":579,"__hash__":580},{"body":1126},{"type":7,"value":1127,"toc":1128},[],{"title":329,"searchDepth":330,"depth":330,"links":1129},[],{"id":582,"category":570,"definition":583,"example":584,"extension":334,"meta":1131,"stem":590,"term":591,"__hash__":592},{"body":1132},{"type":7,"value":1133,"toc":1134},[],{"title":329,"searchDepth":330,"depth":330,"links":1135},[],{"id":594,"category":570,"definition":595,"example":596,"extension":334,"meta":1137,"stem":602,"term":603,"__hash__":604},{"body":1138},{"type":7,"value":1139,"toc":1140},[],{"title":329,"searchDepth":330,"depth":330,"links":1141},[],{"id":606,"category":607,"definition":608,"example":609,"extension":334,"meta":1143,"stem":615,"term":616,"__hash__":617},{"body":1144},{"type":7,"value":1145,"toc":1146},[],{"title":329,"searchDepth":330,"depth":330,"links":1147},[],{"id":619,"category":620,"definition":621,"example":622,"extension":334,"meta":1149,"stem":628,"term":629,"__hash__":630},{"body":1150},{"type":7,"value":1151,"toc":1152},[],{"title":329,"searchDepth":330,"depth":330,"links":1153},[],{"id":632,"category":607,"definition":633,"example":634,"extension":334,"meta":1155,"stem":640,"term":641,"__hash__":642},{"body":1156},{"type":7,"value":1157,"toc":1158},[],{"title":329,"searchDepth":330,"depth":330,"links":1159},[],{"id":644,"category":645,"definition":646,"example":647,"extension":334,"meta":1161,"stem":653,"term":654,"__hash__":655},{"body":1162},{"type":7,"value":1163,"toc":1164},[],{"title":329,"searchDepth":330,"depth":330,"links":1165},[],{"id":657,"category":658,"definition":659,"example":660,"extension":334,"meta":1167,"stem":666,"term":667,"__hash__":668},{"body":1168},{"type":7,"value":1169,"toc":1170},[],{"title":329,"searchDepth":330,"depth":330,"links":1171},[],{"id":670,"category":671,"definition":672,"example":673,"extension":334,"meta":1173,"stem":679,"term":680,"__hash__":681},{"body":1174},{"type":7,"value":1175,"toc":1176},[],{"title":329,"searchDepth":330,"depth":330,"links":1177},[],{"id":683,"category":570,"definition":684,"example":685,"extension":334,"meta":1179,"stem":691,"term":38,"__hash__":692},{"body":1180},{"type":7,"value":1181,"toc":1182},[],{"title":329,"searchDepth":330,"depth":330,"links":1183},[],{"id":694,"category":570,"definition":695,"example":696,"extension":334,"meta":1185,"stem":702,"term":703,"__hash__":704},{"body":1186},{"type":7,"value":1187,"toc":1188},[],{"title":329,"searchDepth":330,"depth":330,"links":1189},[],{"id":706,"category":570,"definition":707,"example":708,"extension":334,"meta":1191,"stem":714,"term":715,"__hash__":716},{"body":1192},{"type":7,"value":1193,"toc":1194},[],{"title":329,"searchDepth":330,"depth":330,"links":1195},[],{"id":897,"category":570,"definition":898,"example":899,"extension":334,"meta":1197,"stem":905,"term":906,"__hash__":907},{"body":1198},{"type":7,"value":1199,"toc":1200},[],{"title":329,"searchDepth":330,"depth":330,"links":1201},[],{"id":718,"category":645,"definition":719,"example":720,"extension":334,"meta":1203,"stem":726,"term":727,"__hash__":728},{"body":1204},{"type":7,"value":1205,"toc":1206},[],{"title":329,"searchDepth":330,"depth":330,"links":1207},[],{"id":730,"category":570,"definition":731,"example":732,"extension":334,"meta":1209,"stem":738,"term":739,"__hash__":740},{"body":1210},{"type":7,"value":1211,"toc":1212},[],{"title":329,"searchDepth":330,"depth":330,"links":1213},[],{"id":742,"category":570,"definition":743,"example":744,"extension":334,"meta":1215,"stem":750,"term":751,"__hash__":752},{"body":1216},{"type":7,"value":1217,"toc":1218},[],{"title":329,"searchDepth":330,"depth":330,"links":1219},[],{"id":754,"category":570,"definition":755,"example":756,"extension":334,"meta":1221,"stem":762,"term":763,"__hash__":764},{"body":1222},{"type":7,"value":1223,"toc":1224},[],{"title":329,"searchDepth":330,"depth":330,"links":1225},[],{"id":766,"category":570,"definition":767,"example":768,"extension":334,"meta":1227,"stem":774,"term":122,"__hash__":775},{"body":1228},{"type":7,"value":1229,"toc":1230},[],{"title":329,"searchDepth":330,"depth":330,"links":1231},[],{"id":777,"category":570,"definition":778,"example":779,"extension":334,"meta":1233,"stem":785,"term":786,"__hash__":787},{"body":1234},{"type":7,"value":1235,"toc":1236},[],{"title":329,"searchDepth":330,"depth":330,"links":1237},[],{"id":801,"category":607,"definition":802,"example":803,"extension":334,"meta":1239,"stem":809,"term":810,"__hash__":811},{"body":1240},{"type":7,"value":1241,"toc":1242},[],{"title":329,"searchDepth":330,"depth":330,"links":1243},[],{"id":813,"category":570,"definition":814,"example":815,"extension":334,"meta":1245,"stem":821,"term":822,"__hash__":823},{"body":1246},{"type":7,"value":1247,"toc":1248},[],{"title":329,"searchDepth":330,"depth":330,"links":1249},[],{"id":825,"category":607,"definition":826,"example":827,"extension":334,"meta":1251,"stem":833,"term":834,"__hash__":835},{"body":1252},{"type":7,"value":1253,"toc":1254},[],{"title":329,"searchDepth":330,"depth":330,"links":1255},[],{"id":789,"category":570,"definition":790,"example":791,"extension":334,"meta":1257,"stem":797,"term":798,"__hash__":799},{"body":1258},{"type":7,"value":1259,"toc":1260},[],{"title":329,"searchDepth":330,"depth":330,"links":1261},[],{"id":837,"category":570,"definition":838,"example":839,"extension":334,"meta":1263,"stem":845,"term":846,"__hash__":847},{"body":1264},{"type":7,"value":1265,"toc":1266},[],{"title":329,"searchDepth":330,"depth":330,"links":1267},[],{"id":849,"category":570,"definition":850,"example":851,"extension":334,"meta":1269,"stem":857,"term":858,"__hash__":859},{"body":1270},{"type":7,"value":1271,"toc":1272},[],{"title":329,"searchDepth":330,"depth":330,"links":1273},[],{"id":861,"category":658,"definition":862,"example":863,"extension":334,"meta":1275,"stem":869,"term":870,"__hash__":871},{"body":1276},{"type":7,"value":1277,"toc":1278},[],{"title":329,"searchDepth":330,"depth":330,"links":1279},[],{"id":873,"category":671,"definition":874,"example":875,"extension":334,"meta":1281,"stem":881,"term":882,"__hash__":883},{"body":1282},{"type":7,"value":1283,"toc":1284},[],{"title":329,"searchDepth":330,"depth":330,"links":1285},[],{"id":885,"category":607,"definition":886,"example":887,"extension":334,"meta":1287,"stem":893,"term":894,"__hash__":895},{"body":1288},{"type":7,"value":1289,"toc":1290},[],{"title":329,"searchDepth":330,"depth":330,"links":1291},[],1785347039481]