Code Snippet

Set Position

Make Ohbot move to a particular position when a key is pressed.

The Set Position blocks

About this snippet

Ohbot and Picoh have servo motors that allow their features to be set to particular positions. Ohbot's motors Picoh's motors The position of any motor/or eyetilt eyeturn (LED matrix simulation) can be set by setting a number in a Set instruction block.

Go further

Can you make several actions happen when you press a key?

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
Set Position — Code Snippet | Ohbot