Skip to content

Instantly share code, notes, and snippets.

@Hermann-SW
Created October 19, 2020 16:23
Show Gist options
  • Save Hermann-SW/6a33832ef423607bdc585f779b679f46 to your computer and use it in GitHub Desktop.
Save Hermann-SW/6a33832ef423607bdc585f779b679f46 to your computer and use it in GitHub Desktop.
Shell script to capture arbitrary long exposures with Raspberry HQ camera, no 239 second limit
#!/bin/bash
if [ ! -f /var/run/pigpio.pid ]; then sudo pigpiod -s 1; sleep 0.5; fi
pigs hp 18 80 3
raspivid -md 4 -w 1012 -h 760 -fps 80 -o tst.h264 -pts tst.pts -p 500,22,506,380 -t $(($1*1000 + 3000)) &
pid=$!
sleep 2
pigs w 18 0
sleep $1
sudo ./nanopulse 39 1 9
wait
sleep 2
echo ...
tail -5 tst.pts
@Hermann-SW
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment