[{"data":1,"prerenderedAt":1318},["ShallowReactive",2],{"tutorial:\u002Flearn\u002Fpicobricks\u002Fautomatic-lighting":3,"tutorial-steps:\u002Flearn\u002Fpicobricks\u002Fautomatic-lighting":365,"kit-\u002Flearn\u002Fpicobricks\u002Fautomatic-lighting":588,"key-words-glossary":811,"glossary":1149},{"id":4,"title":5,"body":6,"description":342,"draft":345,"duration":346,"extension":347,"image":348,"kit":349,"language":354,"level":355,"meta":356,"navigation":357,"path":358,"pdf":359,"platform":360,"seo":361,"stem":362,"youtube":363,"__hash__":364},"tutorials\u002Flearn\u002Fpicobricks\u002Fautomatic-lighting\u002Findex.md","Automatic Lighting",{"type":7,"value":8,"toc":341},"minimark",[9],[10,11,12,55,61,68,102,244,256,275],"tutorial-steps",{},[13,14,16,31],"step",{"title":15},"Overview",[17,18,19,20,25,26,30],"p",{},"In this project we'll build our very own automatic light, just like the ones that switch themselves on when it gets dark. We'll use the ",[21,22,24],"g",{"slug":23},"light-sensor","Light Sensor"," to measure how bright it is around us. When it gets too dark, the ",[21,27,29],{"slug":28},"rgb-led","RGB LED"," will switch on all by itself, and when it's bright again, it turns back off.",[32,33,36,42],"callout",{"color":34,"icon":35},"green","🎯",[17,37,38],{},[39,40,41],"strong",{},"What you'll learn",[43,44,45,49,52],"ul",{},[46,47,48],"li",{},"How a light sensor measures the light around it",[46,50,51],{},"How to use an if\u002Felse block to make a decision",[46,53,54],{},"How to switch an RGB LED on and off automatically",[13,56,58],{"title":57},"What you'll need",[59,60],"what-youll-need",{},[13,62,64],{"title":63},"Key words",[65,66],"key-words",{"terms":67},"light-sensor,rgb-led,forever-loop,if-statement,threshold",[13,69,71,95],{"title":70},"Set up your PicoBricks",[72,73,74,85,88],"ol",{},[46,75,76,77,84],{},"Open your favourite web browser. We recommend either Google Chrome or Microsoft Edge. Type ",[78,79,83],"a",{"href":80,"rel":81},"http:\u002F\u002Fide.picobricks.com",[82],"nofollow","ide.picobricks.com"," into the address bar.",[46,86,87],{},"Connect the PicoBricks board to your computer using the USB cable.",[46,89,90,91,94],{},"Connect the PicoBricks board to the Brick IDE by selecting the ",[39,92,93],{},"Connection"," button at the top of the code area.",[17,96,97],{},[98,99],"img",{"alt":100,"src":101},"The PicoBricks Brick IDE coding environment","\u002Flearn\u002Fpicobricks\u002Fautomatic-lighting\u002FCodingEnvironment.webp",[13,103,105,238],{"title":104},"Build the code",[72,106,107,119,133,143,158,171,188,201,219,228],{},[46,108,109,110,113,114,118],{},"Select ",[39,111,112],{},"Basic",". Drop a ",[115,116,117],"code",{},"PicoBricks"," block into the code area.",[46,120,109,121,124,125,129,130,132],{},[39,122,123],{},"Loops",". Snap a ",[21,126,128],{"slug":127},"forever-loop","forever"," block to the ",[115,131,117],{}," block.",[46,134,109,135,124,137,140,141,132],{},[39,136,112],{},[115,138,139],{},"Serial Print"," block inside the ",[115,142,128],{},[46,144,109,145,124,148,151,152,154,155,157],{},[39,146,147],{},"Bricks",[115,149,150],{},"Read Light Sensor"," block onto the ",[115,153,139],{}," block where it says ",[39,156,117],{},".",[46,159,109,160,163,164,129,168,132],{},[39,161,162],{},"Logic",". Snap an ",[21,165,167],{"slug":166},"if-statement","if else",[115,169,170],{},"Serial Print Read Light Sensor",[46,172,109,173,163,175,151,178,181,182,184,185,157],{},[39,174,162],{},[115,176,177],{},"=",[115,179,180],{},"if"," block, then change the ",[39,183,177],{}," to a ",[39,186,187],{},">",[46,189,109,190,192,193,195,196,198,199,157],{},[39,191,147],{},". Add a ",[115,194,150],{}," block into the first blank space of the ",[115,197,180],{}," block, before the ",[39,200,187],{},[46,202,109,203,124,206,209,210,212,213,215,216,157],{},[39,204,205],{},"Math",[115,207,208],{},"0"," block into the space after the ",[39,211,187],{},", then change ",[39,214,208],{}," to ",[39,217,218],{},"10,000",[46,220,109,221,124,223,140,226,132],{},[39,222,29],{},[115,224,225],{},"Set RGB Led Colour",[115,227,180],{},[46,229,109,230,124,232,140,235,132],{},[39,231,29],{},[115,233,234],{},"Clear RGB Led Colour",[115,236,237],{},"else",[17,239,240],{},[98,241],{"alt":242,"src":243},"The finished Automatic Lighting code","\u002Flearn\u002Fpicobricks\u002Fautomatic-lighting\u002FAutomaticLightingCode.webp",[13,245,247,250],{"title":246},"Run it and Watch",[17,248,249],{},"Now the code is finished, let's run it and check it works. Select the run button at the top of the code area. If it's daylight the RGB LED should be off. If it's night time, or if you cover the light sensor with your hand, the RGB LED will turn on.",[17,251,252],{},[98,253],{"alt":254,"src":255},"Automatic Lighting demo","\u002Flearn\u002Fpicobricks\u002Fautomatic-lighting\u002FAutomaticLightingDemo.gif",[13,257,259],{"title":258},"Try it yourself",[260,261,262],"try-it",{},[17,263,264,267,268,270,271,274],{},[39,265,266],{},"Challenge:"," Can you make your night light more colourful? Try changing the ",[39,269,225],{}," block to a different colour, so your light glows blue, green or purple when it gets dark. Feeling brave? Add a ",[39,272,273],{},"Buzzer"," block so it gives a gentle beep the moment the light comes on.",[13,276,278],{"title":277},"Stuck? Quick fixes",[279,280,281,294],"table",{},[282,283,284],"thead",{},[285,286,287,291],"tr",{},[288,289,290],"th",{},"Problem",[288,292,293],{},"Try this",[295,296,297,308,316,324],"tbody",{},[285,298,299,303],{},[300,301,302],"td",{},"The RGB LED won't turn on at all",[300,304,305,306,132],{},"Cover the light sensor fully with your hand to make it really dark. If it still won't light up, your room might not get dark enough to push the reading past the cut-off, so try lowering the 10,000 value in your ",[115,307,180],{},[285,309,310,313],{},[300,311,312],{},"The RGB LED is always on",[300,314,315],{},"Your everyday room light is already reading above the cut-off. Try raising the 10,000 value so the light only comes on when it's properly dark.",[285,317,318,321],{},[300,319,320],{},"Nothing happens when I press Run",[300,322,323],{},"Check the PicoBricks board is connected (the connection button at the top should show it's linked). Unplugging and replugging the USB cable often does the trick.",[285,325,326,329],{},[300,327,328],{},"I can't see the light readings",[300,330,331,332,334,335,337,338,340],{},"Make sure the ",[115,333,139],{}," block is inside the ",[115,336,128],{}," loop, with the ",[115,339,150],{}," block snapped into it.",{"title":342,"searchDepth":343,"depth":343,"links":344},"",2,[],false,"10 mins","md","\u002Flearn\u002Fpicobricks\u002Fautomatic-lighting\u002Fcover-automatic-lighting.png",[350,351,352,353],"PicoBricks Kit","PicoBricks Brick IDE","MicroUSB to USB cable","Laptop or tablet for coding",null,"Beginner",{},true,"\u002Flearn\u002Fpicobricks\u002Fautomatic-lighting","\u002Flearn\u002Fpicobricks\u002Fautomatic-lighting\u002Fautomatic-lighting.pdf","picobricks",{"title":5,"description":342},"learn\u002Fpicobricks\u002Fautomatic-lighting\u002Findex","https:\u002F\u002Fyoutu.be\u002FzBP0ivO4ypg","E7U8gAnK2V1b7nSpq3kemKJHqKKpPHLKP5j3mW7rD-E",{"id":4,"title":5,"body":366,"description":342,"draft":345,"duration":346,"extension":347,"image":348,"kit":585,"language":354,"level":355,"meta":586,"navigation":357,"path":358,"pdf":359,"platform":360,"seo":587,"stem":362,"youtube":363,"__hash__":364},{"type":7,"value":367,"toc":583},[368],[10,369,370,392,396,400,419,517,525,537],{},[13,371,372,378],{"title":15},[17,373,19,374,25,376,30],{},[21,375,24],{"slug":23},[21,377,29],{"slug":28},[32,379,380,384],{"color":34,"icon":35},[17,381,382],{},[39,383,41],{},[43,385,386,388,390],{},[46,387,48],{},[46,389,51],{},[46,391,54],{},[13,393,394],{"title":57},[59,395],{},[13,397,398],{"title":63},[65,399],{"terms":67},[13,401,402,415],{"title":70},[72,403,404,409,411],{},[46,405,76,406,84],{},[78,407,83],{"href":80,"rel":408},[82],[46,410,87],{},[46,412,90,413,94],{},[39,414,93],{},[17,416,417],{},[98,418],{"alt":100,"src":101},[13,420,421,513],{"title":104},[72,422,423,429,437,445,455,463,475,485,497,505],{},[46,424,109,425,113,427,118],{},[39,426,112],{},[115,428,117],{},[46,430,109,431,124,433,129,435,132],{},[39,432,123],{},[21,434,128],{"slug":127},[115,436,117],{},[46,438,109,439,124,441,140,443,132],{},[39,440,112],{},[115,442,139],{},[115,444,128],{},[46,446,109,447,124,449,151,451,154,453,157],{},[39,448,147],{},[115,450,150],{},[115,452,139],{},[39,454,117],{},[46,456,109,457,163,459,129,461,132],{},[39,458,162],{},[21,460,167],{"slug":166},[115,462,170],{},[46,464,109,465,163,467,151,469,181,471,184,473,157],{},[39,466,162],{},[115,468,177],{},[115,470,180],{},[39,472,177],{},[39,474,187],{},[46,476,109,477,192,479,195,481,198,483,157],{},[39,478,147],{},[115,480,150],{},[115,482,180],{},[39,484,187],{},[46,486,109,487,124,489,209,491,212,493,215,495,157],{},[39,488,205],{},[115,490,208],{},[39,492,187],{},[39,494,208],{},[39,496,218],{},[46,498,109,499,124,501,140,503,132],{},[39,500,29],{},[115,502,225],{},[115,504,180],{},[46,506,109,507,124,509,140,511,132],{},[39,508,29],{},[115,510,234],{},[115,512,237],{},[17,514,515],{},[98,516],{"alt":242,"src":243},[13,518,519,521],{"title":246},[17,520,249],{},[17,522,523],{},[98,524],{"alt":254,"src":255},[13,526,527],{"title":258},[260,528,529],{},[17,530,531,267,533,270,535,274],{},[39,532,266],{},[39,534,225],{},[39,536,273],{},[13,538,539],{"title":277},[279,540,541,549],{},[282,542,543],{},[285,544,545,547],{},[288,546,290],{},[288,548,293],{},[295,550,551,559,565,571],{},[285,552,553,555],{},[300,554,302],{},[300,556,305,557,132],{},[115,558,180],{},[285,560,561,563],{},[300,562,312],{},[300,564,315],{},[285,566,567,569],{},[300,568,320],{},[300,570,323],{},[285,572,573,575],{},[300,574,328],{},[300,576,331,577,334,579,337,581,340],{},[115,578,139],{},[115,580,128],{},[115,582,150],{},{"title":342,"searchDepth":343,"depth":343,"links":584},[],[350,351,352,353],{},{"title":5,"description":342},{"id":4,"title":5,"body":589,"description":342,"draft":345,"duration":346,"extension":347,"image":348,"kit":808,"language":354,"level":355,"meta":809,"navigation":357,"path":358,"pdf":359,"platform":360,"seo":810,"stem":362,"youtube":363,"__hash__":364},{"type":7,"value":590,"toc":806},[591],[10,592,593,615,619,623,642,740,748,760],{},[13,594,595,601],{"title":15},[17,596,19,597,25,599,30],{},[21,598,24],{"slug":23},[21,600,29],{"slug":28},[32,602,603,607],{"color":34,"icon":35},[17,604,605],{},[39,606,41],{},[43,608,609,611,613],{},[46,610,48],{},[46,612,51],{},[46,614,54],{},[13,616,617],{"title":57},[59,618],{},[13,620,621],{"title":63},[65,622],{"terms":67},[13,624,625,638],{"title":70},[72,626,627,632,634],{},[46,628,76,629,84],{},[78,630,83],{"href":80,"rel":631},[82],[46,633,87],{},[46,635,90,636,94],{},[39,637,93],{},[17,639,640],{},[98,641],{"alt":100,"src":101},[13,643,644,736],{"title":104},[72,645,646,652,660,668,678,686,698,708,720,728],{},[46,647,109,648,113,650,118],{},[39,649,112],{},[115,651,117],{},[46,653,109,654,124,656,129,658,132],{},[39,655,123],{},[21,657,128],{"slug":127},[115,659,117],{},[46,661,109,662,124,664,140,666,132],{},[39,663,112],{},[115,665,139],{},[115,667,128],{},[46,669,109,670,124,672,151,674,154,676,157],{},[39,671,147],{},[115,673,150],{},[115,675,139],{},[39,677,117],{},[46,679,109,680,163,682,129,684,132],{},[39,681,162],{},[21,683,167],{"slug":166},[115,685,170],{},[46,687,109,688,163,690,151,692,181,694,184,696,157],{},[39,689,162],{},[115,691,177],{},[115,693,180],{},[39,695,177],{},[39,697,187],{},[46,699,109,700,192,702,195,704,198,706,157],{},[39,701,147],{},[115,703,150],{},[115,705,180],{},[39,707,187],{},[46,709,109,710,124,712,209,714,212,716,215,718,157],{},[39,711,205],{},[115,713,208],{},[39,715,187],{},[39,717,208],{},[39,719,218],{},[46,721,109,722,124,724,140,726,132],{},[39,723,29],{},[115,725,225],{},[115,727,180],{},[46,729,109,730,124,732,140,734,132],{},[39,731,29],{},[115,733,234],{},[115,735,237],{},[17,737,738],{},[98,739],{"alt":242,"src":243},[13,741,742,744],{"title":246},[17,743,249],{},[17,745,746],{},[98,747],{"alt":254,"src":255},[13,749,750],{"title":258},[260,751,752],{},[17,753,754,267,756,270,758,274],{},[39,755,266],{},[39,757,225],{},[39,759,273],{},[13,761,762],{"title":277},[279,763,764,772],{},[282,765,766],{},[285,767,768,770],{},[288,769,290],{},[288,771,293],{},[295,773,774,782,788,794],{},[285,775,776,778],{},[300,777,302],{},[300,779,305,780,132],{},[115,781,180],{},[285,783,784,786],{},[300,785,312],{},[300,787,315],{},[285,789,790,792],{},[300,791,320],{},[300,793,323],{},[285,795,796,798],{},[300,797,328],{},[300,799,331,800,334,802,337,804,340],{},[115,801,139],{},[115,803,128],{},[115,805,150],{},{"title":342,"searchDepth":343,"depth":343,"links":807},[],[350,351,352,353],{},{"title":5,"description":342},[812,825,837,848,861,874,886,899,911,924,936,948,959,971,983,995,1007,1019,1030,1042,1054,1066,1078,1089,1101,1113,1125,1137],{"id":813,"category":814,"definition":815,"example":816,"extension":347,"meta":817,"stem":822,"term":823,"__hash__":824},"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":818},{"type":7,"value":819,"toc":820},[],{"title":342,"searchDepth":343,"depth":343,"links":821},[],"glossary\u002Faccelerometer","Accelerometer","ksJj58OEPP72c3cASeHPlPiw73FfxxUbtIkoEIYW2Rc",{"id":826,"category":814,"definition":827,"example":828,"extension":347,"meta":829,"stem":834,"term":835,"__hash__":836},"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":830},{"type":7,"value":831,"toc":832},[],{"title":342,"searchDepth":343,"depth":343,"links":833},[],"glossary\u002Fbutton","Button","PgfcNSpG1mpSW_fVJZZMkF4D6eYiQLiyKWeq6_CXsMA",{"id":838,"category":814,"definition":839,"example":840,"extension":347,"meta":841,"stem":846,"term":273,"__hash__":847},"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":842},{"type":7,"value":843,"toc":844},[],{"title":342,"searchDepth":343,"depth":343,"links":845},[],"glossary\u002Fbuzzer","L0-h_InzgZ_gB0Iy3IE-ojdFF0cXjdB2AxJY0QU0VpU",{"id":849,"category":850,"definition":851,"example":852,"extension":347,"meta":853,"stem":858,"term":859,"__hash__":860},"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":854},{"type":7,"value":855,"toc":856},[],{"title":342,"searchDepth":343,"depth":343,"links":857},[],"glossary\u002Fforever-loop","Forever loop","1j2cYaiR3yKeoh54w9Vg2aWr_cEXEtj7F0WCR3_jdc0",{"id":862,"category":863,"definition":864,"example":865,"extension":347,"meta":866,"stem":871,"term":872,"__hash__":873},"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":867},{"type":7,"value":868,"toc":869},[],{"title":342,"searchDepth":343,"depth":343,"links":870},[],"glossary\u002Ffrequency","Frequency","XY4AeY0bsJaqF0XBjkEAvTSzqxdpPPLt09Z_LbZSjPg",{"id":875,"category":850,"definition":876,"example":877,"extension":347,"meta":878,"stem":883,"term":884,"__hash__":885},"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":879},{"type":7,"value":880,"toc":881},[],{"title":342,"searchDepth":343,"depth":343,"links":882},[],"glossary\u002Ffunction","Function","0aEVvGRMWsAC1qXngj6QCHxCoIn1mWfHYBBi95ayuLE",{"id":887,"category":888,"definition":889,"example":890,"extension":347,"meta":891,"stem":896,"term":897,"__hash__":898},"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":892},{"type":7,"value":893,"toc":894},[],{"title":342,"searchDepth":343,"depth":343,"links":895},[],"glossary\u002Fide-code-editor","IDE (code editor)","yc7Eds8WdmrIM56FGlCmMtjhoodKwT1IUvQCC9bsvKs",{"id":900,"category":162,"definition":901,"example":902,"extension":347,"meta":903,"stem":908,"term":909,"__hash__":910},"glossary\u002Fglossary\u002Fif-statement.md","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":904},{"type":7,"value":905,"toc":906},[],{"title":342,"searchDepth":343,"depth":343,"links":907},[],"glossary\u002Fif-statement","If statement","3uYmpX5sGUnkc327qCP_EkL6IGkFiginfOP39Kstry8",{"id":912,"category":913,"definition":914,"example":915,"extension":347,"meta":916,"stem":921,"term":922,"__hash__":923},"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":917},{"type":7,"value":918,"toc":919},[],{"title":342,"searchDepth":343,"depth":343,"links":920},[],"glossary\u002Finteger","Integer","lktbVeg3VEBLF2Jg3R_EKdjEowVZeabE1gPnGpI2OXY",{"id":925,"category":814,"definition":926,"example":927,"extension":347,"meta":928,"stem":933,"term":934,"__hash__":935},"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":929},{"type":7,"value":930,"toc":931},[],{"title":342,"searchDepth":343,"depth":343,"links":932},[],"glossary\u002Fled","LED","M41j-xq46HhMvOjtpYSjfy0ypnoMYVzgeqVGSuyVciY",{"id":937,"category":814,"definition":938,"example":939,"extension":347,"meta":940,"stem":945,"term":946,"__hash__":947},"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":941},{"type":7,"value":942,"toc":943},[],{"title":342,"searchDepth":343,"depth":343,"links":944},[],"glossary\u002Fled-matrix","LED Matrix","KfPJAm7v5EXlm2ejZZLldfB4w7zOMZQhbrmsqxpqJi8",{"id":949,"category":814,"definition":950,"example":951,"extension":347,"meta":952,"stem":957,"term":24,"__hash__":958},"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":953},{"type":7,"value":954,"toc":955},[],{"title":342,"searchDepth":343,"depth":343,"links":956},[],"glossary\u002Flight-sensor","tEERMTJO24JmYYlQoIO7DxY9yXg0GNehs78E_LQL28U",{"id":960,"category":814,"definition":961,"example":962,"extension":347,"meta":963,"stem":968,"term":969,"__hash__":970},"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":964},{"type":7,"value":965,"toc":966},[],{"title":342,"searchDepth":343,"depth":343,"links":967},[],"glossary\u002Fmicro-bit","micro:bit","GZPIPrw-9_LkW4seKGxZt6hAdg8MO_A_wOS-mN4qDTg",{"id":972,"category":888,"definition":973,"example":974,"extension":347,"meta":975,"stem":980,"term":981,"__hash__":982},"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":976},{"type":7,"value":977,"toc":978},[],{"title":342,"searchDepth":343,"depth":343,"links":979},[],"glossary\u002Fmillisecond","Millisecond","2TwuImc8S9MyMSqRFO3i6iHVCdsxyJ_S9N_BxGbZL-8",{"id":984,"category":814,"definition":985,"example":986,"extension":347,"meta":987,"stem":992,"term":993,"__hash__":994},"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":988},{"type":7,"value":989,"toc":990},[],{"title":342,"searchDepth":343,"depth":343,"links":991},[],"glossary\u002Fmodule","Module","IDLrS2CrlwNauzAWoCd7V16aO_ygDWyjp11bMsfuwO0",{"id":996,"category":814,"definition":997,"example":998,"extension":347,"meta":999,"stem":1004,"term":1005,"__hash__":1006},"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":1000},{"type":7,"value":1001,"toc":1002},[],{"title":342,"searchDepth":343,"depth":343,"links":1003},[],"glossary\u002Fmotor-controller","Motor controller","McSSBLd3fPtYq-o2LUQBhW3pBeEmMSjF6cnb2O9ectE",{"id":1008,"category":814,"definition":1009,"example":1010,"extension":347,"meta":1011,"stem":1016,"term":1017,"__hash__":1018},"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":1012},{"type":7,"value":1013,"toc":1014},[],{"title":342,"searchDepth":343,"depth":343,"links":1015},[],"glossary\u002Foled-screen","OLED screen","14SaCtmWj71MOziFuPIW377cynK4FRv5TsdEx4fGGFk",{"id":1020,"category":814,"definition":1021,"example":1022,"extension":347,"meta":1023,"stem":1028,"term":117,"__hash__":1029},"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":1024},{"type":7,"value":1025,"toc":1026},[],{"title":342,"searchDepth":343,"depth":343,"links":1027},[],"glossary\u002Fpicobricks","TeGs24I-3fkAdlpiuQPPBDUO8EKBe8PS1ewHaj-w5_s",{"id":1031,"category":814,"definition":1032,"example":1033,"extension":347,"meta":1034,"stem":1039,"term":1040,"__hash__":1041},"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":1035},{"type":7,"value":1036,"toc":1037},[],{"title":342,"searchDepth":343,"depth":343,"links":1038},[],"glossary\u002Fpotentiometer","Potentiometer","ohP2krcKZLkMtpI44R32nhDVwImLmSBQWP6SOArsh6M",{"id":1043,"category":850,"definition":1044,"example":1045,"extension":347,"meta":1046,"stem":1051,"term":1052,"__hash__":1053},"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":1047},{"type":7,"value":1048,"toc":1049},[],{"title":342,"searchDepth":343,"depth":343,"links":1050},[],"glossary\u002Frandom","Random","LkGfQKwUNfJ_TPXihwPveX2JeJ9-BB7DpUire9a2pqI",{"id":1055,"category":814,"definition":1056,"example":1057,"extension":347,"meta":1058,"stem":1063,"term":1064,"__hash__":1065},"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":1059},{"type":7,"value":1060,"toc":1061},[],{"title":342,"searchDepth":343,"depth":343,"links":1062},[],"glossary\u002Fraspberry-pi-pico","Raspberry Pi Pico","HVa7r-PC6I5-DVcDdOULsBHP6h7V4SafhFtdazcSWYg",{"id":1067,"category":850,"definition":1068,"example":1069,"extension":347,"meta":1070,"stem":1075,"term":1076,"__hash__":1077},"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":1071},{"type":7,"value":1072,"toc":1073},[],{"title":342,"searchDepth":343,"depth":343,"links":1074},[],"glossary\u002Frepeat-loop","Repeat loop","YC2iTUQ841lfmltd6Pkq89uuQbk29RWgR-rWs7MvjJ4",{"id":1079,"category":814,"definition":1080,"example":1081,"extension":347,"meta":1082,"stem":1087,"term":29,"__hash__":1088},"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":1083},{"type":7,"value":1084,"toc":1085},[],{"title":342,"searchDepth":343,"depth":343,"links":1086},[],"glossary\u002Frgb-led","mIu-76nYeQtI-NsTMcvPueLH11JE0fC5X2jJxBmKwPU",{"id":1090,"category":814,"definition":1091,"example":1092,"extension":347,"meta":1093,"stem":1098,"term":1099,"__hash__":1100},"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":1094},{"type":7,"value":1095,"toc":1096},[],{"title":342,"searchDepth":343,"depth":343,"links":1097},[],"glossary\u002Fservo-motor","Servo motor","IFtMLIEoNZ746ebquvkvp-PAqDQObQACMiWUTb3rfZ8",{"id":1102,"category":814,"definition":1103,"example":1104,"extension":347,"meta":1105,"stem":1110,"term":1111,"__hash__":1112},"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":1106},{"type":7,"value":1107,"toc":1108},[],{"title":342,"searchDepth":343,"depth":343,"links":1109},[],"glossary\u002Ftemperature-sensor","Temperature sensor","UbSScS-TCPLSFDjnxsaFltpoKbORTAOaxh68b_-FMw8",{"id":1114,"category":162,"definition":1115,"example":1116,"extension":347,"meta":1117,"stem":1122,"term":1123,"__hash__":1124},"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":1118},{"type":7,"value":1119,"toc":1120},[],{"title":342,"searchDepth":343,"depth":343,"links":1121},[],"glossary\u002Fthreshold","Threshold","xikcgh-PcWY0Z_HhDY16B8SLJLbL0oJD8WUU3KpHqvY",{"id":1126,"category":913,"definition":1127,"example":1128,"extension":347,"meta":1129,"stem":1134,"term":1135,"__hash__":1136},"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":1130},{"type":7,"value":1131,"toc":1132},[],{"title":342,"searchDepth":343,"depth":343,"links":1133},[],"glossary\u002Fvariable","Variable","nlzJUTSGqyIAKSbopFF01oPBuJT59zOT7MSoCpOMp1E",{"id":1138,"category":850,"definition":1139,"example":1140,"extension":347,"meta":1141,"stem":1146,"term":1147,"__hash__":1148},"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":1142},{"type":7,"value":1143,"toc":1144},[],{"title":342,"searchDepth":343,"depth":343,"links":1145},[],"glossary\u002Fwhile-loop","While loop","igK-e_snGhkP0kgSn6sPO7YQybQ0WpDfQMB0_8I2iZg",[1150,1156,1162,1168,1174,1180,1186,1192,1198,1204,1210,1216,1222,1228,1234,1240,1246,1252,1258,1264,1270,1276,1282,1288,1294,1300,1306,1312],{"id":813,"category":814,"definition":815,"example":816,"extension":347,"meta":1151,"stem":822,"term":823,"__hash__":824},{"body":1152},{"type":7,"value":1153,"toc":1154},[],{"title":342,"searchDepth":343,"depth":343,"links":1155},[],{"id":826,"category":814,"definition":827,"example":828,"extension":347,"meta":1157,"stem":834,"term":835,"__hash__":836},{"body":1158},{"type":7,"value":1159,"toc":1160},[],{"title":342,"searchDepth":343,"depth":343,"links":1161},[],{"id":838,"category":814,"definition":839,"example":840,"extension":347,"meta":1163,"stem":846,"term":273,"__hash__":847},{"body":1164},{"type":7,"value":1165,"toc":1166},[],{"title":342,"searchDepth":343,"depth":343,"links":1167},[],{"id":849,"category":850,"definition":851,"example":852,"extension":347,"meta":1169,"stem":858,"term":859,"__hash__":860},{"body":1170},{"type":7,"value":1171,"toc":1172},[],{"title":342,"searchDepth":343,"depth":343,"links":1173},[],{"id":862,"category":863,"definition":864,"example":865,"extension":347,"meta":1175,"stem":871,"term":872,"__hash__":873},{"body":1176},{"type":7,"value":1177,"toc":1178},[],{"title":342,"searchDepth":343,"depth":343,"links":1179},[],{"id":875,"category":850,"definition":876,"example":877,"extension":347,"meta":1181,"stem":883,"term":884,"__hash__":885},{"body":1182},{"type":7,"value":1183,"toc":1184},[],{"title":342,"searchDepth":343,"depth":343,"links":1185},[],{"id":887,"category":888,"definition":889,"example":890,"extension":347,"meta":1187,"stem":896,"term":897,"__hash__":898},{"body":1188},{"type":7,"value":1189,"toc":1190},[],{"title":342,"searchDepth":343,"depth":343,"links":1191},[],{"id":900,"category":162,"definition":901,"example":902,"extension":347,"meta":1193,"stem":908,"term":909,"__hash__":910},{"body":1194},{"type":7,"value":1195,"toc":1196},[],{"title":342,"searchDepth":343,"depth":343,"links":1197},[],{"id":912,"category":913,"definition":914,"example":915,"extension":347,"meta":1199,"stem":921,"term":922,"__hash__":923},{"body":1200},{"type":7,"value":1201,"toc":1202},[],{"title":342,"searchDepth":343,"depth":343,"links":1203},[],{"id":925,"category":814,"definition":926,"example":927,"extension":347,"meta":1205,"stem":933,"term":934,"__hash__":935},{"body":1206},{"type":7,"value":1207,"toc":1208},[],{"title":342,"searchDepth":343,"depth":343,"links":1209},[],{"id":937,"category":814,"definition":938,"example":939,"extension":347,"meta":1211,"stem":945,"term":946,"__hash__":947},{"body":1212},{"type":7,"value":1213,"toc":1214},[],{"title":342,"searchDepth":343,"depth":343,"links":1215},[],{"id":949,"category":814,"definition":950,"example":951,"extension":347,"meta":1217,"stem":957,"term":24,"__hash__":958},{"body":1218},{"type":7,"value":1219,"toc":1220},[],{"title":342,"searchDepth":343,"depth":343,"links":1221},[],{"id":972,"category":888,"definition":973,"example":974,"extension":347,"meta":1223,"stem":980,"term":981,"__hash__":982},{"body":1224},{"type":7,"value":1225,"toc":1226},[],{"title":342,"searchDepth":343,"depth":343,"links":1227},[],{"id":984,"category":814,"definition":985,"example":986,"extension":347,"meta":1229,"stem":992,"term":993,"__hash__":994},{"body":1230},{"type":7,"value":1231,"toc":1232},[],{"title":342,"searchDepth":343,"depth":343,"links":1233},[],{"id":996,"category":814,"definition":997,"example":998,"extension":347,"meta":1235,"stem":1004,"term":1005,"__hash__":1006},{"body":1236},{"type":7,"value":1237,"toc":1238},[],{"title":342,"searchDepth":343,"depth":343,"links":1239},[],{"id":1008,"category":814,"definition":1009,"example":1010,"extension":347,"meta":1241,"stem":1016,"term":1017,"__hash__":1018},{"body":1242},{"type":7,"value":1243,"toc":1244},[],{"title":342,"searchDepth":343,"depth":343,"links":1245},[],{"id":1020,"category":814,"definition":1021,"example":1022,"extension":347,"meta":1247,"stem":1028,"term":117,"__hash__":1029},{"body":1248},{"type":7,"value":1249,"toc":1250},[],{"title":342,"searchDepth":343,"depth":343,"links":1251},[],{"id":1031,"category":814,"definition":1032,"example":1033,"extension":347,"meta":1253,"stem":1039,"term":1040,"__hash__":1041},{"body":1254},{"type":7,"value":1255,"toc":1256},[],{"title":342,"searchDepth":343,"depth":343,"links":1257},[],{"id":1079,"category":814,"definition":1080,"example":1081,"extension":347,"meta":1259,"stem":1087,"term":29,"__hash__":1088},{"body":1260},{"type":7,"value":1261,"toc":1262},[],{"title":342,"searchDepth":343,"depth":343,"links":1263},[],{"id":1043,"category":850,"definition":1044,"example":1045,"extension":347,"meta":1265,"stem":1051,"term":1052,"__hash__":1053},{"body":1266},{"type":7,"value":1267,"toc":1268},[],{"title":342,"searchDepth":343,"depth":343,"links":1269},[],{"id":1055,"category":814,"definition":1056,"example":1057,"extension":347,"meta":1271,"stem":1063,"term":1064,"__hash__":1065},{"body":1272},{"type":7,"value":1273,"toc":1274},[],{"title":342,"searchDepth":343,"depth":343,"links":1275},[],{"id":1067,"category":850,"definition":1068,"example":1069,"extension":347,"meta":1277,"stem":1075,"term":1076,"__hash__":1077},{"body":1278},{"type":7,"value":1279,"toc":1280},[],{"title":342,"searchDepth":343,"depth":343,"links":1281},[],{"id":1090,"category":814,"definition":1091,"example":1092,"extension":347,"meta":1283,"stem":1098,"term":1099,"__hash__":1100},{"body":1284},{"type":7,"value":1285,"toc":1286},[],{"title":342,"searchDepth":343,"depth":343,"links":1287},[],{"id":1102,"category":814,"definition":1103,"example":1104,"extension":347,"meta":1289,"stem":1110,"term":1111,"__hash__":1112},{"body":1290},{"type":7,"value":1291,"toc":1292},[],{"title":342,"searchDepth":343,"depth":343,"links":1293},[],{"id":1114,"category":162,"definition":1115,"example":1116,"extension":347,"meta":1295,"stem":1122,"term":1123,"__hash__":1124},{"body":1296},{"type":7,"value":1297,"toc":1298},[],{"title":342,"searchDepth":343,"depth":343,"links":1299},[],{"id":1126,"category":913,"definition":1127,"example":1128,"extension":347,"meta":1301,"stem":1134,"term":1135,"__hash__":1136},{"body":1302},{"type":7,"value":1303,"toc":1304},[],{"title":342,"searchDepth":343,"depth":343,"links":1305},[],{"id":1138,"category":850,"definition":1139,"example":1140,"extension":347,"meta":1307,"stem":1146,"term":1147,"__hash__":1148},{"body":1308},{"type":7,"value":1309,"toc":1310},[],{"title":342,"searchDepth":343,"depth":343,"links":1311},[],{"id":960,"category":814,"definition":961,"example":962,"extension":347,"meta":1313,"stem":968,"term":969,"__hash__":970},{"body":1314},{"type":7,"value":1315,"toc":1316},[],{"title":342,"searchDepth":343,"depth":343,"links":1317},[],1785347039472]