Smart Creativity
Published © CC BY

How to make spider walking robot at home || #smartcreativity

Build your own smart walking spider robot at home in 1 hour. So cool spider robot toy.

BeginnerFull instructions provided1 hour712
How to make spider walking robot at home || #smartcreativity

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Sewable Conductive Thread
Sewable Conductive Thread
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Story

Read more

Schematics

screenshot of code

see it.

Code

Robot code

Scratch
//smartcreativity
input.buttonA.onEvent(ButtonEvent.Click, function () {
    for (let i = 0; i < 4; i++) {
        pins.A1.servoWrite(90)
        pins.A2.servoWrite(90)
        pause(200)
        pins.A1.servoWrite(95)
        pins.A2.servoWrite(95)
        pause(200)
        pins.A1.servoWrite(100)
        pins.A2.servoWrite(100)
        pause(200)
        pins.A1.servoWrite(105)
        pins.A2.servoWrite(105)
        pause(200)
        pins.A1.servoWrite(110)
        pins.A2.servoWrite(110)
        pause(200)
        pins.A1.servoWrite(115)
        pins.A2.servoWrite(115)
        pause(200)
        pins.A1.servoWrite(120)
        pins.A2.servoWrite(120)
        pause(200)
        pins.A1.servoWrite(125)
        pins.A2.servoWrite(125)
        pause(200)
        pins.A1.servoWrite(130)
        pins.A2.servoWrite(130)
        pause(200)
    }
})
input.onLoudSound(function () {
    for (let i = 0; i < 4; i++) {
        pins.A1.servoWrite(20)
        pause(500)
        pins.A1.servoWrite(160)
        pause(500)
        pins.A2.servoWrite(160)
        pause(500)
        pins.A2.servoWrite(20)
        pause(500)
    }
})
forever(function () {
	
})
forever(function () {
    light.showAnimation(light.rainbowAnimation, 2000)
    pause(2000)
    light.showAnimation(light.colorWipeAnimation, 2000)
    pause(2000)
})

Credits

Smart Creativity

Smart Creativity

25 projects β€’ 36 followers
A creative student....πŸ§’πŸ§’πŸ§‘

Comments