Posts

Showing posts with the label Raspbian

How to use an Xbox 360 wired controller with a Raspberry PI (and/or how to compile a kernel module)

Background So I asked the question, "How can I get my Raspberry PI to recognize an Xbox 360 wired controller?" The answer is: sudo rpi-update The xpad Linux kernel module is part of 3.12 and above from what I can tell (I haven't really done any research on this). What really annoyed me was the LED on the controller kept blinking. Apparently there is a compiler flag that xpad.c recognizes that isn't part of the Raspbian xpad (or normal xpad driver). How to compile the xpad kernel module for a Rapsberry PI Make sure you are up to date with the kernel: sudo rpi-update Download Source Code This guide was developed off of 3.12.x. Once this is complete and you have rebooted, login, and we can just start from the home directory by downloading the kernel source: mkdir xpad wget https://github.com/raspberrypi/linux/tarball/rpi-3.12.y tar xvf rpi-3.12.y cd raspberrypi-linux* zcat /proc/config.gz >.config make oldconfig make modules_pre...

How to setup AirPlay Audio via Raspberry PI 2014 Edition (Part 1)

Image
In this first part of the two part blog post, I am going to cover doing the initial setup of the Raspberry PI. The second part of the post covers setup of shairport (for AirPlay Audio). Prerequisites: Understanding Why? You may want to do this if you use iTunes or an iOS device and want to be able to stream audio to a stereo that has a "Line-In" capability. AirPlay stereo devices as well as AirPort devices can be costly. What to Get (all items I bought from MicroCenter ): ·        Hardware: o     Required: §    Raspberry PI Model B ($29.99 – on Sale) §    SD Card 6GB minimum (8GB Samsung Class 6 SDHC $5.99) §    Micro USB cable for power or Micro USB AC adapter ($6.99) §    HDMI cable and Monitor or TV (for initial installation only) §    USB Keyboard (for initial installation only) §    3.5mm Audio cable that can go to the stereo of your choice o ...