Sven Haiges
Published © CC BY

Simple Calliope Robot

Use your Calliope Mini to control a 2 wheel robot. This example is meant to get you started and shows how easy it is to control the motors.

IntermediateShowcase (no instructions)1 hour4,811
Simple Calliope Robot

Things used in this project

Hardware components

Calliope mini
Calliope mini
×1
Adafruit Mini Round Robot Kit
×1

Story

Read more

Schematics

PXT Editor

Code

Robot Code

JavaScript
input.onButtonPressed(Button.A, () => {
    motors.dualMotorPower(Motor.A, 100)
    basic.pause(3000)
    motors.dualMotorPower(Motor.A, 0)
})
input.onButtonPressed(Button.B, () => {
    motors.dualMotorPower(Motor.B, 100)
    basic.pause(3000)
    motors.dualMotorPower(Motor.B, 0)
})
input.onButtonPressed(Button.AB, () => {
    motors.dualMotorPower(Motor.AB, 100)
    basic.pause(3000)
    motors.dualMotorPower(Motor.AB, 0)
})

Credits

Sven Haiges
4 projects • 17 followers
Contact

Comments

Please log in or sign up to comment.