Ohbot
  • OH
  • Buy
    • Ohbot
    • Picoh
    • Accessories
    • Compare Robots
  • Get Started
    • Assemble Ohbot Kit
    • Get Started Ohbot
    • Get Started Picoh
    • Accessories
    • Technical Notes
    • Support
  • Learn
    • Block Programming
    • Python Programming >
      • Programming Ohbot
      • Programming Picoh
    • Share
<- Code Snippets

Change motor position

Picture
This snippet changes the position of the head nod and head turn motors by a set amount when an arrow key is pressed. It uses the change block. This changes the position of a motor by a number between 0.1 and 10 in one direction. You can also change by negative numbers between -0.1 and -10 to move in the opposite direction.

Go further
Try several changes at once by using several change blocks in a stack.
Download Snippet
To open the snippet in the Ohbot App on the File menu select Open Ohbiverse Download. Locate the downloaded file and click Open.
Picture
OH

About
Ohbot Robots
Our Story
Follow us
Contact
Buy
Ohbot
Picoh
Accessories
Order enquiries


Get Started
​Assemble Ohbot Kit
Ohbot
Picoh
Ohbot Accessories
Technical Notes

Support

Learn
Block Programming
  Ohbot Python
  Picoh Python    Share
​
​Ohbot Ltd.
5 Halliday's Mill
London Road, Chalford
Gloucestershire, GL6 8NR, UK
Picture
Picture
Picture
Picture
Picture
Copyright © Ohbot Ltd.  All rights reserved.
​Ohbot
® is a registered trademark of Ohbot Ltd.
  • OH
  • Buy
    • Ohbot
    • Picoh
    • Accessories
    • Compare Robots
  • Get Started
    • Assemble Ohbot Kit
    • Get Started Ohbot
    • Get Started Picoh
    • Accessories
    • Technical Notes
    • Support
  • Learn
    • Block Programming
    • Python Programming >
      • Programming Ohbot
      • Programming Picoh
    • Share