{"product_id":"speaker-for-micro-bit","title":"Speaker for micro:bit","description":"\u003cp\u003eThe MonkMakes Speaker for micro:bit is a neat little amplified speaker that connects to your micro:bit using alligator clips.\u003c\/p\u003e\n\u003ch2\u003eFeatures\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eAmplified output\u003c\/li\u003e\n\u003cli\u003eLED ‘power on’ indicator\u003c\/li\u003e\n\u003cli\u003eReverse polarity protection\u003c\/li\u003e\n\u003cli\u003eCompatible with micro:bit v1 and v2!\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eGetting Started\u003c\/h2\u003e\n\u003cp\u003e\u003cstrong\u003eConnecting to your micro:bit\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eConnect the Speaker to the micro:bit as shown below. When attaching the alligator clips to the micro:bit, make sure that the clips are perpendicular to the board so that they are not touching any of the neighbouring connectors on the micro:Bit edge connector.\u003c\/p\u003e\n\u003cp\u003e\u003cimg src=\"\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/files\/wiring_speaker_large.png?v=1512398482\" alt=\"\"\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eJavaScript Blocks Editor\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eVisit the \u003ca href=\"https:\/\/makecode.microbit.org\/\" target=\"_blank\"\u003eBlocks Editor\u003c\/a\u003e in your browser and then from the \u003cem\u003einput\u003c\/em\u003e section add an \u003cem\u003eon button A pressed\u003c\/em\u003e block then from the \u003cem\u003emusic\u003c\/em\u003e section add a \u003cem\u003estart melody\u003c\/em\u003e block and select the tune you want to play (in this case, \u003cem\u003eentertainer\u003c\/em\u003e).\u003c\/p\u003e\n\u003cp\u003e\u003cimg src=\"\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/files\/play_tune_block_ed_closeup-1024x186_large.png?v=1512398631\" alt=\"\"\u003e\u003c\/p\u003e\n\u003cp\u003eClick Download and then copy the file onto your micro:bit.\u003c\/p\u003e\n\u003cp\u003eYou can also open the project in the Blocks Editor by clicking on the image below.\u003c\/p\u003e\n\u003cp\u003e\u003ca href=\"https:\/\/makecode.microbit.org\/_FWETHRRfu6vA\" target=\"_blank\"\u003e\u003cimg src=\"\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/files\/play_tune_block_ed-1024x437_large.png?v=1512398671\" alt=\"\"\u003e\u003c\/a\u003e\u003c\/p\u003e\n\u003cp\u003eYou can also make a simple musical instrument, using this tutorial: \u003ca href=\"https:\/\/makecode.microbit.org\/projects\/hack-your-headphones\/code\" target=\"_blank\"\u003ehttps:\/\/makecode.microbit.org\/projects\/hack-your-headphones\/code\u003c\/a\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eMicroPython\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003ePaste the following code into the \u003ca href=\"http:\/\/python.microbit.org\/editor.html\" target=\"_blank\"\u003ePython window\u003c\/a\u003e and then Download the file and copy it onto your your micro:bit\u003c\/p\u003e\n\u003cp\u003e\u003ccode\u003efrom microbit import *\u003cbr\u003eimport music\u003cbr\u003e\u003cbr\u003ewhile True:\u003cbr\u003e    if button_a.was_pressed():\u003cbr\u003e        music.play(music.ENTERTAINER)\u003c\/code\u003e\u003c\/p\u003e\n\u003cp\u003eWhen you press button A you will hear the tune “The Entertainer” play through the speaker.\u003c\/p\u003e\n\u003ch2\u003eMore Resources\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/www.monkmakes.com\/downloads\/datasheet_speaker_for_mb.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eDatasheet\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/www.monkmakes.com\/downloads\/instructions_speaker_for_mb_1g.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eInstructions\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Monk Makes","offers":[{"title":"Default Title","offer_id":1447791525898,"sku":"MNK00060","price":8.95,"currency_code":"EUR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/products\/Monk_3_of_3.JPG?v=1539263532","url":"https:\/\/shop.pimoroni.com\/en-eu\/products\/speaker-for-micro-bit","provider":"Pimoroni Ltd","version":"1.0","type":"link"}