Discover Packages
github.com/circa10a/pumpkin-pi
command
module
Version:
v0.0.0-...-156d831
Opens a new window with list of versions in this module.
Published: Sep 19, 2022
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
pumpkin-pi 🎃
Raspberry pi project that controls jack-o-lantern via servo motor and PIR motion sensors to simulate it "watching" you.
Inspired by Ryder Damen's mannequin head
Demo
This project was originally built for outdoor use
Photos
Note: Holes in the acrylic case are needed for the motion sensors to properly work
Wiring diagram
Created with circuit-diagram.org . Source file is in /diagrams
Deploy
Requires following diagram above to be wired up correctly
Docker
# This script will install the dependencies and start the containers
bash -c "$(curl -sL https://raw.githubusercontent.com/circa10a/pumpkin-pi/main/install.sh)"
Go
Requires Go 1.17+
Install Go
Install pi-blaster
go install github.com/circa10a/pumpkin-pi@latest
pumpkin-pi
Materials
Configuration
Environment Variable
Description
Required
Default
PUMPKINPI_LOG_LEVEL
Logrus log level. Use debug
for more info
false
info
PUMPKINPI_MOTION_TIMES_ENABLED
Whether to use configured schedule or not. These times must be within the same day
false
false
PUMPKINPI_MOTION_TIME_START
Local time to ensure pumpkin-pi only responds after this hour
false
17
PUMPKINPI_MOTION_TIME_END
Local time to ensure pumpkin-pi only responds before this hour
false
22
PUMPKINPI_PIR_LEFT_MOTION_SENSOR_GPIO_PIN
The GPIO Pin used to read inputs from left motion sensor
false
11
PUMPKINPI_PIR_RIGHT_MOTION_SENSOR_GPIO_PIN
The GPIO Pin used to read inputs from right motion sensor
false
13
PUMPKINPI_SERVO_CENTER
The center position of the horizontal servo motor
false
29
PUMPKINPI_SERVO_LEFT
The left position of the horizontal servo motor
false
20
PUMPKINPI_SERVO_RIGHT
The right position of the horizontal servo motor
false
40
PUMPKINPI_SERVO_ROTATE_DELAY
The wait time in between each incremental servo step as it rotates
false
150ms
PUMPKINPI_SERVO_CENTER_RESET_INTERVAL
The interval at which the pumpkin will rotate back to the center position
false
5m
PUMPKINPI_SERVO_GPIO_PIN
The PWM enabled GPIO Pin used to control the servo motor
false
12
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.