DIY Touchscreen Music Player for Your Car #piday #raspberrypi @Raspberry_Pi


Build a DIY touchscreen music player for your car with Raspberry Pi. via popular mechanics

Have you ever been stuck in traffic and pulled up next to some maniac singing along with the radio to an audience of no one, index fingers drumming out a spastic beat on the steering wheel? That’s me. As a married man living in Manhattan, I have a special affinity for my car’s cloistered interior. It’s a rare womb of privacy, a work-and-email-free bubble where I can reflect quietly or rock out as the day requires.

A few months ago I realized my haven was losing its appeal, and I sensed it was connected to my radio’s anachronistic scan button. In a world filled with customized on-demand entertainment, the clunky AM/FM radio in my 2008 Ford Taurus is embarrassingly dated. I can pretend I’m Jay-Z all I want, but his ride has to feature a media center with more than six FM presets.

So I decided to see if I could build a touchscreen dash personalized with thousands of my favorite songs using a Raspberry Pi, a computer board barely larger than a credit card. If you haven’t heard of Raspberry Pi yet, remember the name—this easy-to-use microcomputer is taking over the programming world. Lauded by amateurs for its accessibility and by experts for its versatility, the Pi has been the catalyst for all sorts of cool projects: voice-activated coffeepots, self-watering plants . . . even touchscreen car dashboards.

You can find a Raspberry Pi online for less than $50, and I ordered mine from the tech website Setting it up for this project was fairly straightforward. The Pi is basically a Swiss Army Knife of inputs that you’re already familiar with: HDMI and Ethernet connects, four USB ports, an audio and analog video port, and an SD card slot. This last input is the most important because the Pi runs its operating system (known, a tad confusingly, as its “image”) from an SD card.


There’s a bustling online community of Raspberry Pi coders who make pre-programmed images available for download. When I searched for images that would run a homemade media center, a site called had the most popular version: software for a media hub akin to what you see on an Apple TV. It can play music and movies, display pictures, and run other media apps such as Pandora—it can even stream content from Apple devices using AirPlay. Most conveniently, XBian can be played on any screen with an HDMI input, including the touchscreen I planned to build. I popped an 8-gigabyte SD card into my laptop, and by following the step-by-step directions of the free installer I downloaded from the XBian website, I copied the image directly onto my card. Then I ejected the card, slid it into my Raspberry Pi, and congratulated myself on becoming a genuine programmer.

Assembling the actual touchscreen—a Tontec seven-inch HD screen I found on Amazon for $75—was a bit trickier. The touchscreen comes with a primary control board that looks strikingly similar to the Raspberry Pi, plus two smaller control boards, all of which help communicate data to the Pi. The LCD screen and the glass touchscreen, meanwhile, don’t come attached to each other because I guess that would make too much sense, so I had to connect them myself. There’s a rough guide online to making a touchscreen dashboard in which the author, a mysterious wise man identified only as Zaqq, explains how to do this with masking tape. I simply aligned the touchscreen atop the LCD screen, then ran tape along the centimeter-thick edges of the two stacked screens. For security I used five layers of tape, and I folded any excess neatly onto the back of the LCD screen.

To work properly, the touchscreen needs to be connected to its three control boards via three cables. Tontec does not include instructions, but each wire snaps exclusively into a specific corresponding jack, so I managed to connect everything using trial and error. Next I linked the touchscreen to my Raspberry Pi through HDMI and USB cables. I plugged the Pi into an outlet with its included power adapter. The touchscreen didn’t come with one, so I plugged it into the wall with a twelve-volt AC/DC adapter I bought separately.


Read more

998Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!

Adafruit publishes a wide range of writing and video content, including interviews and reporting on the maker market and the wider technology world. Our standards page is intended as a guide to best practices that Adafruit uses, as well as an outline of the ethical standards Adafruit aspires to. While Adafruit is not an independent journalistic institution, Adafruit strives to be a fair, informative, and positive voice within the community – check it out here:

Join Adafruit on Mastodon

Adafruit is on Mastodon, join in!

Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 36,000+ makers on Adafruit’s Discord channels and be part of the community!

CircuitPython – The easiest way to program microcontrollers –

Maker Business — “Packaging” chips in the US

Wearables — Enclosures help fight body humidity in costumes

Electronics — Transformers: More than meets the eye!

Python for Microcontrollers — Python on Microcontrollers Newsletter: Silicon Labs introduces CircuitPython support, and more! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

Adafruit IoT Monthly — Guardian Robot, Weather-wise Umbrella Stand, and more!

Microsoft MakeCode — MakeCode Thank You!

EYE on NPI — Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — #NewProds 7/19/23 Feat. Adafruit Matrix Portal S3 CircuitPython Powered Internet Display!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at !

No Comments

No comments yet.

Sorry, the comment form is closed at this time.