CD-Soft Educational Resources LogoCD-Soft Educational Resources LogoCD-Soft Educational Resources Logo

Monk Makes Animatronic Head Kit for the BBC micro:bit

$86.90 inc GST

This kit provides everything you need to make a talking animatronic head. Its eyes move and the head speaks from a Monk Makes Speaker for the BBC micro:bit.

Brand: Monk MakesSKU: 57195984N/A MPN: 00079 Availability : In StockOut of stockOut of stock

Frequently Bought Together

  • Default Title
  • BBC micro:bit v2 Single (Board Only - Bulk Packaging)
Total price:$112.75 inc GST $111.10 inc GST
Compatible with v1 & v2

This kit provides everything you need to make a talking animatronic head. Its eyes move and the head speaks from a Monk Makes Speaker for the BBC micro:bit.

Note: Does not Include BBC micro:bit. The BBC micro:bit can be purchased separately here.

Software

The programs for this project are a mixture of Makecode blocks and MicroPython. MicroPython is needed for some projects as the speech module is not available as blocks code and its nice to have the robot talk.

Program 0. Eyes Front

Click on the image below to open the program ready to flash it onto your micro:bit.

Monk Makes Animatronic Head Kit Code 1

Program 1. Crazy Eyes

Click on the image below to open the program ready to flash it onto your micro:bit.

Monk Makes Animatronic Head Kit Code 2

Program 2. Robot Beeping

Click on the image below to open the program ready to flash it onto your micro:bit.

Monk Makes Animatronic Head Kit Code 3

Program 3. Talking Head

Click HERE to open the online Python Editor delete the example text in the editor window and then copy and paste the following code into the editor window.

from microbit import *
import random, speech

sentences = [
    "Hello my name is Mike",
    "What is your name",
    "I am looking at you",
    "Exterminate exterminate exterminate",
    "Number Five is alive",
    "I cant do that Dave",
    "daisee daisee give me your answer do"
    ]

lips0 = Image("00000:"
             "00000:"
             "99999:"
             "00000:"
             "00000")
             
lips1 = Image("00000:"
             "00900:"
             "99099:"
             "00900:"
             "00000")
             
lips2 = Image("00000:"
             "09990:"
             "99099:"
             "09990:"
             "00000")
             
lips = [lips0, lips1, lips2]

def set_servo_angle(pin, angle):
    duty = 26 + (angle * 51) / 90
    pin.write_analog(duty)
    
def speak(sentence):
    words = sentence.split()
    for i in range(0, len(words)):
        display.show(random.choice(lips))
        speech.say(words[i])
    display.show(lips0)
    
def act():
    angle = random.randint(0, 180)
    set_servo_angle(pin1, angle)
    set_servo_angle(pin2, angle)
    sleep(300)
    speak(random.choice(sentences))
    set_servo_angle(pin1, 90)
    set_servo_angle(pin2, 90)
    sleep(1000)
    
base_z = 0

while True:
    new_z = abs(accelerometer.get_z())
    if abs(new_z - base_z) > 20:
        base_z = new_z
        act()
    if random.randint(0, 1000) == 0: # say something 1 time in 1000
        act()
    sleep(100)

 

Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday
January,February,March,April,May,June,July,August,September,October,November,December
Not enough items available. Only [max] left.
Shopping cart

Your cart is empty.

Return To Shop

Add Order Note Edit Order Note
Estimate Shipping
Add A Coupon

Estimate Shipping

Add A Coupon

Coupon code will work on checkout page

Monk Makes Animatronic Head Kit for the BBC micro:bit

$86.90 inc GST