{"id":19124555,"url":"https://github.com/shekit/instagif","last_synced_at":"2025-05-05T19:27:23.928Z","repository":{"id":85495871,"uuid":"96066300","full_name":"shekit/instagif","owner":"shekit","description":"A DIY camera that prints GIFs","archived":false,"fork":false,"pushed_at":"2018-08-02T20:00:26.000Z","size":481,"stargazers_count":77,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T11:10:50.102Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shekit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-03T03:19:37.000Z","updated_at":"2024-02-05T16:01:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"77b1d61c-bfeb-4c94-b23d-c673123a8fca","html_url":"https://github.com/shekit/instagif","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shekit%2Finstagif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shekit%2Finstagif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shekit%2Finstagif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shekit%2Finstagif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shekit","download_url":"https://codeload.github.com/shekit/instagif/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252562170,"owners_count":21768250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T05:29:31.259Z","updated_at":"2025-05-05T19:27:23.922Z","avatar_url":"https://github.com/shekit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instagif Camera\n\nI built a camera that snaps a GIF and ejects a little cartridge so you can hold a moving photo in your hand! I'm calling it \"Instagif\". Don't ask me why I built it, it sounded like a fun challenge and I always wanted to hold a moving photo. \n\n## Build Process\n\nYou can read more about the entire build process here:\n\n## Hardware Files\n\nAll the 3D print files and Eagle files can be found in a separate repo here: https://github.com/shekit/instagif-hardware\n\n## Setting up the Raspberry Pi's:\n\nThe camera uses 2 pi's. Follow the steps exactly as described and it should get you up and running without any problems.\n\n* Raspberry Pi 3 - Let's call this CamPi (runs the camera)\n* Raspberry Pi Zero W - Let's call this SnapPi (runs the cartridge)\n\n### Raspberry Pi 3 - CamPi\n\n1. Download Jessie Lite (2017-07-5) and burn to SD card (class 4 +, 8gb+)\n2. Plug into HDMI monitor\n3. Login with default user:pi and password: raspberry\n4. Perform Initial Setup:\n\t* ```sudo raspi-config```\n\t\t* Advanced Options \u003e Expand Filesystem\n\t\t* Change User Password\n\t\t* Localisation Options \u003e Locale and Timezone\n\t\t* Localisation Options \u003e Keyboard Layout\n\t\t* Enable Interfacing \u003e Camera\n\t\t* Enable Interfacing \u003e SSH\n\t\t* Boot Options \u003e Console \u003e Console Autologin\n \t* ```sudo reboot -h now```\n5. Setup Wifi Network:\n\t* ```sudo nano /etc/wpa_supplicant/wpa_supplicant.conf```\n\t* Add your ssid and password\n\t\t```\n\t\tnetwork={\n\t\t\tssid=”\u003cYour ssid\u003e”\n\t\t\tpsk=”\u003cYour pass\u003e”\n\t\t}\n\t\t```\n\t* ```sudo reboot -h now```\n\t* Note IP address\n\t\t```ifconfig wlan0```\n6. Check for updates:\n\t```\n\tsudo apt-get update\n   \tsudo apt-get upgrade\n\t```\n7. Install Re4son kernel\n\t* Follow the steps here - https://github.com/Re4son/Re4son-Pi-TFT-Setup\n\t* Rotate screen:\n\t\t```sudo nano /boot/config.txt```\n\t\t```rotate=270```\n8. Remove existing Node:\n\t```\n    sudo apt-get remove nodered -y\n    sudo apt-get remove nodejs nodejs-legacy -y\n    sudo apt-get remove npm -y\n\t```\n9. Install Latest Node:\n\t```\n\tsudo curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -\n\tsudo apt-get install nodejs -y\n\tnode -v\n\tnpm -v\n\t```\n10. Disable Bluetooth:\n\t```\n\tsudo systemctl disable bluetooth\n\t```\n11. Prevent screen from sleeping:\n\t* ```sudo nano /etc/kbd/config```\n\t\t* BLANK_TIME=0\n\t\t* POWERDOWN_TIME=0\n\t* ```sudo nano /boot/cmdline.txt```\n\t\t* Add this to the end of the single line: ``` consoleblank=0```\n12. Install DHCP:\n\t* ```sudo apt-get install isc-dhcp-server```\n\t* ```sudo nano /etc/dhcp/dhcpd.conf```\n\t* Edit this file and reboot:\n\t```\t\n\t\tddns-update-style interim;\n\t\tdefault-lease-time 600;\n\t\tmax-lease-time 7200;\n\t\tauthoritative;\n\t\tlog-facility local7;\n\t\tsubnet 192.168.1.0 netmask 255.255.255.0 {\n\t\t\trange 192.168.1.5 192.168.1.150;\n\t\t}\n\t```\n13. Setup Ad-hoc Network:\n\t* \n\t```\n\t\tcd /etc/network\n\t\tsudo cp interfaces interfaces-wifi\n\t\tsudo nano interfaces-adhoc\n\t```\n\t* Edit this interfaces-adhoc file\n\n\t```\t\n\t\tauto lo\n\t\tiface lo inet loopback\n\t\tiface eth0 inet dhcp\n\n\t\tauto wlan0\n\t\tiface wlan0 inet static\n\t\t\taddress 192.168.1.1\n\t\t\tnetmask 255.255.255.0\n\t\t\twireless-channel 1\n\t\t\twireless-essid  Instagif\n\t\t\twireless-mode ad-hoc\n\n\t```\n14. To change between interfaces:\n\t* To use ad-hoc network:\n\t\t* ```sudo cp /etc/network/interfaces-adhoc /etc/network/interfaces```\n\t* TO use regular wifi-network\n\t\t* ```sudo cp /etc/network/interfaces-wifi /etc/network/interfaces```\n\n15. Connect to Pi using SSH if needed from your computer:\n\t* Select Instagif network\n\t* ```ssh -lpi 192.168.1.1```\n16. Install Libraries:\n\t* Picamera: ```sudo apt-get install python-picamera```\n\t* MP4Box: ```sudo apt-get install -y gpac```\n\t* AVConv: ```sudo apt-get install -y libav-tools```\n\t* Omxplayer(if needed): ```sudo apt-get install -y omxplayer```\n\t* Pip: ```sudo apt-get install python-pip```\n\t* Git: ```sudo apt-get install git```\n\t* Cmake: ```sudo apt-get install cmake```\n\t* PiGPIO: ```sudo apt-get install pigpio``` \n\t* FBI: ```sudo apt-get install fbi```\n17. Install ZeroMQ(python 2.7):\n\t* ```\n\t\tsudo apt-get install libzmq-dev\n\t\tsudo apt-get install libevent-dev\n\t\tsudo apt-get install python-dev\n\t\tsudo pip install pyzmq\n\t\tsudo pip install zerorpc\n\t\tsudo pip install msgpack-python --force-reinstall --upgrade\n\t```\n18. Install FBCP:\n\t* ```\n\t\tgit clone https://github.com/tasanakorn/rpi-fbcp\n\t\tcd rpi-fbcp/\n\t\tmkdir build\n\t\tcd build/\n\t\tcmake ..\n\t\tmake\n\t\tsudo install fbcp /usr/local/bin/fbcp\n\t\tcd ~\n\t\tsudo modprobe fbtft dma\n\t```\n19. Clone this repo:\n\t* ```\n\t\tgit clone https://github.com/shekit/instagif.git\n\t\tcd ~/instagif/node-camera\n\t\tsudo npm install \n\t```\n20. Create Launcher Script:\n\t* ```\n\t\tcd ~\n\t\tsudo nano launch.sh\n\t\t\t#!/bin/bash\n\t\t\tfbcp \u0026\n\t\t\tcd ~/instagif/node-camera\n\t\t\tpython zero.py \u0026\n\t\t\tsudo node index.js\n\t\tchmod +x launch.sh\n\t```\n21. Create SystemD file:\n\t* ```sudo nano /lib/systemd/system/instagif.service```\n\t* Edit this file to only include:\n\t\t* ```\n\t\t\t[Unit]\n\t\t\tDescription=Instagif Auto Start\n\t\t\tAfter=multi-user.target\n\n\t\t\t[Service]\n\t\t\tType=idle\n\t\t\tExecStart=/home/pi/launch.sh\n\t\t\tUser=pi\n\n\t\t\t[Install]\n\t\t\tWantedBy=multi-user.target\n\t\t```\n\t* Change file permissions:\n\t\t* ```sudo chmod 644 /lib/systemd/system/instagif.service```\n\t* Make it start at bootup:\n\t\t* ```sudo systemctl enable instagif.service```\n\n### Raspberry Pi Zero W - SnapPi\n\n1. Repeat steps 1-8\n2. Install Node for Pi Zero:\n\t* ```\n\t\tcd ~\n\t\twget http://nodejs.org/dist/v4.2.4/node-v4.2.4-linux-armv6l.tar.gz\n\t\tcd /usr/local\n\t\tsudo tar xzvf ~/node-v4.2.4-linux-armv6l.tar.gz --strip=1\n\t\t# Test node version with node -v\n\t\tsudo npm install -g npm\n\t```\n3. Repeat steps 10-14, **enter IP 192.168.1.2**\n4. Install as above:\n\t* omxplayer\n\t* cmake\n\t* git\n\t* fbcp\n\t* fbi\n5. Clone repo:\n\t* ```\n\t\tgit clone https://github.com/shekit/instagif.git\n\t\tcd ~/instagif/node-snap\n\t\tsudo npm install\n\t```\n6. Create Launcher Script:\n\t* ```\n\t\tcd ~\n\t\tsudo nano launch.sh\n\t\t\t#!/bin/bash\n\t\t\tcd ~/instagif/node-snap\n\t\t\tnode index.js\n\t\tchmod +x launch.sh\n\t```\n7. Create SystemD file:\n\t* ```sudo nano /lib/systemd/system/instagif.service```\n\t* Edit this file to only include:\n\t\t* ```\n\t\t\t[Unit]\n\t\t\tDescription=Instagif Auto Start\n\t\t\tAfter=multi-user.target\n\n\t\t\t[Service]\n\t\t\tType=idle\n\t\t\tExecStart=/home/pi/launch.sh\n\t\t\tUser=pi\n\n\t\t\t[Install]\n\t\t\tWantedBy=multi-user.target\n\n\t\t```\n\t* Change file permissions:\n\t\t* ```sudo chmod 644 /lib/systemd/system/instagif.service```\n\t* Make it start at bootup:\n\t\t* ```sudo systemctl enable instagif.service```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshekit%2Finstagif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshekit%2Finstagif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshekit%2Finstagif/lists"}