Program Otto DIY Robot for Basic Movements with CircuitPython

Program Otto DIY Robot for Basic Movements with CircuitPython

Introduction

After assemble the Otto robot, next we will try to program it using CircuitPython. Basically we need to know how to control 4 servo motors to create the robot movement.

Video

Sample Program

This is CircuitPython sample program. You need to include these libraries in your CIRCUITPY/lib folder. You can download it from CircuitPython Library Bundle.

  • adafruit_motor
  • adafruit_hcsr04.mpy

Thank You

References:

Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.

"Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for a better application."

 

Be Part of Our Growing Community!

Related Products

5VDC HC-SR04 Ultrasonic Sensor -27% Best Seller
x 1 unit(s)

SG90 Micro Servo

$1.63 $1.95 $1.63

x 1 unit(s)

Related Posts

Bidirectional Visitor Counter using CircuitPython on Maker Nano RP2040

Bidirectional Visitor Counter using CircuitPython on Maker Nano RP2040

In this video I would like to share about a bidirectional visitor counter project that is programmed using CircuitPython on Maker Nano RP2040.....
Otto DIY robot head for Maker Nano RP2040

Otto DIY robot head for Maker Nano RP2040

I would like to try building the Otto DIY robot using Maker Nano RP2040 and program it using CircuitPython. But the STL file provided cannot fit the board. So how?....
Build Otto DIY Robot Using Maker Pi RP2040

Build Otto DIY Robot Using Maker Pi RP2040

Build an Otto DIY robot Using Maker Pi RP2040. This board comes with a dual-channel DC motor driver, 4 servo motor ports, and 7 Grove I/O connectors. With this board, we can build the robot easily and..