Raspberry Pi Stop-Motion Animation Rig

20,135

252

21

About: the Wonderful Idea Company is a design studio for the playful exploration of ideas in art, science and technology

Stop-motion animation is a technique where objects are physically manipulated, and photographed frame-by-frame to create the illusion of a moving image.

Our mini stop-motion animation exhibit is made with a Raspberry Pi, which is a "tiny and affordable computer that you can use to learn programming through fun, practical projects."

The rig uses a Raspberry Pi, a pi-camera and five simple commands to create endless storytelling possibilities. It can be connected to any monitor or projector, and learners can work on their own or collaborate in pairs to create their animations.

This tool can be used for open-ended exploration, or incorporated into classroom lessons to deepen and reinforce learning. Users can create their own characters to insert themselves into history, art, or a microscopic world, using stop-motion animation and simple, everyday materials to tell a story or illustrate their understanding of a scientific concept in a playful, engaging way.

This guide is a still a rough draft! We'll keep working to develop this playful tool for exploration so that it can be used in museums, classrooms, maker spaces and your kitchen table. Feel free to remix the animation station, and please let us know what you come up with as you experiment. Check back for updates as we refine the design of the hardware and software.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Collect the Materials (electronics)

Collect the following electronic components needed to construct the station.

Raspberry Pi 3 Complete starter kit from Canakit, which includes Raspberry Pi 3 (includes 5V 2.5A power supply, raspberry Pi 3 case, HDMI cable, 32 GB MicroSD card (preloaded with NOOBS), 2x heatsinks Full size breadboard, male to male jumper cables)

Keyboard and mouse (usb or wireless)

HDMI compatible monitor

Five arcade buttons Red, white, green, blue and yellow

Raspberry Pi Camera module V2

Adafruit flex cable for Raspberry Pi Camera -2 meters

Adafruit Pi Camera case

Gikfun proto board

Stranded wire

Canakit Breakout board and GPIO cable

Momentary switch (normally open)

5v computer fan

Step 2: Collect the Wood, Hardware and Tools

Gather the wood for the box:

  • 1/4" plywood, 12" by 17"
  • 1/4" plywood, 13" by 18"
  • 1/2" plywood, 4" x 8'
  • 1x2 common pine board, 4' length
  • 1x1 common pine board, 4' length

Collect the following hardware:

  • brad nails, 3/4" length
  • 1/4-20 machine screw, 1 3/4" length
  • 1/4-20 threaded inserts
  • 1/4-20 t-nuts
  • 1/4 washers
  • 1/4-20 wing-nut
  • 4-40 screws, 3/4" length
  • 4-40 nuts

You'll also need the following tools:

  • Table saw, scroll saw and/or japanese hand saw
  • Cordless drill
  • Set of drill bits and driver bits (including a 3/4" and 1" diameter forstner bit)
  • Brad nailer
  • Philips head screwdriver
  • Soldering iron and solder
  • Wire cutter and wire stripper
  • Hammer or mallet
  • Wood glue
  • 2 Quick clamps (at least 18 in wide)

Step 3: Build the Bottom of the Box

Cut the 1/4" plywood sheet. The 12"x17" piece will be the bottom of the box, and the 13" x 18" piece will be the top.

Cut the 1/2" plywood into 4" strips to make the sides of the box. Cut two of them down to 12" lengths, and two 18" lengths.

Get one of the 18" pieces (this will be the back of the box) and cut out holes for the plug and the cables

  • 1/2" hole for the kill switch
  • two 1/4" holes for the arm mount
  • a 3/4" diameter hole for the fan
  • a 3/4" x 1/2" rectangle for the hdmi cable
  • a 1/4" mouse hole for the power cable.

Squirt a strip of wood glue on the bottom of the side pieces and use the clamps to connect the sides to the base. Then use the brad nailer to attach the sides to the base, spacing the nails about 2-3 inches apart.

Attach the front and back pieces with glue and nails in the same manner. Make sure to thread the wire for the power cable through the mouse hole first.

At the end of this step you should have the bottom of the box with four sides and the power cable running through the hole in the back of the box finished.

Step 4: Build the Top of the Box

Get the 13" by 18" piece of 1/4" plywood to use to make the top of the box.

Use a drill with a 1" forstner bit to make a row of five large holes set in about 1" from the right the side of the lid for the arcade buttons. They should be roughly equally spaced, but you can leave an extra space between the top hole and the other four holes to set the erase movie apart from the other buttons.

Cut two 1.5" long pieces off of the the 1x2 board and drill a 5/16" diameter hole in the center of each one. Use a 3/4" forster bit to make a recessed hole lined up with the 5/16" hole. Thread the t-nut through the hole and use a screw to force the t-nut flush against the piece. Watch this video for an overview of the process of attaching t-nuts.

Attach the blocks on the board in the middle 1/2" from each side with the recessed hole facing toward the center using wood glue and brad nails

Cut a 3" long piece of the 1x2 and attach to the top of the board 1/2" from the top

Cut a 1/4" by 1" oval slit in the top of the board close to the location of the 3" block. To do this you can drill two 1/4" holes in the top of the box and then thread the blade of the scroll saw through the hole. Watch this instructional video for a demo of the process.

Step 5: Make the Camera Arm

This camera arm is foldable and removable which makes it easy to store the animation station. It's also really complicated to make. You can adjust this step to fit your needs and woodworking experience level. The goal at the end of the step is to have the camera above the center of the station.

Cut off a 5" long piece from the 1x1 board and drill three 1/4" holes (one a 1/2" from the top) and the other two to match the 1/4" holes in the back of the box

Cut off an 11" piece and a 13" piece from the 1x1 board

Use a drill and a scroll saw to cut the slots for the camera wire and the drill holes as seen in the pictures accompanying this step. Use the scroll saw and drill technique to cut out the notches in the base of the arms. Test out the curves to make sure they can work as a pivot.

Cut a 2.5" long piece from the 1x2 board for the camera block

Draw out the pattern as seen in the pictures to make a space for the camera block to pivot and a flat space to attach the pi camera.

Use 1/4 -20 pan head bolts, washers and wing nuts to connect the small block to the back of the box
Connect the short (11") and long (13") arms together with a 1/4-20 bolts, washers and wing nuts. Attach the camera block to the curved notch in the top of the short arm piece. Attach the arm structure to the last hole in the short block using a 1/4-20 bolt, washer and hex nut.

Step 6: Prepare the Buttons and Raspberry Pi

Cut a length of colored wire, strip one end and then wrap that end around the metal tab of the COM and the NC (normally closed) terminals. Use the soldering iron to solder the wires to the leads of the switch. Repeat with the other four buttons (using the appropriate colored wire).

Cut a length of black wire and solder it to the the terminals of the metal momentary switch.

Put the raspberry pi in the plastic case

Add a memory card with NOOBs installed

Connect the canakit cable to the rasberry pi (Make extra extra double-check sure that the PIN 1 indicator is in the corner of the Pi. If you have a gray cable its probably a red stripe, for black cables, a white stripe. That pin must not be next to the TV connector. Turn around or twist the cable until it is right)

Step 7: Solder the Electronics to the Protoboard

Press the breakout board side of the GPIO cable on the gik protoboard as seen in the picture attached to this step. Flip the board over and carefully solder the GPIO board into place by adding a bit of solder on each of the pins.

Connect one wire from each of the arcade buttons to the Gik board to pin numbers 2, 3, 4, 5, 6 in the following order.

Erase (pink/red wire) pin 2 also labled SDA)

Play (green wire), pin 3 also labeled as SCL

Undo (blue wire) pin 4

Take a picture (yellow wire) pin 5

Save (white wire) pin 6

Take the wires from other side of each of the buttons and connect them to the negative column of the gik proto board (it doesn't matter the order as long as they are in the column).

Connect one of the wires from the momentary switch (black wire) the row for pin 13 and the other to the negative column.

Connect the wires from the mini fan to the 5V + and - section of the breadboard

Step 8: Attach Switches and Fan to the Box

Attach the arcade buttons to the top of the box by twisting off the switch part of the buttons, unscrewing the black plastic nut, pushing the button through the hole, tightening the nut and reconnecting the switch. Do this to all five buttons in the order from top to bottom of red, white, green blue and yellow.

If you want, you can label the buttons, either with a piece of paper in the top of the plastic piece or by writing on the side of the button.

Attach the kill switch to the back of the box in the same way so that the plunger is pointed out the back of the box.

Allign the mini fan over the 3/4" hole on the inside of the back of the box. Mark the spaces for the holes and drill pilot holes in the propoer place. Use the 4-40 screws and bolts to secure the fan on the box.

Step 9: Attach the Camera to the Station

Make two pilot holes in the camera box on the top of the arm and screw on the plastic case using 4-40 bolts and nuts (be sure to remove the piece of foam first)

Attach the flex cable to the Raspberry Pi. Thread the cable through the slot of the top of the box, through the slots in the arm and then attach to the camera. Place camera inside case and position the arm over the box.

Step 10: Connect the Raspberry Pi and Plug in Cables

Use the double stick tape or screws to connect the Raspberry Pi case to the base of the box. Attach the protoboard and other components to the base of the box using screws or double stick tape. You may want to add p-straps to the wires to make everything tidier.

Plug in the power cable and the HDMI cable to the Raspberry Pi

Attach a mouse and keyboard to the Raspberry Pi (if you are using the bluetooth keyboard follow the instructions to connect).

Connect the Raspberry Pi to the monitor using the HDMI cable.

Step 11: Set Up Raspberry Pi and Camera

Follow the Canakit quick start guide to get your Rasperry Pi up and running.

Once you've checked that your Raspberry Pi software is up to date, open the terminal and type:

sudo apt-get update

sudo apt-get upgrade

Install ffmpeg, omxplayer, python, and pygame on your Raspberry Pi by typing these commands into the terminal

sudo apt-get install ffmpeg

sudo apt-get install omxplayer

sudo apt-get install python

sudo apt-get install pygame

Enable Camera by typing in the terminal:

sudo raspi-config

A new window will open, use the cursor keys to move to the camera option, and select 'enable'. On exiting, it will ask to reboot. Reboot your the Raspberry Pi.

Step 12: Download the WICO Animation Software

Go to https://github.com/wonderfulideaco/pi-stop-motion...

Click the green button to download a zip file of the repository to your Raspberry Pi Open the zip file and drag the folder onto your desktop Rename the folder stop_motion

To make a movie, open the terminal and navigate to the stop motion folder by typing:

Cd ~/Desktop/stop_motion

And then type

python3 src/run.py

Step 13: Make Your First Movie

When you first open the animation program you can see the last movie by pressing the green play button. To delete the last movie and start a new one, press the pink trash button.

To make your movie you can operate the station with the following commands:

Take a picture - yellow "camera" button

Delete a frame - blue "undo" button

Play your movie - green "play" button

Delete your movie forever - pink "trash can" button

Save your movie use the white button. When you press the button a text prompt will appear where you can enter your movie’s name. Then press return and after 10 or 20 seconds, the text prompt will disappear, your movie is saved and you can continue the explorations.

When you want to exit the program you can use the escape switch hidden on the back right corner of box. You can make, save, and delete as many movies as you like in a session. When you are done, press the escape button (momentary switch) to exit the animation program and go back to the desktop.

Step 14: Playing, Saving, Deleting Movies

Play a movie

Note: the movies take a while to process, so you may need to wait until the end of the session or day to replay the movies.

Open the stop_motion folder on the desktop, then open the file marked movies to find your movie Open the terminal window and type

cd Desktop/stop_motion/movies

Press enter, then type omxplayer name of your movie

(For example) omxplayer movie_penny_20180313_1922.mp4

Press enter to play movie

If it didn’t play! Don’t worry, just give it more time to process the movie, and try again later.

Save your movies

It can be helpful to save the movies to google drive so that you can view and process them on another machine. To do this, open the Web Browser, navigate to your google drive, make a new folder for your animations and drag and drop your movies from the movie folder on the Raspberry Pi to your new google drive folder. Once they have been uploaded and processed, you can click to play!

Delete movies and shutdown the Pi

The Raspberry Pi has a limited amount of memory, so once you have saved your movies to a google drive, please delete them from the Raspberry Pi to make space for more lovely animations!

Open the stop_motion folder on the desktop, then open the file marked movies Select all the movies and drag them to the wastebasket. Empty the wastebasket.

The Raspberry Pi is a little fragile so please make sure you shut it down safely when you’re done. To do it right, click on the raspberry icon in the top left corner of the desktop and select Shutdown again from the shutdown options menu

Step 15: Stop Motion Animation in a Classroom or Museum

Materials
When searching for materials, don’t fret! You don’t need much to make a stop motion movie - you can start with just your hands. But, here are some materials that lend well to this activity and lead to more detailed products: Colored shapes Cardstock + brad characters (pre-made or students can create their own) Text + thought bubbles, scene descriptions (laminated shapes and strips), use dry-erase pens

As with many projects, limiting the available materials can often lead to more thoughtful creations. However, if students would like to explore other materials, let them go! You can even have a station to the side for students to create their own props, characters, and scenery.

Set Up

Organize materials around station for easy access and visibility, and consider placing common stop motion tips around the station, like “Watch out for your hands!”. As mentioned above, you can also have separate station close by for prop creation.

The whole station can fit on one table with props around it. It’s best to have 2 chairs in front for one person to make a movie and other to watch the process, or for one person to direct while the other photographs.

Prompts

There are different levels of instruction we can give for stop motion animation, from letting students just create movies (after providing basic background and instructions) to starting with a prompt like “make a video where…..”.

If you would like to focus on group work skills, students can create collaborative videos. This can look like: brainstorming a plot and taking turns moving props / taking pictures, each person is allotted a certain number of pictures, or each person is allotted 2 minutes at the station to create their scene in a larger movie.

Step 16: Going Further

Once the movies are downloaded onto google drives, you can continue expanding them using your choice of video editing software like final cut or adobe premiere. Students can get the chance to use these tools to give the animation station higher ceilings and longer engagements. Some initial ideas for further directions might include connecting videos together, composing soundtracks or writing subtitles (and adding them in post-production).

We made a short zine with ideas about how to connect the animation station to the Next Generation Science Standards (NGSS) that is attached here as well!

Please reach out to us on our website (https://wonderfulidea.co/contact) with questions or to share your version of the machine. We're excited to see the different directions that this tinkering exhibit goes in as people build, remix and share the concept!

---
Prototyping time and R&D with Lodestar Charter School students for the Raspberry Pi Stop Motion Station was made possible through the generous support of Cognizant “Making the Future” grant.

Share

    Recommendations

    • Indoor Lighting Contest

      Indoor Lighting Contest
    • Make It Fly Challenge

      Make It Fly Challenge
    • Growing Beyond Earth Maker Contest

      Growing Beyond Earth Maker Contest

    21 Discussions

    0
    None
    jchonparadise

    4 weeks ago

    This has been a life-saver for me! Nearly exactly what I’ve been working toward.

    I am having an issue I can’t seem to troubleshoot though. It will, at [seemingly] random times, just stop working. It will still show the camera, but not the onion skin and will not take a picture or play the movie or anything the buttons do except the exit button. I can then just restart it from the terminal again, but can’t find a common anything that would lead me in a direction to figure it out.

    0
    None
    Nirgal38

    4 months ago

    I built one of these for our MakerSpace and it gets its first trial run on Friday. However, I've run into two glitches (one of which I think I can fix).

    The one I can fix is that the picture is upside down on the build surface (the bottom of the screen is towards the camera arm... I'm going to look through the script to see if I can rotate it 180).

    The other one, I'm at a loss. When I save, it prompts me for a name and it saves. Then, no matter how long I wait, if I ask it to save a second video, it crashes on me.

    The frames are still there but it doesn't save a video.

    I managed to save some work by using ffmpeg directly from the command line but that's not the best solution.

    Could it have something to do with the fact that when I asked it to install pygame, it couldn't find it?

    I get no error in the console when I run the script but this is odd and my python skills are far too limited to figure out what the problem is.

    Still, all in all, a GREAT project!

    2 replies
    1
    None
    wonderfulideaNirgal38

    Reply 3 months ago

    hey there!
    we noticed that same problem and believe that it has been fixed on the latest version of the software on the github page. try to delete the program and follow the install instructions again. let us know if that works for you.
    thanks!

    0
    None
    Nirgal38wonderfulidea

    Reply 3 months ago

    One of the guys in our MakerSpace (whose Python skills are far superior to mine) was able to find what the problem was (a variable had the same name as a function call) and got it working great!

    It was a HUGE hit at our First Friday Open House. We did an Animation Celebration with the Raspberry Pi Stop Motion Animation Station, flip books, thaumatropes and phenakistoscopes.

    I would have liked more objects to animate because we got a lot of animations of a rubber frog, a rubber cockroach and a rubber duck.

    Again, this is an awesome instructable and I'm adding it to my favorites!

    2
    None
    Antzy Carmasaic

    5 months ago

    Very interesting project with extremely simplified controls which is perfect for kids.
    A feature that can be added is using another button for last-frame-overlay, where the previous frame is shown on top of the video feed with 30-50% transparency. This helps in aligning the characters very precisely in reference to the previous frame and makes the animation much smoother and easier.

    0
    None
    rwooley

    Tip 5 months ago on Step 7

    I bought a simialr board on ebay to that of the protoboard, but it uses a breadboard, and i bought the breadboard cables. So i dont need to solder the wires

    1
    None
    LarryGB01

    5 months ago

    How about a little show and tell. A short animation video in the title would be inspiring!

    2 replies
    0
    None
    wonderfulideaLarryGB01

    Reply 5 months ago

    good idea! just added one of our favorites made at Tinkerfest at Chabot Space and Science Center last year

    0
    None
    LarryGB01wonderfulidea

    Reply 5 months ago

    Now i'm really motivated to build a similar animation station. Good job.

    0
    None
    RolanG

    5 months ago

    WOW!!!!

    1
    None
    Kenluddite

    5 months ago

    This is awesome! love it. There are a few steps Im in need of clarification. Is there and other build tips (videos?) user forums? Im worried I'll get stuck and have a pile of electronics I cant get working. Once you get the Rasp Pi programed - you dont need the computer anymore - correct? until I guess you want to save the movie - or can it write directly to a thumb drive? ...see- questions. Great stuff- inspired! thanks for sharing.

    1 reply
    0
    None
    wonderfulideaKenluddite

    Reply 5 months ago

    Hi Ken,
    Thanks so much for your comments and questions. It is a bit of a rough guide for now but there are some resources available:
    Our github page theorecally can be a forum for comments/support on the program (hopefully more will use later).
    There is lots of raspberry pi support (https://www.canakit.com/quick-start/pi) or (https://projects.raspberrypi.org/en/projects/raspb... and other places online.

    For the specific questions -
    1. you don't need a separate computer at all for the project (just a monitor for the raspberry pi). it may be easier to look at the videos on a regular computer but it's not necessary.
    2. to save the movies you can either load them on a thumb drive through the pi or drag/drop them into a google folder

    Also just reach out if you have any questions to ryan@wonderfulidea.co - we'll be happy to respond to challenges that come up!

    Cheers,
    Ryan

    0
    None
    ka3ros

    5 months ago

    Awesome project. Hours of playtime for kids. Great activity for a classroom.
    And lasts for years

    0
    None
    KiteArmy

    5 months ago

    Great job - I love how you installed the buttons on the side. Makes operating the camera so simple. Thanks for sharing!

    0
    None
    Gadisha

    5 months ago

    Nice!

    0
    None
    Treasure Tabby

    5 months ago

    Oh lovely! :D Just not for me. Making electronics is not my thing. But I will share with others. :)

    1 reply
    1
    None
    jessyratfink

    5 months ago

    What a great project! It looks so simple and fun to use :)