CODINGFUNKEY CODING FUNKEY CODINGFUNKEY CODINGFUNKEY CODING FUNKEY
This book belongs to:
STEMInnovator’sWorkbook-Level3
Copyright©2026
Author:LindseyOwn
Editors:AsmaMahamedi,RebeccaMcDowell,HariMukulSagarandErinGoodwin
ISBN:978-981-17494-0-0
Publishedby: SKOOL21PTE.LTD.
71RobinsonRoad,#14-01,068895,Singapore
FirstEditionpublishedbySKOOL21PTELTD-Singapore,2024
SecondEditionpublishedbySKOOL21LLC-UnitedStates,2026
Allrightsreserved,Nopartofthisbookmaybereproduced,distributed,ortransmitted inanyformorbyanymeans,includingphotocopying,recording,orotherelectronicor mechanical methods, without the prior written permission of the publisher, except in the case of brief quotations embodied in critical reviews and certain other noncommercialusespermittedbycopyrightlaw.
Forpermissionsorinquiries,pleasecontact:
Email:info@skool21.org
Website:https://skool21.org
Address:600CaliforniaSt,#13-021,SanFrancisco,CA94108,UnitedStates
STEMInnovator!
Welcometoyourbook! Welcometoyourbook!
Youarea YouareaSTEMInnovator STEMInnovator..AnInnovatorisaherowho AnInnovatorisaherowho usescodeandlogictomakemachinescometolife! usescodeandlogictomakemachinescometolife!
Openyour OpenyourCodingFunkeyKit CodingFunkeyKit..Insideyouhave: Insideyouhave:
TheBrain: TheBrain:AFunkeytothinkandrunyourcode. AFunkeytothinkandrunyourcode.
TheSense TheSenses: s:Sensorsthatseedistan Sensorsthatseedistancceandhearsounds. eandhearsounds.
TheAction: TheAction:ServosandLEDsthatmove,spin,andglow. ServosandLEDsthatmove,spin,andglow.
IInthisbook,youwill: nthisbook,youwill:
CreateaFoodMazeGame CreateaFoodMazeGamettolearnhowanimalssurvive. olearnhowanimalssurvive.
Bui BuildaLandmarkMap ldaLandmarkMapttotraveltheworldusingcode. otraveltheworldusingcode.
DesignaFloodControl DesignaFloodControlSystem Systemttohelpprotectcities. ohelpprotectcities.
EarnYour EarnYourRewards Rewards!!
Asyoucompleteeachproject,youwillearn Asyoucompleteeachproject,youwillearnIInnovatorStickers nnovatorStickers.. Attheendofthisbook,youwillreceiveyour Attheendofthisbook,youwillreceiveyourCertificateofInnovation CertificateofInnovation ttoshowtheworldthatyouarea oshowtheworldthatyouareaMasterofCoding! MasterofCoding! Let’sbuildtogether! Let’sbuildtogether!
MeetYourCodingFunkeyKit!
Openyourboxandseewhatisinside!This kithaseverythingyouneedtobuildand play.UseyourFunkeyBoardwithScratch programmingandsensors.Youcanturn yourbigideasintorealworkingsimulation Let’sbuildtogether!
KITCOMPONENTS KITCOMPONENTS
1.Power&Control
2.Sensors,Motor&Lights
LEARNINGOBJECTIVES LEARNINGOBJECTIVES
Attheendofthislesson,learnerswillbeableto:
Findandusesprites(characters)inScratch
Changeasprite’scostumes(differentpicturesofonecharacter)
Usesimpleblockstotellaspritewhattodo
Usethegreenflagandkeypressblockstocontrolasprite
VOCABULARY VOCABULARY
MATERIALS MATERIALS
AcharacterinScratchthatyoucangiveinstructionsto. Apictureofasprite.Onespritecanhavemanycostumes.
Onepieceofcode.Ablocktellsthespritewhattodo.
Computer
WHATISSCRATCH? WHATISSCRATCH?
Scratchisacodingprogram.Scratchletsyougiveinstructionstoa computer.WithScratch,youcanmake:
HOWCOSTUMESSHOWMOVEMENT HOWCOSTUMESSHOWMOVEMENT
Aspritecanlooklikeitismoving.Example:
Onecostumeshowsthefrontlegup
Onecostumeshowsthefrontlegdown
Whenthespritechangescostumesquickly,itlookslikethespriteiswalking.
GETTINGSTARTED:CREATEASPRITEWITHTWOCOSTUMES
Nowwewillmakeaprogramthatstartsatthegreenflagand moveswiththespacebar.
1.OpenanewScratchproject.
2.Chooseaspriteordrawyourown.
3.Clickonthe"Costumes"tabatthetop.
4.Usethedrawingtoolstomaketwo costumes Costumeideas:
Abirdwithwingsmovingupanddown
Afishwithatailmovingsidetoside
Arabbithoppingupanddown
Nowyouwillmakeyourspritemoveacrossthescreen.
1.ClicktheCodetab.
2.AddtheseblocksfromtheEventssection:
Whengreenflagclicked
Clickthegreenflagtostart Watchyourspritegotothestartplace Thisblock tellsthespritewhattodowhentheprogramstarts.
3.Addtheseblocks:
(Lookssection) (Motionsection)
Xmeansleftandright.
Theseblockssethowthespritelooksandputthespriteinthestartingplace.
4.Addtheseblocks: (Eventssection) (Lookssection) (Motionsection)
Theseblockschangethecostumeandmovethespritetotheright.
WHATHAPPENS? WHATHAPPENS?
Pressthespacebaragainandagain.
Thespritechangescostumes
Thespritemovestotheright
Thespritelookslikeitiswalkingacrossthescreen.
1.Doesyourspritechangecostumeswhen youpressthespacebar? STOPANDTHINK STOPANDTHINK No Yes
2.Whathappenswhenyoustoppressingthespacebar?
EXTRACHALLENGE EXTRACHALLENGE TrynewMotionandLooksblocks.Youcan:
1.Makethespriteturn
2.Makethespritechangecolor
3.Makethespritemovetoa randomplace
Ifyoumakebigchanges(turn,color),youmayneedaresetblockunderthe greenflag(likepointindirection90).
DRAWINGBLUEPRINTS DRAWING BLUEPRINTS DRAWINGBLUEPRINTS IINTRODUCTION NTRODUCTION
Polygonsareshapesweseein buildingsanddesigns.Architects usepolygonstodrawfloorplansfor housesandbuildings.Manypartsof ahousecanbemadefrompolygon shapes.
Apolygonisa2-dimensional (flat)shape.
Regularpolygons
Aconstructionteamwantstodraw theshapeofahouse.Thehouse hasanirregularpolygonshape.
Yourprojecthelps planhousesthatare saferandsmarter. Whenyouwork together,you cancontrol machinesbetter
MEASUREYOURSUCCESS MEASUREYOURSUCCESS
TEAMROLES TEAMROLES
Workwithyourteamtodeterminewhowillcompleteeachrole.
Leader
MaterialManager Reporter
TestingSupervisor
MATERIALS MATERIALS
Whichpartsdoyouthinkwillyouneed?
VOCABULARY VOCABULARY
Atechnicaldrawingorplanusedtodesignbuildings
Apointwheretwolinesintersect(plural:vertices)
TECHNOLOGYINFOCUS AFunkeycontrolsystemletsususealligator clipsandeverydayobjectstocontrolwhat happensinaScratchprogram.Wecanuseitto:
Movecharacters
BUILD BUILD Controladrawing
Createourownbuttons&switches
Seethestepsbelowforinspirationonhowtotobuild.
1.OpenanewScratchproject.
2.ClicktheBallsprite(oryour sprite).
3.ClickAddExtension(bottomleft).
4.ClickPen.
5.Makethiscodefirst:
6.Makethiscodenext:
7.Make4smallcodeparts.Onefor eacharrowkey.
8.Buildthisresetcode:
Youwillcodeandbuildyourowncontrol system.Twopeoplewillworktogether.You willdrawablueprintofahouse.Thehouse willuseregularandirregularpolygons.
DESIGNANDPLAN DESIGNANDPLAN Sketchyourideasforyourcontrolsystemintheboxbelow.Use FunKeyandScratch.
SHAREYOURIDEAS SHAREYOURIDEAS Writeonegreatideafromeachteammate:
TEST TEST Gobacktothe'MeasureYourSuccess'andcheckthe boxes.Doesyourprojectmeetallthegoalsandrules?
MATHANDSCIENCECONNECTION MATHANDSCIENCECONNECTION
1.Circleeachregularpolygon.Drawasquarearoundeachshape withfoursides.
3.Drawyourirregularpolygon.Countthesides.Countthecorners. Countboxestofindtheperimeter.
REFLECT REFLECT
SUSTAINABILITYINFOCUS
SustainableCitiesmeansplacesaresafeandeasytolivein.Your shape-drawingprogramhelpsplanbuildingstherightway.This includes:
Planningsafebuildings Drawingclearfloorplans Testingdesigns
1.Howdoesyourpolygondesignhelpacity?Circlethecorrect answer.
2.Whoplansbuildingsusingshapes?Circlethecorrect answer.
FEEDBACK FEEDBACK
Completethefollowingsentenceandpracticesayingtoyourfriends:
3.OnewayImademypolygon designdeviceeffectivewas:
Showyourprojectto3friendsandcollectstickers!
1.Ibuilta 2.Ithelps
Trytobuildandprogramthetoolyourself.Ifyouarehaving trouble,trythefollowingdirections.
SAMPLESOLUTION SAMPLESOLUTION Trycreatingyourowndesign.Ifyouneedhelp,usethisexamplefor inspiration.
SAMPLECODE
Withthiscode:
Usethearrowkeystomove. Pressspacetodraw. Theballmovesto thestart. Clickthegreen flagtostart.
Youcandrawmanypolygonshapes.PressWtoclearandtryagain.
Withthisbuild,two peopleworktogether.
PlayerA Controlsupand down.
PlayerB Controlsleftandright
Holdthegroundclip.Tapth togethertodrawtheshape.
FOOD MAZE GAME IINTRODUCTION NTRODUCTION Animalsneedenergyfromfoodtolive. Eachanimalhasaspecialplaceina foodchain.Someanimalseatplants, andotheranimalseatthem.Whenwe understandfoodchains,wecanhelp protectanimalsandLifeonLand.
Weuseafood chaintoshow howplants andanimals getenergy.
Weusedirection andmovement likeNorthand Southtomove throughourmaze.
Zoologistsstudyanimals andtheirhabitatstokeep themsafeandhealthyin nature.
Animalsinourneighborhooddepend oneachotherforfood.Ifwedonot understandtheirfoodchains,we cannothelpthem.
Youwillbeengineers! Yourteamwillhelpbydesigningafungametoteachothershow foodchainswork. DEFINETHEPROBLEM
MEASUREYOURSUCCESS MEASUREYOURSUCCESS
TEAMROLES TEAMROLES
Workwithyourteamtodeterminewhowillcompleteeachrole.
Leader
MaterialManager Reporter
TestingSupervisor
MATERIALS MATERIALS
Whichpartsdoyouthinkwillyouneed?
VOCABULARY VOCABULARY Afoodchainshowshowlivingthingsdependoneachother forfoodandenergy.
PartOne
1.OpenScratchandstartanewproject.
2.Buildthefollowingcode.Noticethat theuparrowwillmovethespriteby10 pointsinthe“y”direction,whichisupon thescreen.
3.Addarrowkeystomovethespritein allfourotherdirections.
PartTwo
1.Inthelastproject,youmayhave usedalligatorclipsconnectedtothe FunKeyarrowkeysandground.Try connectingthetiltsensorstothe arrowkeyplugsinstead!
2.ConnectFunKeytoyourcomputer usingtheUSBpowercable.
3.TrymovingthespriteinScratch usingthetiltsensors.
PartThree
1.SelecttheChooseaBackdropiconfromthe bottomrightthenselectPaint.
2.Drawapurplelinefromthecenterofthe canvasstraightdown.
3.Drawagreencircleinthelowerrightcorner.
4.Returntoyourcodescreenandbuildthiscode. Usethedroppertomatchthebackgroundcolor.
5.TestthecodeusingtheFunKey.Whathappens whenyoumovethespritetothepurpleline? Whenyoumoveittothegreencircle?
THISISWHEREYOUUSEYOUROWNTHINKING! THIS IS WHERE YOU USE YOUR OWN THINKING!
Designagameandcontrollerwheredifferent animalsmovethroughamazetofindtheircorrect food.
DESIGNANDPLAN DESIGNANDPLAN Sketchyourideaforyourfoodchainmazegame.Includewaystouse conductiveandartmaterialstomakethecontroller.
SHAREYOURIDEAS SHAREYOURIDEAS Writeonegreatideafromeachteammate:
TEST TEST Gobacktothe'MeasureYourSuccess'andcheckthe boxes.Doesyourprojectmeetallthegoalsandrules?
1.Drawascaledbargraphtorepresentalion’stypicalfoodforone month.
1.Howdoesyourfoodchaingamehelpnature?Circlethe correctanswer.
2.Whostudiesanimalsandtheirfood?Circlethecorrect answer.
FEEDBACK FEEDBACK Completethefollowingsentenceandpracticesayingtoyourfriends:
3.OnewayImademyFood MazeGameeffectivewas:
Ibuilta
Trytobuildandprogramthetoolyourself.Ifyouarehaving trouble,trythefollowingdirections.
SAMPLESOLUTION SAMPLESOLUTION Trycreatingyourowndesign.Ifyouneedhelp,usethisexamplefor inspiration.
SAMPLECODE
HowtoCodetheBear
Move:Usethearrow keystomovethe bearthroughthe maze.
Oops!:Ifthebeartouchesapurplewall,itgoesbacktothe start.
Win!:Ifthebeartouchestheredfish,itsays“BearWins!”
TheBearController
ToMove:Tiltthecontroller whereyouwantthebeartogo.
HowitWorks:Sensortellthe beartomoveup,down,left,or right.
ToStop:Setthecontrollerflat onthetable.Theslantedsides turnthesensorsoff!
C E R T I F I C A T E O F I N N O V A T I O N C E R T I F I C A T E O F I N N O V A T I O N
C E R T I F I C A T E O F I N N O V A T I O N C E R T I F I C A T E O F I N N O V A T I O N