Code Snippet

Expressions

Intersperse speech, smiles and frowns by using a variable.

The Expressions blocks

About this snippet

This snippet will make the robot smile and frown during speech. We can use a variable (that we called speechmovement) and an if conditional to stop Ohbot’s mouth being set to the Top and Bottom lip speech sensing values and instead set it to smile or frown.

Download

  1. Click the download button below.
  2. In the Ohbot App, on the File menu select ‘Open Ohbiverse Download’.
  3. Find the downloaded file and click Open.
Download snippet
Expressions — Code Snippet | Ohbot