GithubHelp home page GithubHelp logo

punkin_pi's Introduction

Project: punkin_pi

Scary Halloween pumpkin with lights and sound controlled by a Raspberry Pi. Refer to element14 blog posts for more info: http://www.element14.com/community/groups/raspberry-pi/blog/tags/pumpkin_pi

Written by Bonnie King and Drew Fustini. Code and design is public domain. These instructions were tested on the current Raspbian 2012-Sept-18 image from http://www.raspberrypi.org/downloads.

https://www.element14.com/community/community/raspberry-pi/blog/2012/10/18/pumpkin-pi-project-for-halloween

Install dependencies:

sudo apt-get update sudo apt-get install git-core mplayer python-setuptools sudo easy_install bottle sudo easy_install RPi.GPIO

Note: If running an earlier image, then you may encounter an error on when installing the RPi.GPIO in that last step ("couldn't find Python.h"). To resolve the error, run "sudo apt-get install python-dev" and then "sudo easy_install RPi.GPIO" again. Thanks to Joel Dunn for the advice.

Install sound clip files:

pi@raspberrypi ~ $ mkdir files pi@raspberrypi ~ $ cd files pi@raspberrypi ~/files $ wget http://www.countessbloodshalloweenhorror.com/sounds/howl.wav pi@raspberrypi ~/files $ wget http://www.countessbloodshalloweenhorror.com/sounds/scream.wav pi@raspberrypi ~/files $ wget http://www.countessbloodshalloweenhorror.com/sounds/ghostgigl.wav

Any files that mplayer can play can be put into /home/pi/files such as .wav, .mp3 & .ogg.

Install & run punkin_pi:

pi@raspberrypi ~ $ git clone https://github.com/pdp7/punkin_pi.git

To run the demo server:

pi@raspberrypi ~ $ cd punkin_pi pi@raspberrypi ~/punkin_pi $ sudo python ./control.py

Audio troubleshooting:

If you want to check if punkin_pi will be able to play a particular file in /home/pi/files, then try to play it with mplayer:

mplayer /home/pi/files/howl.wav

Sometimes the sound system may become unstable and produce errors. Restarting ALSA should resolve this:

/etc/init.d/alsa-utils restart

If your speakers lack a volume control, then the ALSA mixer can be used:

alsamixer

punkin_pi's People

Contributors

bonnieking avatar chicoman25 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.