Pre-Test:
https://forms.gle/gK24QyWM6PyrmpkPA
Sign in to the pre-test using yourFirstName@esteem.com (with no spaces)
Syllabus:
Teachable Machine:
https://teachablemachine.withgoogle.com/
Programming:
Go to Firebase Studio
Sign in with your Google Account if needed.
Use “import a repo”- copy and paste this link into “repo url”:
1 |
https://github.com/JohnInWI/robottemplate2025_final |
Add these for teachable machine:
add to snippets:
1 2 3 4 5 6 7 |
"Change Header": { "prefix": " 2ChangeHeader", "body": [ " document.getElementById(\"myTitle\").innerHTML =\"\" ; //place new header text between quotaion marks" ], "description": "Change Header" } |
Replace code in TeachableMachine.js with this code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
var imgURL = "https://teachablemachine.withgoogle.com/models/BMlMVXyym/"; var soundURL = "https://teachablemachine.withgoogle.com/models/FzwSbZ9R9/"; var poseURL = "https://teachablemachine.withgoogle.com/models/p_iW1qIxr/"; var teachableData=[]; var runOnce=false; /////////////Image Function///////////////////////////////////////// function teachableCodeImage(){ if (teachableData[0]==1) //replace condition1 with your condition { document.getElementById("myTitle").innerHTML ="this is nothing" ; //place new header text between quotaion marks } else if (teachableData[1]>=1) //replace condition2 with your condition { document.getElementById("myTitle").innerHTML ="this is a balloon" ; //place new header text between quotaion marks } else if (teachableData[2]>=1) //replace condition2 with your condition { document.getElementById("myTitle").innerHTML ="this is lester" ; //place new header text between quotaion marks neoPixels(); runOnce=true; } } function teachableCodeSound(){ if (teachableData[0]==1) //replace condition1 with your condition { } else if (teachableData[1]==1) //replace condition2 with your condition { } else if (teachableData[2]==1) //replace condition2 with your condition { } } function teachableCodePose(){ if (teachableData[0]==1) //replace condition1 with your condition { } else if (teachableData[1]==1) //replace condition2 with your condition { } else if (teachableData[2]==1) //replace condition2 with your condition { } } |