Smart Creativity
Published © CC BY

World first Otto robot without 3D printer/without arduino/SC

How to make a Otto Diy Dancing Robot. This is the world's first Otto robot without 3D printer and Arduino.

BeginnerFull instructions provided2 hours41
World first Otto robot without 3D printer/without arduino/SC

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×2
SG90 Micro-servo motor
SG90 Micro-servo motor
×2
Jumper wires (generic)
Jumper wires (generic)
×1
Battery Holder, 3 x AAA
Battery Holder, 3 x AAA
×2
Battery, 9 V
Battery, 9 V
×4

Software apps and online services

MakeCode
Microsoft MakeCode

Hand tools and fabrication machines

Digilent Screwdriver
Digilent Screwdriver

Story

Read more

Schematics

code screenshot

remote code screenshot..

Code

robot microcontroller code

Scratch
upload this code in robot.
network.onInfraredReceivedNumber(function (num) {
    for (let i = 0; i < 3; i++) {
        if (num == 1) {
            music.pewPew.play()
            light.setAll(0xff0000)
            pins.A1.servoWrite(20)
            pause(500)
            pins.A1.servoWrite(100)
            pause(500)
            pins.A1.servoWrite(75)
            pause(500)
        }
        if (num == 2) {
            light.setAll(0x7f00ff)
            pins.A2.servoWrite(160)
            pause(500)
            pins.A2.servoWrite(80)
            pause(500)
            pins.A2.servoWrite(110)
            pause(500)
        }
        if (num == 3) {
            pins.A1.servoWrite(10)
        }
        if (num == 4) {
            pins.A2.servoWrite(170)
        }
        if (num == 5) {
            pins.A1.servoWrite(75)
            pins.A2.servoWrite(105)
        }
    }
})
input.buttonA.onEvent(ButtonEvent.Click, function () {
    music.setVolume(225)
    light.setBrightness(45)
    music.pewPew.loop()
    light.showRing(
    `black black red blue blue blue blue red black black`
    )
    pause(2000)
    light.showRing(
    `black black yellow green green green green yellow yellow black`
    )
    pause(2000)
    light.showRing(
    `black black pink orange orange orange orange pink yellow black`
    )
    pause(2000)
    music.stopAllSounds()
    light.showAnimation(light.colorWipeAnimation, 1000)
    pause(500)
    light.showAnimation(light.theaterChaseAnimation, 2000)
    pause(500)
    light.showAnimation(light.rainbowAnimation, 2000)
    light.clear()
})
input.onLoudSound(function () {
    if (input.soundLevel() >= 180) {
        for (let i = 0; i < 2; i++) {
            light.setAll(0x00ffff)
            pins.A2.servoWrite(105)
            pins.A1.servoWrite(75)
            pause(500)
            pins.A2.servoWrite(75)
            pins.A1.servoWrite(120)
            pause(500)
            pins.A2.servoWrite(105)
            pins.A1.servoWrite(75)
            pause(500)
            pins.A2.servoWrite(105)
            pins.A1.servoWrite(75)
            pause(500)
            pins.A2.servoWrite(180)
            pins.A1.servoWrite(0)
            pause(500)
            pins.A2.servoWrite(105)
            pins.A1.servoWrite(75)
            pause(500)
            music.stopAllSounds()
        }
    }
})
input.onGesture(Gesture.Shake, function () {
    music.setVolume(255)
    music.siren.playUntilDone()
    light.setBrightness(45)
    light.showAnimation(light.theaterChaseAnimation, 2000)
    pause(2000)
    light.showAnimation(light.runningLightsAnimation, 2000)
    pause(2000)
})
input.buttonB.onEvent(ButtonEvent.Click, function () {
    light.setAll(0x00ff00)
    pause(2000)
    music.jumpDown.play()
    light.graph(3, 2)
})
pins.A1.servoWrite(75)
pins.A2.servoWrite(105)
music.stopAllSounds()
forever(function () {
	
})

Remote of otto

Scratch
upload this code in remote of robot..
input.buttonA.onEvent(ButtonEvent.Click, function () {
    network.infraredSendNumber(1)
    pause(99)
    network.infraredSendNumber(1)
    light.setAll(0xff0000)
})
input.buttonB.onEvent(ButtonEvent.Click, function () {
    network.infraredSendNumber(2)
    pause(100)
    network.infraredSendNumber(2)
    light.setAll(0xffff00)
})
input.onGesture(Gesture.TiltDown, function () {
    light.setAll(0x00ff00)
})
input.onGesture(Gesture.TiltRight, function () {
    network.infraredSendNumber(4)
    light.setAll(0x00ffff)
})
input.onGesture(Gesture.TiltLeft, function () {
    network.infraredSendNumber(3)
    light.setAll(0xff0080)
})
input.onGesture(Gesture.TiltUp, function () {
    light.setAll(0x65471f)
})
input.onGesture(Gesture.FaceUp, function () {
    network.infraredSendNumber(5)
    light.setAll(0x000000)
})
forever(function () {
	
})

Credits

Smart Creativity

Smart Creativity

13 projects • 3 followers
A creative student....🧒🧒🧑

Comments