Push Button Stop Motion

Similar documents
NextGen Setup Guide First-time Workstation Setup & Logging In

How to use FTP Commander

Active Directory Integration for Greentree

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

Windows 7 and File Management

First Week Formalities Brian Keeney January 11, 2005

Browsing and working with your files and folder is easy with Windows 7 s new look Windows Explorer.

1. Open Thunderbird. If the Import Wizard window opens, select Don t import anything and click Next and go to step 3.

Introduction to Operating Systems

What is My Teamwork? What s new in this release? MY TEAMWORK 5.0 QUICK START GUIDE

exacqvision Web Server Quick start Guide

IEI emerge and Milestone Systems Network Video Recorder. Setup and Integration Guide. Milestone Version 6.5 and emerge Version 3.

CompleteView Admin Console Users Guide. Version Revised: 02/15/2008

Playing sounds and using buttons with Raspberry Pi

Remote Administration

How To Use A Magistrate Desktop Computer

MICROSOFT WINDOWS NAVIGATION

Downloading and Installing Core FTP

5.4.8 Optional Lab: Managing System Files with Built-in Utilities in Windows 7

Back, start, and search key Lock the keys and screen Unlock the keys and screen Set the keys and screen to lock automatically...

Configure Single Sign on Between Domino and WPS

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

After going through this lesson you would be able to:

IEI emerge and On-Net Surveillance Systems (OnSSI) Network Video Recorder Setup and Integration Guide

Adafruit's Raspberry Pi Lesson 7. Remote Control with VNC

CMS Training Manual. A brief overview of your website s content management system (CMS) with screenshots. CMS Manual

Magaya Software Installation Guide

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable. Created by Simon Monk

NAS 225 Introduction to FTP Explorer

Apple Mac VPN Service Setting up Remote Desktop

OnDemand. Getting Started Guide

Raspberry Pi Setup Tutorial

PC Agent Quick Start. Open the Agent. Autonomy Connected Backup. Version 8.8. Revision 0

PC Advanced with Windows 8

Installing Proview on an Windows XP machine

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

HOW TO INSTALL FS USB TRANSCRIPTION SOFTWARE (OFFICE ADMIN MEDICAL)

Lab - Configure a Windows 7 Firewall

CNR-BTU5 Bluetooth Dongle

Graham Group Helpdesk User Guide: FAQ and Tricks

How to use SURA in three simple steps:

Addonics T E C H N O L O G I E S. NAS Adapter. Model: NASU Key Features

mybullard Personal Control Panel User Guide

educ Office Remove & create new Outlook profile

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

How to read Temperature and Humidity from Am2302 sensor using Thingworx Edge java SKD for Raspberry Pi

College of Continuing Education Video Production Room

Mapping the ITS File Server Folders to Mosaic Windows

CANON FAX L360 SOFTWARE MANUAL

Getting Started with Loyola s New Voic System

How To Install Cubase Patch Script On A Computer Or A Mouse Or Keyboard

PuTTY/Cygwin Tutorial. By Ben Meister Written for CS 23, Winter 2007

Managing your Joomla! 3 Content Management System (CMS) Website Websites For Small Business

E-Map Application CHAPTER. The E-Map Editor

Remote Desktop Access

SSH and Basic Commands

Getting Started with WebEx Access Anywhere

Fundamentals of Great Plains & Reporting Tools

Remote Access: Internet Explorer

Installing Sun's VirtualBox on Windows XP and setting up an Ubuntu VM

SQL EXPRESS INSTALLATION...

Quick Installation Guide

O UTLOOK 2003 HELP SHEET MAIL. Opening the program. Mail

Monitor Your Home With the Raspberry Pi B+

Setting up in Outlook Express

Qvis Security Technical Support Field Manual LX Series

Cloud Voice Service Cloud Communicator User Guide. (Version 1.0)

Logging into Citrix (Epic) using an RSA Soft Token - New RSA User

Center for Teaching, Learning & Technology

Using Internet or Windows Explorer to Upload Your Site

Proctor Caching User Guide

Central Management Software CV3-M1024

Panopto Recording. Click the Panopto Recorder icon found on the Desktop. Click the Log in with Blackboard button. Page 1

Mesa DMS. Once you access the Mesa Document Management link, you will see the following Mesa DMS - Microsoft Internet Explorer" window:

<User s Guide> Plus Viewer. monitoring. Web

Using Management Shell Reports and Tracking User Access in the NetVanta UC Server

Windows 7. Tips and Tricks. Scott Sekinger

NTI Backup Now EZ v2 User s Guide

Downloading and Connecting with Lync

Computer Basics Handouts: Computer Basics

Office of History. Using Code ZH Document Management System

Echo360 Personal Capture

Xythos on Demand Quick Start Guide For Xythos Drive

Editing Locally and Using SFTP: the FileZilla-Sublime-Terminal Flow

Adafruit's Raspberry Pi Lesson 3. Network Setup

isecurity+ Android Guide us.zyxel.com Edition 1, 2/2012

How to Give Admin Rights to Students on the ADGRM Domain

Remote Backup Software User Manual V 2.0

IT Quick Reference Guides Using Windows 7

Lab 1 Beginning C Program

EchoSign Integration

UGLYDATV 0.1 by F5OEO Evariste

If you are planning to work from home or your laptop, there are several things you need to have access to:

Contents. Using Web Access Managing Shared Folders Managing Account Settings Index... 39

MultiClient Software Quick Guide

6 USING WINDOWS XP 6.1 INTRODUCTION

Contents. Business Everywhere user guide. 1. Introduction. 2. How to Install/Uninstall Business Everywhere. 3. The Business Everywhere interface

Tutorial Guide to the IS Unix Service

VPN: Virtual Private Network Setup Instructions

Video Administration Backup and Restore Procedures

Transcription:

Push Button Stop Motion Make your own stop motion animation rig with a push button, using Python Picamera and GPIO. You can use LEGO to animate a tower being built, figures acting out a scene, or anything else you can think of! Step 1: Test the camera Before booting your Pi, you'll need to connect the camera. Connecting the camera 1. Locate the camera port next to the Ethernet port. 2. Lift the tab on the top. 3. Place the strip in the connector, with the blue side facing the Ethernet port. 4. While holding the strip in place, push down the tab. 5. Turn the power on to boot the Pi. Log in and take a test picture 1. Log in with username pi and password raspberry. 2. Adjust the camera to point at yourself or an object. 3. At the command prompt, enter raspistill -o image1.jpg. 4. You should see a preview appear on the screen for a few seconds, and then change briefly while the image is captured. It doesn't matter if the picture is upside-down; we'll come to that later. 5. Run the command ls to see the files in your home directory; you should see image1.jpg listed. 6. Enter startx to start the graphical desktop environment. 7. Once the desktop icons appear, the graphical interface has loaded. Click the file manager icon in the taskbar and you should see some folders and files. 8. Double-click image1.jpg to preview it. Step 2: Take a picture with Python 1. Double-click on LXTerminal to open a terminal window, and enter sudo idle3 & to start the Python environment. 1 of 5

2. Select File > New Window from the menu to open a Python file editor. 3. Carefully enter the following code (case is important!): camera. capture('/home/pi/image2.jpg') 4. Select File > Save from the menu (or press Ctrl + S) and save as animation.py. 5. Press F5 to run the script. 6. Without closing the Python window, return to the file manager window and you'll see the new file image2.jpg. Double-click to view the picture. 7. If the picture is upside-down you can either reposition your camera using a mount, or leave it as it is and tell Python to flip the image. To do this, add the following lines: camera. vflip = True camera. hflip = True inside the with loop, so it becomes: camera. vflip = True camera. hflip = True camera. capture('/home/pi/image2.jpg') 8. Run the file again and it will overwrite image2.jpg with a new image in the correct orientation. Remember to keep these lines in your code while you alter it in the next few steps. Step 3: Connect a hardware button 1. Connect the Pi to the button as shown in the diagram below: 2. Import the RPi.GPIO module at the top of the code, set up GPIO pin 17, and change the sleep line to use GPIO.wait_for_edge like so: 2 of 5

camera. capture('/home/pi/image3.jpg') 3. Save and run your script. 4. Once the preview has started, press the button connected to your Pi to capture an image. 5. Return to the file manager window and you should see your image3.jpg. Again, doubleclick to view. Step 4: Take a selfie 1. Modify your program to include a delay after the button wait, as follows: camera. capture('/home/pi/image4.jpg') 2. Save and run your script. 3. Press the button and try to take a selfie. Be sure to keep the camera still! Ideally, it should be mounted in position. 4. Again, feel free to check the image in the file manager. Run the program again to take another selfie! Step 5: Stop motion animation 1. IMPORTANT: Create a new folder to store your stills. In the terminal window, enter 3 of 5

mkdir animation. 2. Modify your code to add a loop to keep taking pictures every time the button is pressed: frame = 1 while True: camera. capture('/home/pi/animation/frame%03d.jpg' % frame) frame += 1 3. Now set up your animation subject (e.g. LEGO), ready to start the stop motion animation. 4. IMPORTANT This time, do not run the program from IDLE as it will be impossible to break out of the loop. Instead, return to the terminal window and enter sudo python3 animation.py. 5. Press the button to capture the first frame, then rearrange the animation subject and press the button again to capture each subsequent frame. 6. Once all the frames have been captured, press Ctrl + C which will terminate the program. 7. Open the animation folder in the file manager to see your stills collection. Step 6: Render the video 1. Now return to the terminal window. 2. Run the video rendering command: avconv -r 10 -i animation/frame%03d.jpg -vcodec libx264 animation.mp4 3. With 10 frames this will take about 5 minutes. Once complete, you can play the video with the following command: omxplayer animation.mp4 4. Optionally, you can adjust the frame rate by editing the rendering command. Try changing -r 10 (10 frames per second) to another number. 4 of 5

5 of 5