Things used in this project

Hardware components:
Microbitheart
micro:bit BBC micro:bit board
×1
Adafruit industries ada1008 image 75px
Alligator Clips
×2
VISATON Speaker/ dome tweeter 8 Ω
×1
Adafruit industries ada592 image 75px
USB-A to Micro-USB Cable
×1
Software apps and online services:
code with Mu
micro:bit BBC micro:bit MicroPython documentation

Schematics

set up after flashing the Python code via USB
connection: micro:bit to the positive and negative inputs of your speaker, it's not working with a piezo buzzer, when connected to headphones attach crocodile clips to pin 0 and GND
1 ltf4qr1wc0

Code

Morgenstern4microbit.pyPython
from microbit import *
from microbit import speech
from microbit import random

location = random.choice(["einem Kiesel", "einer Wiese", "dem Zwiesel"])
action = random.choice(["sass", "stand", "lag", "schlief"])
subj = (["Wiesel"])
prop = random.choice(["Bachgeriesel", "Schneegriesel",
                     "einer Pfuetze Diesel"])
clue = random.choice(["das Mondkalb", "der Nachtalb"])
attitude = random.choice(["um des Reimes Willen", "um einfach mal zu chillen"])

poem = [
    "Das aesthetische Wiesel frei nach Christian Morgenstern",
    "Ein {}".format(subj),
    "{} auf".format(action),
    "inmitten {}".format(prop),
    "Wisst ihr, weshalb?",
    "{} verriet es mir im Stillen:".format(clue),
    "Das raffinierte Tier tats {}".format(attitude)]
for line in poem:
    speech.say(line, speed=120, pitch=100, throat=100, mouth=200)
    sleep(500)

Credits

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Bikeyface Emoji Taillight (with Micro:bit)
Easy
  • 478
  • 12

Full instructions

Express yourself with your bike lights!

Make Your BBC Micro:Bit Talk Using MicroPython
Easy
  • 389
  • 8

Protip

Today, I am going to show you how to make your Micro:bit talk using a very easy programming language called MicroPython.

Display Your Name On Micro-Bit Using MicroPython
Easy
  • 353
  • 6

Full instructions

In this tutorial, I am going to show you how to code BBC micro:bit using MicroPython to display your name and other basic symbols.

magic button trick
Easy
  • 249
  • 4

Full instructions

Build a magic trick to amaze your friends that uses the micro:bit’s compass to detect a nearby magnet!

magic button trick

Team micromonsters

Getting Started with BBC Micro:Bit
Easy
  • 928
  • 11

Full instructions

This tutorial will show you the basics to get started with BBC micro bit.

Are You in Tune?
Easy
  • 583
  • 6

Work in progress

There are many ways/apps/tools to tune an ukulele, and now there is one more!

Add projectSign up / LoginAbout BBC micro:bit