[{"element_type":"text","content":"\n  \n        \u003cp\u003eOne day I thought it'd be fun to take something ordinary that isn't electronic, and make it so, just for fun.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003eEnter the Electronic Cowbell.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003eIt's a simple electronic motion-activated cowbell that when you turn it on and gently shake it, it responds to your movement and jingles like a real cowbell. \u003cspan\u003eIt's a wholly unnecessary object to have, but it's all for fun.\u003c/span\u003e\u003c/p\u003e\n\u003cp\u003eThe Electronic Cowbell uses an \u003ca href=\"https://www.adafruit.com/product/5768\" target=\"_blank\"\u003eAdafruit RP2040 Prop-Maker Feather\u003c/a\u003e with built-in LIS3DH accelerometer to detect movement, and a built-in I2S amp that plays a WAV file through an attached speaker.\u003c/p\u003e\n\u003cp\u003eThis project is also coded using CircuitPython.\u003c/p\u003e\n      \n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/002/545/original/04.jpeg?1786978621","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2\u003eRequired Parts\u003c/h2\u003e\n\u003cp\u003eThe following parts are needed for the project.\u003c/p\u003e\n\u003cp\u003eIn addition to the parts below, you will need to 3D print the cowbell enclosure. The cowbell enclosure is available for download on Thingiverse: \u003ca href=\"https://www.thingiverse.com/thing:7390052\" target=\"_blank\"\u003eElectronic Cowbell\u003c/a\u003e\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"product","content":"https://www.adafruit.com/product/5768","metadata":{"quantity":"1","description":"","name":"","url":"","featured":"false"}},{"element_type":"product","content":"https://www.adafruit.com/product/4227","metadata":{"quantity":"1","description":"","name":"","url":"","featured":"false"}},{"element_type":"product","content":"https://www.adafruit.com/product/4236","metadata":{"quantity":"1","description":"","name":"","url":"","featured":"false"}},{"element_type":"product","content":"https://www.adafruit.com/product/805","metadata":{"quantity":"1","description":"","name":"","url":"","featured":"false"}},{"element_type":"product","content":"https://www.adafruit.com/product/5019","metadata":{"quantity":"1","description":"","name":"","url":"","featured":"false"}},{"element_type":"product","content":"https://www.adafruit.com/product/290","metadata":{"quantity":"1","description":"","name":"","url":"","featured":"false"}},{"element_type":"product","content":"https://www.adafruit.com/product/288","metadata":{"quantity":"1","description":"","name":"","url":"","featured":"false"}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2\u003eDownloading the Project Files\u003c/h2\u003e\n\u003cp\u003eAfter you've collected all the necessary parts, the project files can be downloaded on github: \u003ca href=\"https://github.com/societal-participant/electronic-cowbell\" target=\"_blank\"\u003eElectronic Cowbell Project Files\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eTo download the cowbell files, do the following:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eOn the\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003ca href=\"https://github.com/societal-participant/electronic-cowbell\"\u003emain github page\u003c/a\u003e for the project, click the\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003cstrong\u003eCode\u003c/strong\u003e\u003cspan\u003e\u0026nbsp;\u003c/span\u003ebutton.\u003c/li\u003e\n\u003cli\u003eClick\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003cstrong\u003eDownload ZIP\u003c/strong\u003e. This downloads all the project files needed.\u003c/li\u003e\n\u003cli\u003eMake note of where you saved the file.\u003c/li\u003e\n\u003c/ol\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2\u003eInstalling the Project Files\u003c/h2\u003e\n\u003cp\u003eBefore installing the cowbell files, your Feather must have the latest version of CircuitPython 10 installed. For information about how to install CircuitPython on your Feather, visit this page: \u003ca href=\"https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython\" target=\"_blank\"\u003eInstalling CircuitPython\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eIf your Feather already has CircuitPython installed and is already configured to be a \u003ccode\u003eCIRCUITPY\u003c/code\u003e device, you can continue installing the project files.\u003c/p\u003e\n\u003cp\u003eTo install the cowbell files on your\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003ccode\u003eCIRCUITPY\u003c/code\u003e\u003cspan\u003e\u0026nbsp;\u003c/span\u003edevice, do the following:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eExtract the ZIP file you downloaded previously.\u003c/li\u003e\n\u003cli\u003eIn the extracted ZIP, open the\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003cstrong\u003eCowbell_app\u003c/strong\u003e\u003cspan\u003e\u0026nbsp;\u003c/span\u003efolder.\u003c/li\u003e\n\u003cli\u003eCopy the contents of the\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003cstrong\u003eCowbell_app\u003c/strong\u003e\u003cspan\u003e\u0026nbsp;\u003c/span\u003efolder to the root of your\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003ccode\u003eCIRCUITPY\u003c/code\u003e\u003cspan\u003e\u0026nbsp;\u003c/span\u003edevice.\u003c/li\u003e\n\u003c/ol\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2 class=\"heading-element\"\u003eConfiguring the Feather\u003c/h2\u003e\n\u003cp\u003eThe files don't require any configuration, however, if you are adventurous you can play with the motion settings in \u003ccode\u003ecode.py\u003c/code\u003e.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003ca id=\"user-content-configuring-motion-settings\" class=\"anchor\" href=\"https://github.com/societal-participant/electronic-cowbell#configuring-motion-settings\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eChanging the configuration of the motion settings is not necessary and should be done at your own risk. Make a backup of the \u003ccode\u003ecode.py\u003c/code\u003e file before you change the values in case you need to revert the changes.\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n        \u003ch2\u003ePrinting the Cowbell Enclosure\u003c/h2\u003e\n\u003cp\u003eThe .STL file for the cowbell enclosure can be found here on Thingiverse:\u0026nbsp;\u003ca href=\"https://www.thingiverse.com/thing:7390052\"\u003eElectronic Cowbell\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca id=\"user-content-printing-the-cowbell\" class=\"anchor\" href=\"https://github.com/societal-participant/electronic-cowbell#printing-the-cowbell\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThe following print settings are recommended when printing the cowbell:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eInfill 100%\u003c/li\u003e\n\u003cli\u003eTree supports (tree supports break away from the inside a little easier)\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eThe cowbell model also has standoffs inside for attaching the Feather.\u003c/p\u003e\n      ","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2\u003eAssembling the Cowbell\u003c/h2\u003e\n\u003cp\u003e\u003cspan\u003eAssembling the cowbell is done in two parts. First, attach the peripherals to the Feather. Then, attach the Feather and the peripherals to the inside of the cowbell.\u003c/span\u003e\u003c/p\u003e\n\u003cp\u003e\u003cspan\u003eThe following diagram shows how the speaker and the power switch should be wired to the Feather.\u003c/span\u003e\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/002/547/original/01.jpeg?1786978748","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n        \u003ch3 class=\"heading-element\"\u003eSoldering the On/Off Switch\u003ca id=\"user-content-soldering-the-onoff-switch\" class=\"anchor\" href=\"https://github.com/societal-participant/electronic-cowbell#soldering-the-onoff-switch\"\u003e\u003c/a\u003e\n\u003c/h3\u003e\n\u003cp\u003eYou attach the power switch by soldering two wires from the switch to the Feather. To attach the power switch:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eCut off one of the side pins on the power switch (not the middle pin). You should be left with one side pin and the middle pin.\u003c/li\u003e\n\u003cli\u003eSolder one wire to each pin.\u003c/li\u003e\n\u003cli\u003eSolder the other ends of the wire to the Feather.\n\u003col\u003e\n\u003cli\u003eSolder one wire to the Ground (G) pin.\u003c/li\u003e\n\u003cli\u003eSolder the other wire to the Enable pin (EN).\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/li\u003e\n\u003cli\u003eDouble-check that the wires are properly soldered.\u003c/li\u003e\n\u003c/ol\u003e\n\u003ch3 class=\"heading-element\"\u003eAttaching the Speaker\u003ca id=\"user-content-attaching-the-speaker\" class=\"anchor\" href=\"https://github.com/societal-participant/electronic-cowbell#attaching-the-speaker\"\u003e\u003c/a\u003e\n\u003c/h3\u003e\n\u003cp\u003eThe speaker is attached to the Feather board by using the screw terminals.\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eCut the male connector off of the end of the speaker wires.\u003c/li\u003e\n\u003cli\u003eGently strip the ends of the two speaker wires.\u003c/li\u003e\n\u003cli\u003eUnscrew the \u003cstrong\u003e+\u003c/strong\u003e and \u003cstrong\u003e-\u003c/strong\u003e screw terminals on the Feather.\u0026nbsp;\u003c/li\u003e\n\u003cli\u003ePlace the red wire in the \u003cstrong\u003e+\u003c/strong\u003e terminal and the black wire in the \u003cstrong\u003e-\u003c/strong\u003e terminal.\u003c/li\u003e\n\u003cli\u003eScrew each terminal shut.\u003c/li\u003e\n\u003c/ol\u003e\n\u003ch3 class=\"heading-element\"\u003eAttaching the Battery\u003ca id=\"user-content-attaching-the-battery\" class=\"anchor\" href=\"https://github.com/societal-participant/electronic-cowbell#attaching-the-battery\"\u003e\u003c/a\u003e\n\u003c/h3\u003e\n\u003cp\u003eAttach the battery by plugging it in to the battery terminal on the Feather.\u003c/p\u003e\n\u003ch3 class=\"heading-element\"\u003eTesting the Cowbell\u003c/h3\u003e\n\u003cp\u003eNow is a good time to test the assembly. After the battery is plugged in, turn the switch to on. Then, make some movement with the device. If you hear a sound, it's working correctly!\u003c/p\u003e\n      \n\n\n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/002/548/original/02.jpeg?1786978830","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n        \u003ch3 class=\"heading-element\"\u003eAttaching Everything to the Cowbell Enclosure\u003c/h3\u003e\n\u003cp\u003e\u003ca id=\"user-content-attaching-everything-to-the-cowbell\" class=\"anchor\" href=\"https://github.com/societal-participant/electronic-cowbell#attaching-everything-to-the-cowbell\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eTo attach everything to the inside of the cowbell:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eCut 4 small squares of double-sided foam tape.\u003c/li\u003e\n\u003cli\u003ePlace a square in each corner on the back of the Feather.\u003c/li\u003e\n\u003cli\u003ePeel the protective paper off and stick the Feather to the standoffs inside the cowbell, making sure that the USB-C port is facing the cowbell opening.\u003c/li\u003e\n\u003cli\u003eCut small pieces of foam tape for the battery and for the on/off switch.\u003c/li\u003e\n\u003cli\u003ePlace a piece of foam tape on the battery and the on/off switch.\u003c/li\u003e\n\u003cli\u003ePeel the protective paper off and stick the battery and the on/off switch to the inside of the cowbell.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eThe following photo shows an example of how the parts can be taped to the enclosure.\u003c/p\u003e\n      \n\n\n\n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/002/549/original/03.jpeg?1786978888","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n        \u003ch2 class=\"heading-element\"\u003eUsing the Cowbell\u003ca id=\"user-content-using-the-cowbell\" class=\"anchor\" href=\"https://github.com/societal-participant/electronic-cowbell#using-the-cowbell\"\u003e\u003c/a\u003e\n\u003c/h2\u003e\n\u003ch3\u003eTurning It On\u003ca id=\"user-content-turning-it-on\" class=\"anchor\" href=\"https://github.com/societal-participant/electronic-cowbell#turning-it-on\"\u003e\u003c/a\u003e\n\u003c/h3\u003e\n\u003cp\u003eTo turn on the cowbell, change the switch from off to on.\u003c/p\u003e\n\u003ch3 class=\"heading-element\"\u003eRinging The Cowbell\u003ca id=\"user-content-ringing-the-cowbell\" class=\"anchor\" href=\"https://github.com/societal-participant/electronic-cowbell#ringing-the-cowbell\"\u003e\u003c/a\u003e\n\u003c/h3\u003e\n\u003cp\u003eTo ring the cowbell, while it's on, give it a gentle shake.\u003c/p\u003e\n\u003ch3\u003eCharging the Cowbell\u003ca id=\"user-content-charging-the-cowbell\" class=\"anchor\" href=\"https://github.com/societal-participant/electronic-cowbell#charging-the-cowbell\"\u003e\u003c/a\u003e\n\u003c/h3\u003e\n\u003cp\u003eThe Feather's USB-C port can be used to charge the cowbell when its battery is low. Simply plug in a USB-C cable to charge it back up.\u003c/p\u003e\n      \n\n\n\n\n\n\n","metadata":{}}]