Youth Project: Raspberry Pi Touchscreen

Hello again, this is Bella Palumbi, back today with another recent project I’ve worked on at the Tech Center. If you’d like to check out my previous post, you can see it here: Raspberry Pi Time-Lapse Camera.

This project was to connect a Raspberry Pi to a touchscreen. The idea was to be able to run a 3D printer through a Raspberry Pi through a touchscreen. Right now, each 3D printer at the Tech Center is connected to a Pi, but they are still interacted with through a desktop computer. It would be convenient if every printer had a touchscreen connected to it, or if all the printers were controlled from a single, large touchscreen. There is a program called OctoPrint that the Tech Center uses to run its printers through Pis, and OctoPrint has a touchscreen mode that could be used in this project.

First, I had to assemble the screen. I was using a 7 inch display.

touchscreen01
Image from: Element 14

There wasn’t any soldering, but I had to unscrew a lot of small screws, as well as use wires to connect a few components.

Then, I installed the Pi in the case. It was a little difficult because the screen wasn’t attached yet and kept falling out of the case while I was trying to put in the Pi. For this project I was using a full size Pi instead of a Zero, so it was a little easier to work with.

Once the Pi and the screen were properly installed in the case, the next step was to install and boot up OctoPrint. That wasn’t too hard. Then, the device was connected to a 3D printer. It actually worked! Then I added some scripts to the Pi that would cause the OctoPrint interface to start up on launch.

touchscreen02

That’s it. It was pretty fun, especially the first time the Pi connected to the touchscreen, because it was so much easier to interact with a touch interface than a computer one. I think that it would be really neat to arrange a system where all the printers are controlled by one touchscreen, so maybe I’ll work on a project like that in the future!

Youth Project: Raspberry Pi Time-Lapse Camera

Hi! I’m Bella Palumbi. I’ve been a member of the Tech Center for almost four years now, ever since I was eleven. In that time, I’ve worked on lots of different projects, including iPhone apps, websites, virtual reality experiences, and much more.

Recently, I made a Raspberry Pi Time Lapse Camera. A Raspberry Pi is little computer that you can program to do almost anything you want. They’re great for small projects because they are cheap, light, and versatile. For my project, the idea was to make a camera that takes a picture every few seconds. You can play all the pictures in a row to see a time-lapse of the user’s day.

timecam01

The first step in the project was to burn the correct .img file onto the SD Card, which would be inserted into the Pi. An .img is an operating system. I used a program called ApplePi Baker because I was using a Mac computer.

The next step was to prepare all the wiring. I needed to solder together many different components including a button, a switch, a battery, and, of course, the Pi itself. All the wires and components had to be connected in the right way. The Raspberry Pi is very small, and I was actually using the Pi Zero, which is even smaller. So it was hard to be extremely accurate with the soldering iron. I probably spent most of my time soldering and re-soldering the wires!

It’s cumbersome to carry around a jumble of electronics and wires, so the tutorial came with a 3D design file to print a case for the time-lapse camera. The easy part was printing the case. The hard part was fitting all the pieces inside. I spent about an hour rearranging little tiny components in a little tiny plastic box. A couple times, the solder holding the wires together broke and I had to re-solder them. When I finally got the box closed, I was praying that it would work.

It did! When I turned the device on, after it booted up, it started taking pictures every 15 seconds. That didn’t seem often enough, so I took out the SD card, plugged it into my laptop, and brought up the code. By changing just one number, I was able to set the time interval to 10 seconds. Then, I booted up the Pi again. Still too slow. So I set it to 5 seconds. That seemed about right. Just for fun, I also tried a 1 second interval. The LED that blinked whenever a picture was taken was solidly lit now. The Pi couldn’t process fast enough, and was barely able to shut down. Finally, I set the interval back to 5, the number that worked the best.

timecam02

All in all, it was a fun project. I’m sure there will be some really amazing time-lapse videos of projects that we work on at the Tech Center.