Raspberry Pi Stop Motion Animation Rig
Raspberry Pi Stop Motion Animation Rig
by wonderfulidea
Stop-motion animation is a technique where objects home or incorporated into classroom lessons to
are physically manipulated, and photographed deepen and reinforce learning. Users can create their
frame-by-frame to create the illusion of a moving own characters to insert into a history lesson, art
image. project or a microscopic world, using stop-motion
animation and simple, everyday materials to tell a
Our mini stop-motion animation exhibit is made with story or illustrate their understanding of scienti c
a Raspberry Pi, which is a "tiny and a ordable concepts in a playful, engaging way.
computer that you can use to learn programming
through fun, practical projects." This guide is a still a rough draft! We'll keep working
to develop this playful tool for exploration so that it
The rig uses a Raspberry Pi, a pi-camera and ve can be used in museums, classrooms, maker spaces
simple input commands to create endless storytelling and your kitchen table. Feel free to remix the
possibilities. It can be connected to any monitor or animation station, and please let us know what you
projector, and learners can work on their own or come up with as you experiment. Check back for
collaborate in pairs to create their animations. updates as we re ne the design of the hardware and
software.
This tool can be used for open-ended exploration at
G a t he r t he w o o d f o r t he 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
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 rst.
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 nished.
This camera arm is foldable and removable which arms. Test out the curves to make sure they can work
makes it easy to store the animation station. It's also as a pivot.
really complicated to make. You can adjust this step to
t your needs and woodworking experience level. The Cut a 2.5" long piece from the 1x2 board for the
goal at the end of the step is to have the camera camera block
above the center of the station.
Draw out the pattern as seen in the pictures to make a
Cut o a 5" long piece from the 1x1 board and drill space for the camera block to pivot and a at space to
three 1/4" holes (one a 1/2" from the top) and the attach the pi camera.
other two to match the 1/4" holes in the back of the
box Use 1/4 -20 pan head bolts, washers and wing nuts to
connect the small block to the back of the box
Cut o an 11" piece and a 13" piece from the 1x1 Connect the short (11") and long (13") arms together
board with a 1/4-20 bolts, washers and wing nuts. Attach the
camera block to the curved notch in the top of the
Use a drill and a scroll saw to cut the slots for the short arm piece. Attach the arm structure to the last
camera wire and the drill holes as seen in the pictures hole in the short block using a 1/4-20 bolt, washer
accompanying this step. Use the scroll saw and drill and hex nut.
technique to cut out the notches in the base of the
Attach the arcade buttons to the top of the box by Attach the kill switch to the back of the box in the
twisting o the switch part of the buttons, same way so that the plunger is pointed out the back
unscrewing the black plastic nut, pushing the button of the box.
through the hole, tightening the nut and
reconnecting the switch. Do this to all ve buttons in Allign the mini fan over the 3/4" hole on the inside of
the order from top to bottom of red, white, green the back of the box. Mark the spaces for the holes and
blue and yellow. drill pilot holes in the propoer place. Use the 4-40
screws and bolts to secure the fan on the box.
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.
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 rst)
Raspberry Pi Stop-Motion Animation Rig: Page 13
Attach the ex 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.
Use the double stick tape or screws to connect the Attach a mouse and keyboard to the Raspberry Pi (if
Raspberry Pi case to the base of the box. Attach the you are using the bluetooth keyboard follow the
protoboard and other components to the base of the instructions to connect).
box using screws or double stick tape. You may want
to add p-straps to the wires to make everything tidier. Connect the Raspberry Pi to the monitor using the
HDMI cable.
Plug in the power cable and the HDMI cable to the
Raspberry Pi
Install mpeg, omxplayer, python, and pygame on A new window will open, use the cursor keys to move
your Raspberry Pi by typing these commands into the to the camera option, and select 'enable'. On exiting, it
terminal will ask to reboot. Reboot your the Raspberry Pi.
https://vimeo.com/410697923
Download
https://www.instructables.com/ORIG/FD2/K2HL/JSUOVWNO/FD2K2HLJSUOVWNO.pdf
…
Camera settings for setting up the raspberry pi camera are located under interacting options
Looks like with the latest updates, the new command for installing pygame is `sudo apt-get install
python3-pygame`
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.
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.
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.
I really don't remember and it's been several months. However, looking through the scripts, it
doesn't look like that problem exists anymore.
It might be that textinput, TextInput and text_input were where the problem was.
This looks like a great project, thanks for sharing!
When it states "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," does that mean that the playback of the animation can
not be seen in realtime while working on it, or is this the processing time after completing the
animation? I am guessing it is referring to post-processing. I realize that processing time will
depend on the duration of the animation, but do you have an estimate for the processing time? For
example x seconds of processing time for one second of animation. I am considering writing a
grant to produce a number of this for a few of the schools and the public library where I live, so a
better understanding of the processing time would be helpful in my decision to move forward.
Thanks again!
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.
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.
Very nice project, I love it! I have also made a stop-motion recorder myself for Linux. May be worth
to check it on GitHub: https://github.com/prampec/RivetCam
How about a little show and tell. A short animation video in the title would be inspiring!
good idea! just added one of our favorites made at Tinkerfest at Chabot Space and Science Center
last year
Now i'm really motivated to build a similar animation station. Good job.
WOW!!!!
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?
Also just reach out if you have any questions to [email protected] - we'll be happy to
respond to challenges that come up!
Cheers,
Ryan
Interesting although I have only minimal room for stop motion animation. Did go to college for a
course in classical animation in the early 1970's! https://youtu.be/FaIiKD25VV4 Also did a short
stop motion animation on my scanner/printer a while back:
https://www.facebook.com/bob.wierdsma/videos/10213546616555265/
Awesome project. Hours of playtime for kids. Great activity for a classroom.
And lasts for years
Great job - I love how you installed the buttons on the side. Makes operating the camera so simple.
Thanks for sharing!
Nice!
Oh lovely! :D Just not for me. Making electronics is not my thing. But I will share with others. :)
yay thanks! and if you want to start with a more approachable electronics project, you can try out
circuit boards from Tinkering Studio: https://www.exploratorium.edu/sites/default/files/... or our
motion machines guide: https://www.instructables.com/id/Motion-Machines/