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/
Go to file
Mal cba3dd96d6 Init 2020-06-16 12:27:53 +02:00
Makefile Init 2020-06-16 12:27:53 +02:00
README Init 2020-06-16 12:27:53 +02:00
__main__.py Init 2020-06-16 12:27:53 +02:00
config.py Init 2020-06-16 12:27:53 +02:00
configure Init 2020-06-16 12:27:53 +02:00
installer Init 2020-06-16 12:27:53 +02:00
pumpkin.conf Init 2020-06-16 12:27:53 +02:00
pumpkin.py Init 2020-06-16 12:27:53 +02:00
pumpkin.service Init 2020-06-16 12:27:53 +02:00
rgb.py Init 2020-06-16 12:27:53 +02:00
waveloader.py Init 2020-06-16 12:27:53 +02:00

README

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!