Here are some details about how to navigate around Cozmo’s Code Lab.
Specific Questions about Cozmo's Code Lab?
For any questions about how to use Code Lab, build your Projects, or report issues, please take a look at the Code Lab Community forum located within the Cozmo SDK Forums.
Please note that this site requires you to Sign Up and create a site-specific account. Your existing Anki Account will not work and you’ll need to be 13 years of age or older to access the community. If you are not at least 13 years old, please get help from your parents to sign up.
Code Lab is based on Scratch
Cozmo’s Code Lab is based on Scratch, a project of the Lifelong Kindergarten Group at the MIT Media Lab. You can find more information at the Scratch web site. [scratch.mit.edu]
Cozmo’s Code Lab is available in the Cozmo app version 1.6 or later. While the Cozmo app minimally requires Android 4.4.2 (Kit Kat), Code Lab itself requires Android 5.0 (Lollipop) or later or Fire OS 5.0 or later. Code Lab is not recommended for use with the original iPad mini or the the iPod touch (5th Generation or earlier) devices.
Code Lab Tutorial
A quick Tutorial is available at any time from within Code Lab by clicking .
Working with Projects
Once you complete the Tutorial, you will see the Save & Load screen.
At the Save and Load screen, you can scroll through and use any of the SAMPLE projects or create an entirely New Project.
When you create a New Project or start using a SAMPLE project, the Code Lab workspace opens.
The Starting Flag on the left side of the screen is where all projects begin. On the right side of the screen you’ll find the green flag and the stop button, which respectively tell Cozmo to start and stop your instructions. These instructions that you chain together are made up of the different groups of Blocks you’ll find at bottom of the screen. Blocks allow you to create Sentences that instruct Cozmo to do different things.
Here’s some basic details about the different Categories of Blocks and what they do:
In the DRIVE category, you’ll find 6 blocks that allow you to control Cozmo’s movement. You’re able to drive him forward, forward-fast, backward, and backward-fast for the number of units you decide. You can also turn Cozmo left or right, and command him to drive up to a Cube. (To lift the cube, see Actions.)
The ACTION blocks allow you to move Cozmo’s Lift and Head up and down, change the color of his Backpack Light, or just turn it off. You can also use ACTION blocks to make Cozmo speak short phrases. There are 4 ACTION blocks. Tap the down arrow underneath each Block to choose your desired result. For example, the arrow underneath the Head Block allows you to choose Look Up, Look Ahead, or Look Down.
You can make Cozmo show emotions by using ANIMATION blocks. These include Act Happy, Sneeze, Snore and eleven other animations for a total of 14. There’s also a Mystery block that will play a randomly selected Animation.
The EVENTS category contains blocks that act as triggers for other actions. The Green Flag begins every Code Lab project. The other ACTION blocks cause Cozmo to wait for something to happen like make Cozmo wait until he’s seen a face, a smile, a frown, or a Cube before continuing a program. You can also tell him to wait until you tap on one of his Cubes.
CONTROL Blocks allow you to repeat the other categories of blocks in a program, either a set number of times or continuously. You literally wrap a CONTROL block around those blocks you’d like Cozmo to repeat. To place a Control around a sentence of Blocks, slide the Control Block towards the top, left-most Block you want repeated; the Control Block will automatically expand to wrap around all Blocks to its right.
Looking for a Challenge?
If you’re looking for things to do with Cozmo in Code Lab, we’ve included 32 challenges to help spur your imagination.
Just tap the above CHALLENGE button in the upper left corner of the screen.
You’ll find a series of 32 challenges for you to complete. Each successive challenge increases in complexity and will demand a greater level of skill for you to solve it. Try each challenge first, and if you can’t solve it, you can find the solution on the next page. Take a shot at completing each challenge before you peek at the answer.
Some Additional Notes
Please note that you can’t rename projects or save any changes to Sample Projects. Your saved Code Lab Projects are only stored in the Cozmo app itself. If you remove the Cozmo app's data or uninstall the Cozmo app, your saved Code Lab Projects will be lost and cannot be recovered.
For a more advanced programming experience with Cozmo, please take a look at the Cozmo SDK.