AI tutorials
3 Videos
More details
Make Me Happy uses Machine Learning for Kids to make a machine learning model to detect happy or sad text. The 3 part tutorial uses the model in a Scratch project.
Make Me Happy uses Machine Learning for Kids to make a machine learning model to detect happy or sad text. The 3 part tutorial uses the model in a Scratch project.
It’s not always easy to figure out why your code is not working.
The video below gives you some tips for how to help see what might be going on in your App Inventor project, so you can successfully debug your app so it works perfectly!
In the video below, learn some tips to help you debug your Scratch code.
It’s time to put your trained model to work!
Dataset
Model
finds
patterns
Model
makes
predictions
Correct actions or decisions!
Which platform did you choose?
Click on the platform you trained your model with to learn more about how to add code to make your project take action!
Tip: Choose one path and follow it. Do not do them all!
Teachable Machine just allows you to train an AI Model. There are many platforms that will allow you to use that model to make something.
The first video shows how to use a Teachable Machine model for snap, clap, whistle sounds (Unit 5) in a Scratch project.
The next video shows you how to use a Teachable Machine image model to make a rock, paper, scissors game in App Inventor. If you need help making the model in Teachable Machine using images, this video will walk you through it.
In this video, you’ll learn to take the Iris identification AI model from Unit 7, and use it in a Scratch project to display the correct iris picture based on sepal and petal measurements.
Models created with the App Inventor Personal Image Classifier or the Personal Audio Classifier can be integrated into a mobile app using MIT App Inventor.
Now code the app so it identifies images of citrus to tell whether it’s healthy or diseased.
By now you should have a list of features for your mobile app.
Below are some different tutorials for you to follow, depending on the type of app you are building.
If you don’t see a tutorial below that has some of the same features you want to add to your app, there are many other ways to find help!
Part 2 shows you how to add a second screen to display the phone number and website, and allows the user to place a phone call to the organization.
In these tutorials, learn how to use TinyDB to create an app where users can track their green activities from day to day. Their tracked information is stored on the mobile device so it can be updated each day.
In this advanced tutorial, you can add to the Green Tracker by using a Clock component to see whether the user has done green activities one day after another, and you can reward them for their commitment to being green.
This tutorial gives you some tips for how you can change values in your app to help with testing. In this case, you are “tricking” your app by saving which day you last did something green, so you can test the new day tracking feature from above!
Scratch game apps are really fun and can be a great way to educate users about big problems!
This is what the game looks like when finished.
You made a Scratch game and learned all about conditional blocks.
What ways can you improve or add to the Ocean Plastic Cleanup game?
Try adding one new feature. Here are some suggestions:
What else can you add?
Mobile game apps are really fun and can be a great way to educate users about big problems!
This is what the game looks like when finished.
You will learn a lot about the Canvas and ImageSprite components in the video, but if you want to skip the video and get right to coding, you can load the template file in App Inventor.
Learn to place the ImageSpritate on the Canvas in code blocks.
Here comes the fun part – getting the ImageSprites to move through the ocean!
In this last video, check who gets there first – the diver or the fish!
You made a mobile app game and learned all about conditional blocks. You also got practice with making a procedure which is really useful when coding!
What ways can you improve or add to the OceanPlasticCleanup game?
Try adding one new feature – an animated plastic bottle, multiple fishes, sounds…
What else can you add?
Before you start coding, let’s learn about variables.
There are times you need to keep track of different information inside your Scratch project. That is what variables are for.
You’ll be using variables in the Scratch project you will build in this lesson.
Click on the orange i to learn about the highlighted parts. Click on the arrows on the left and right to learn about other parts of the Scratch platform.
The Blocks Palette lists all the blocks you can code with.
Click on the colored circles to open different block types.
The Script Area is where you drag code blocks.
The Stage is where the project runs.
The Sprites panel is where all your sprites are shown, and where you can add more by clicking this icon.
The Backdrop Panel is where you can change the stage backdrop.
The Costumes Tab is where you can edit the Sprite's costume.
And add new costumes.
The Sounds Tab is where you can change any sound (make it faster, slower, louder, etc.)
And add new sounds.
There are two parts to making an app with App Inventor. First you design what your app looks like, then you tell the app what to do by coding it.
Click on the orange i to learn about the highlighted parts. Click on the arrows on the left and right to learn about other parts of the Designer.
The Palette lists ALL the possible components (parts) you can add to your app.
They are grouped by drawers or tabs. You can just click a drawer to open it.
The Viewer shows what the app looks like after you drag components from the Palette.
Non-visible components don't appear on the app screen but are still important parts of the app.
The Components Panel lists all the components that have been added to the app.
They have an extra space in front of them if they are contained inside another component.
The Properties Panel is where you see or change the different features for each component.
The Media Panel is where you upload files like images and sounds to use in your app. You can just drag and drop files onto the Media Panel.
Now that you have added all the components for the app, you’ll move to the Blocks Editor to start coding the app next!
Before you start coding, let’s learn about variables. You’ll need to use them when you code the Recycle Game.
If you are making a mobile app, there are times you need to keep track of different information inside your app. That is what variables are for.
Click on the orange i to learn about the highlighted parts. Click on the arrows on the left and right to learn about other parts of the Blocks Editor.
The Blocks panel lists all the blocks available to be used.
Built-in blocks are part of every app.
Each component also has its own set of code blocks.
The Viewer is your coding workspace, where you place all your code blocks.
Click on a component, then drag the block you want onto the Viewer.
The Backpack lets you save your code blocks to reuse in other projects.
Drag the blocks you make into the backpack. You can open another project and drag them out to reuse them.
Check your warnings in yellow and errors in red before running your app.
You can zoom in and out and reset the Viewer zoom.
You can remove unused blocks by dragging them to the trash can to delete them.
When you make a cool project, you want to make sure and save it!
Give your project a descriptive name so you’ll know what it’s about.
Then Save Now under the File menu.
To see all your projects, click on the Folder next to your username.
If you click on a project, you will see the project page, where you can run the project.
Click See inside to edit the project again.
Did you have fun coding in Scratch?
Excited to experiment more?
Check out the thousands of public projects on the Explore tab on the Scratch website.
ADDITIONAL RESOURCES
You can also make your project using OctoStudio, a version of Scratch that runs on your phone.
It works a lot like Scratch, but has been designed so you can build and run your project directly on the phone.
An algorithm…
In this video, watch as this dad teaches his kids a lesson about why algorithms must be exact, easy to understand, and in the right order.
Best practices: Encourage students to break down the task into small steps. Keep them excited by reminding them that this is the first step to coding.
Optional activity: Do the Peanut Butter and Jam activity with your students!
More background: European schools experimented with ways to teach computer science to young young kids (4-5 years old) but it’s a really fun activity to do with anyone!
They wanted to illustrate that computers are not smart. They are just very fast (and dumb) machines that do whatever we program to tell them to do. They did this by acting like computers and the kids “programmed” the computers/teacher to make a PB&J. This is quite hilarious if done correctly because the goal is to take the commands as literally as possible. If the students first step is “Spread the peanut butter on the bread” then teachers/computers will not do the obvious things first they will do the literal thing which would probably be to spread peanut butter all over the ENTIRE loaf of bread (since the student didn’t specify just one piece of toast).
There is an example video here with more instructions and information.
Guiding Questions to ask students: Are there any other games that need an algorithm to play them? Think about any of those Diner games where you have to make people’s orders. First you cook the meat, chop the veggies and then put it all together on a plate! Like Overcooked! Are there any other real life games that use an algorithm? What about a rubik’s cube? You repeat certain patterns until the squares are moved where you want them, that’s an algorithm!
Mentor tips are provided by support from AmeriCorps.
How did the activity go?
If your partner didn’t get it right, try fixing your algorithm so they can follow the steps!
TIPS TO REMEMBER
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |