Things used in this project

Hardware components:
Microbitheart
BBC micro:bit board
×1
Adafruit industries ada592 image 75px
USB-A to Micro-USB Cable
×1
61vhxtmzbyl
AA Batteries
×2
Male/Male Jumper Wires
×3
Servo (generic)
×1
Software apps and online services:
Cmdscreen2
micro:bit pxt.microbit.org
Screen shot 2017 06 26 at 3 41 02 pm sfoohotutu
Microsoft MakeCode
Microsoft MakeCode for MICRO:BIT

Code

Javascript codeJavaScript
basic.forever(() => {  
    while (true) {  
        pins.servoWritePin(AnalogPin.P0, 45)  
        basic.pause(1000)  
        pins.servoWritePin(AnalogPin.P0, 90)  
        basic.pause(1000)  
        pins.servoWritePin(AnalogPin.P0, 180)  
        basic.pause(1000)  
    }  
})  

Credits

Dv02qg8c 1b5m7ruhek
Anish Ansari
3 projects • 11 followers
YouthSpark Advocate and MSP
Contact

Comments

Add projectSign up / Login