Skip to content

3D model of a case for the Raspberry Pi 2,3,4 with a 5' touch LCD and four buttons

Notifications You must be signed in to change notification settings

petl/RaspberryPi_5inch_case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi 5inch touch LCD case

3D model of a case for the Raspberry Pi 2,3,4 with a 5' touch LCD and four buttons.

Final Work The Final setup in its natural habitat with the weather, central heating and public transport monitor open.

More in depth explaination here: https://quiescentcurrent.com/blog/post.php?p_id=61

Hardware

I've used a Raspberry Pi 2, but a Pi 3 or 4 should also work.

The LC-Display is a 5 inch resistive touchscreen, which can be bought for around 25$ form ebay or amazon.

The fours buttons are 12mm types, ebay is also your friend here, but any electronic component supplier has those.

3D printed parts

The parts are drawn in solid edge and exported as is usual as stl. You can slice them yourself or just take a look at my design skills.

Especially the LCD it quite a perfect fit on my lulzbot mini, maybe you have to play around a bit with the settings.

The four screws are meant to be M3 x 20, if you don't have those just use any reasonably sized ones. They are responsible for holding in the LCD by applying pressure to the back of the raspberry, I've applied some sticky foam tape on the back cover so the Pi can't wiggle around, but without should also be fine.

Rendering Front

Software

The raspberry can use the touchscreen more or less natively. If you're unsure about how to setup up your pi, use this insctructables.com.

I've added three files:

  • buttonWatch.py: This is a small Python script used to detect pressed buttons and translate them into virtual keyboard presses in order to operate the chromium / chrome webbrowser. The script can right now scroll down, up, go ho the homepage and go back. The buttons are mapped to four free pins (6,13,19,26) on the RPi header. You need to install pyntput with:

pip install pynput

  • startChromium.sh: Starts the buttonWatch.py and then chromium browser in Kiosk mode. It disables the mouse pointer and a few things so it looks nice while idling.

  • autostart: this file is just the windowmanager autostart procedure and should be copied to .config/lxsession/LXDE-pi/autostart so it gets run when the pi has finished booting up. It basically starts the wifi and then the chromium browser.

The whole blog post with more pictures is here.

About

3D model of a case for the Raspberry Pi 2,3,4 with a 5' touch LCD and four buttons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages