09/18/19 Antimatter Skunkworks An Everything Channel
How I made my Halloween haunted painting.
REFERENCES:
This project:
https://www.instructables.com/id/Raspberry-Pi-Based-Living-Portrait-Player-Intro/Adafruit:
https://www.adafruit.com/Raspberrypi.org:
https://www.raspberrypi.org/downloads/AtmosFx:
https://atmosfx.com/PARTS:
PIR sensors:
https://amzn.to/2Nm6IBBRaspberry Pi 3 B+:
https://amzn.to/30bKKbdFemale motherboard jumper wires:
https://amzn.to/2NvlrKLFemale motherboard jumper wires:
https://amzn.to/31Ly0VmMonitor for $100 (but I recommend used on eBay instead):
https://amzn.to/32T59ioFaucet riser:
https://amzn.to/2Ocvx2uCheap caulk gun:
https://amzn.to/34XyA4mMicro SD card:
https://amzn.to/2O8s0CbOTHER VIDEOS:
How to install Raspian on a Raspberry Pi:
https://www.google.com/search?q=how+do+you+install+raspian+on+a+raspberry+pi+3+B%2B&oq=how+do+you+install+raspian+on+a+raspberry+pi+3+B%2B&aqs=chrome..69i57.15877j0j4&sourceid=chrome&ie=UTF-8#kpvalbx=_5n6DXbSnGs_l_QbkhJGICA22SUMMARY OF THE PROCEDURE:
1. Format a micro SD card using FAT32.
2. Format the card using the normal formatter used to install Raspian.
3. Download Raspian from raspberrypi.org onto the micro SD card.
4. Install Raspian onto your Raspberry pi.
5. Install the Omxplayer-wrapper.
A. Open a terminal and type "sudo python3 -m pip install omxplayer-wrapper"
6. Download the python script from github:
https://github.com/scarethetots/living_portrait_player/blob/master/living_portrait_player.py Here is the actual code if you cannot get to that site for some reason:
************************************************************************
NOTE: Thank you to user Scarethetots on github for his efforts and his permission to repost his stuff. He's the real hero here!
************************************************************************
#!/usr/bin/env python3
#Created by scarethetots
from gpiozero import MotionSensor
import sys
from omxplayer.player import OMXPlayer
from pathlib import Path
from time import sleep
files = sys.argv[1]
slength = '1440'
swidth = '900'
print("Starting up....")
tgr = 0
try:
VIDEO_PATH = Path(files)
player = OMXPlayer(VIDEO_PATH, args=['--no-osd', '--loop', '--win', '0 0 {0} {1}'.format(slength, swidth)])
pir = MotionSensor(4)
sleep(1)
print("Ready to trigger")
while True:
player.pause()
if pir.motion_detected:
print("trigger count {}".format(tgr))
player.play()
sleep(player.duration())
tgr = tgr + 1
else:
pass
player.set_position(0.0)
except KeyboardInterrupt:
player.quit()
sleep(3)
sys.exit()
*************************************************************************
7. Place the python script into a folder of your choosing.
8. Place your portrait ( I assume it was purchased from atmosfx.com) into the same folder.
9. Set up all the hardware as instructed in my video.
10. Run the script by opening a terminal, navigating to the folder containing the script and typing: python3 living_portrait_player.py filename.
11. Adjust the dimensions of your portrait to match your monitor's settings.
12. Decorate the hardware to your liking.
13. Make sure to give
09/19/19 Haunted Halloween picture costs.
Item Model Qty. Source Used Cost
Raspberry Pi 3 B+ 1 Adafruit $35.00
Raspberry Pi power supply 1 Adafruit $10.00
PIR sensor 1 Amazon $10.00
Trim (8') 1 Home Depot $ 8.00
Gold paint 1 $ 0.00
Micro SD card 1 $ 0.00
Jumper wires 1 $ 0.00
Monitor 1 $ 0.00
Stand 1 $ 0.00
Picture light (caulk gun and riser) $ 0.00
Keyboard $ 0.00
Mouse $ 0.00
Misc $ 5.00
TOTAL $68.00
SUPPORT: For channel support please visit: www.antimatterstore.com
EMAIL: antimatterskunkworks@gmail.com
Disclaimer: This is not a "how-to" video. It is a "how-I-did-it" video, unless you want to follow someone who screws things up five or six times before getting it right. In that case, I am not responsible if you harm yourself, anyone else or anything. You are. Hire a professional. Consult local laws. Yada, yada, yada.