6 Dungeon
mattzz edited this page 2019-10-28 20:49:50 +01:00

Dungeon 🆕

Description

The dungeon is the trap door to the haunted house's dungeon with zombie hands reaching up through the gaps. Eerie sounds can heard, occasionally a roar, red light and fog rises out of the cracks in the trap door. Oh, and there is an undead cat giving of terrible screeches.

The trap door is a wood pallet. There's a fog machine place underneath, red LED light, a speaker and there's an animatronics skeleton cat placed on top of the pallet.

In addition to the occasional roaring, the controlling RPi plays a continous loop of ambience sounds. This does not have to be enabled/disabled remotely - but it would be nice.

The LED light is always on (let's check that again).

Network location

Workflows

  • roar fog on, random roar mp3, fog off
  • meow fog on, cat meowing, fog off

Raspberry Pi pinout:

RPi Pin RPi Name Destination Wire Function
2 5V Relay JDVCC red
6 Ground Relay Gnd orange
12 GPIO18 Relay In1 yellow Enable fog machine
16 GPIO23 Relay In2 gren trigger cat
17 3V3 Relay VCC grey
18 GPIO24 Relay In3 blue
22 GPIO25 Relay In4 purple

start playing ambience sound after booting

Add the mpg321 line to /etc/rc.local :

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

# loop ambience sound forever...
/usr/bin/mpg321 -l 0 -q /home/pi/halloween/static/sounds/Ambience.mp3  > /dev/null 2>&1



exit 0