Build yourself a talking halloween pumpkin with a Raspberry Pi, speakers, a few LEDs and of course a caved pumpkin.
https://www.sabolli.de/linux/pumpkin/
__main__.py | ||
config.py | ||
configure | ||
installer | ||
Makefile | ||
pumpkin.conf | ||
pumpkin.py | ||
pumpkin.service | ||
README | ||
rgb.py | ||
waveloader.py |
RUN THE INSTALLER BY TYPING IN: ./installer IF SOME DEPENDENCIES ARE MISSING PLEASE INSTALL THEM WITH YOUR PACKAGE MANAGER. IF THE INSTALLER WAS SUCCESSFULL YOU HAVE TO START IT ONCE TO GET A DEFAULT CONFIG FILE: sudo systemctl start pumpkin IT WILL CRASH BUT NOW YOU WILL HAVE A CUSTOMIZABLE CONFIG FILE. OPEN IT: sudo nano /etc/pumpkin.conf TO MAKE IT START SUCCESSFULLY YOU HAVE TO GIVE THE ABSOLUTE PATH TO YOUR WAVE FOLDER: AUDIO_PATH=/your/wave/folder THEN SPECIFY YOUR GPIOS FOR EVERY COLOR. IF THERE ARE MULTIPLE LEDS FOR ONE COLOR SEPARATE THEM WITH , LIKE THAT: GPIOS_RED=11,12,13 NOW YOU HAVE A BASIC CONFIGURATION AND IT SHOULD RUN. START THE PUMPKIN AGAIN BY TYPING IN sudo systemctl start pumpkin TO STOP IT TYPE sudo systemctl stop pumpkin IF YOU WANT TO MAKE IT START AUTOMATICALLY AFTER BOOT WITHOUT LOGIN TYPE sudo systemctl enable pumpkin TO DELETE THE AUTOSTART TYPE sudo systemctl disable pumpkin IF YOU HAVE A FOG MACHINE YOU CAN ALSO SPECIFY ONE GPIO FOR THE EVAPORATOR AND ONE FOR THE PUMP: GPIO_EVAPORATOR= GPIO_PUMP= AND NOW HAVE FUN!