Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Jorvon Moss
Published © GPL3+

Widget Dragon Companion Bot

Hey, wanna build a dragon? This is an easy to build and custom dragon using Adafruit's Crickit as a brain.

BeginnerFull instructions provided24 hours5,338
Widget Dragon Companion Bot

Things used in this project

Hardware components

Adafruit CRICKIT
Really Recommend for fun and easy robotics
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×3
oxygen air pump
×1
vape pen
×1
plastic tubing
×1

Software apps and online services

MakeCode
Microsoft MakeCode
easy to learn, maybe my new favorite

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
ofcourse, all the parts are 3D printed.
Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Custom parts and enclosures

part 1

part 2

part 3

part 4

part 5

part 6

part 7

part 8 tail

Code

Servo moving Test

JavaScript
this is just a quick code I put together to get the dragon moving
crickit.servo1.setAngle(0)
pause(100)
crickit.servo1.setAngle(90)
pause(100)
crickit.servo1.setAngle(180)
pause(100)
crickit.servo1.setAngle(0)
forever(function () {
    crickit.servo1.setAngle(0)
    crickit.servo2.setAngle(180)
    crickit.servo3.setAngle(0)
    for (let i = 0; i < 9999; i++) {
        crickit.servo1.setAngle(0)
        crickit.servo2.setAngle(90)
        crickit.servo3.setAngle(90)
        pause(2000)
        crickit.servo1.setAngle(90)
        crickit.servo2.setAngle(180)
        crickit.servo3.setAngle(0)
        pause(2000)
        crickit.servo1.setAngle(180)
        crickit.servo2.setAngle(90)
        crickit.servo3.setAngle(90)
        pause(2000)
        crickit.servo1.setAngle(90)
        crickit.servo2.setAngle(180)
        crickit.servo3.setAngle(0)
        pause(2000)
        crickit.servo1.setAngle(0)
        crickit.servo2.setAngle(90)
        crickit.servo3.setAngle(90)
    }
})

Credits

Jorvon Moss

Jorvon Moss

9 projects • 250 followers
Hi Odd Jayy Here I'm a tinker, who is design to make gadgets and robots, support me http://ko-fi.com/odd_jayy http://patreon.com/Odd_Jayy

Comments