Tired Of Playing The MacBook? Play The Raspberry Pi!

pithingy

Hit up any club, party, or get together where musicians are present and you’ll probably find a DJ booth stacked to the gills with faders, various MIDI devices, and a MacBook. However abundant an OS X-based DJ platform is, we haven’t heard hide nor hare of a Raspberry Pi being used as a sequencer, MIDI device, or MaxMSP box.

[James] over at Illuminated Sound put together a great tutorial for making all those cool electronic music devices play nice with a Raspberry Pi. He used a Novation Launchpad, an 8×8 MIDI controller that can act as faders, a keyboard, or even a functional equivalent to the pads on an MPC.

Hardware is nothing without software, so [James] used Puredata and libusb to turn the MIDI data into notes and audio effects.

[James] added a download that includes the Launchpad driver and a Puredata sketch to test everything out. You can see how it all fits together in the video after the break.

Continue reading “Tired Of Playing The MacBook? Play The Raspberry Pi!”

Raspberry Pi And R

R

[Stephen] picked up a Raspberry Pi to do a little hardware hacking and add a blinking LED to the many feathers in his software development hat. He picked up an analog to digital converter and a temperature sensor that would serve him well in a few projects he wanted to put together, including a weather station and a small Pi-controlled home brewing setup. He ended up not liking Python, and didn’t like the C-ness of wiringPi. He’s a scientist, so he’s most comfortable with R and Matlab. Of course, playing around with a R and a Raspberry Pi means replicating his sensor-reading code in R.

[Stephen] put together a neat little package that will allow him to read his sensors over an SPI bus with his Raspberry Pi. Yes, this functionality can easily be duplicated with Python, but if you’re looking to generate beautiful graphs, or just do a whole lot of statistics on something, R is the tool you need.

It’s a cool project, even if it is only measuring the temperature. Using R for the nerd cred isn’t bad, either.

Raspi Astrophotography Board Also Does Everything Else

FPGA

A few years ago the folks at Astro Designs put together a board that took off-the-shelf CCD sensors from point and shoot cameras and turned them into respectable astrophotography sensors. Since then, the world has seen an explosion of Raspberry Pis, Arduinos, and other microcontroller platforms, making this the perfect time for a hardware revision.

Their PiXi-200, like their previous AstroCam board, is able to take image sensors out of cameras and turn them into telescope mounted cameras. That’s only one of its tricks, though: The PiXi-200 also has accelerometers, gyroscopes, enough UARTs to do just about anything, a four channel ADC and four channel DAC, two dozen GPIO pins, enough LEDs and buttons for any project, and a 200,000 gate FPGA. All this in a board that plugs directly into the GPIO pins on the Raspberry Pi just like an Arduino shield. Needless to say, there’s a lot you can do with this board.

Right now, the design is still in the prototype stage, but once everything is finalized the basic model of the board will sell for £30 GBP ($50 USD). The high-end “Model C” board, with all the bells and whistles, will sell for £45 GPB ($70 USD).

Putting The BBC In Seattle

radio

Among great British traditions, there’s tea, knowing how to lose an empire, tea, Parliament, big ben, tea, incalculable wit, Parliament, big ben, tea, and BBC radio. While Britons in foreign lands may not be able receive BBC radio over the airwaves, there is the remarkable BBC iPlayer that allows online streaming of all those awesome BBC radio stations. Unfortunately, moving away from the Prime Meridian means the BBC radio schedule deviates from the schedule ordained by divine right. In Seattle, for example, a Friday evening comedy would be broadcast in the middle of the afternoon. Basically, it’s like listening to  Prairie Home Companion on Saturday morning. It just feels wrong.

[Adam] came up with a clever solution to this problem. Yes, it’s really just a Raspberry Pi-powered web radio, but there’s a twist to this build: everything from BBC radio is buffered and time shifted. A program that airs at noon in London will now play on [Adam]’s radio at noon in Seattle.

The hardware portion of the build is an exceedingly British radio which [Adam] deftly modified to include an auxiliary input. The software portion of the build uses ffmpeg, mplayer, and a PHP script to stream the iPlayer audio to a file, wait 8 hours (or whatever the offset from GMT is), and start playing the audio.

In the end, the time shifted BBC radio works perfectly, and even caught the attention of a few people at BBC Radio 4. [Adam] was interviewed about his project, and was even able to listen to his interview several hours later.

Hardware SPI With Python On A Raspberry Pi

While the Raspberry Pi has very good support for an I2C bus, a lot of very cool chips – including the in system programmer for just about every ATtiny and ATmega microcontroller – use an SPI bus. [Louis] sent in a tutorial for getting hardware SPI on his Raspi, and even though it’s rather limited right now, it’s a step in the right direction.

Previously, [Brian Hensley] put up a tutorial for using the Linux SPI drivers with the Raspi. [Louis] wanted to play with SPI in Python, so he added a C extension to the spidev.c file (available here) that allows him to open an SPI connection, initialize, transfer, and close the connection.

After connecting an Arduino to the MOSI, MISO and SCK pins of his Arduino, [Louis] was able to transfer data from his Raspi over an SPI bus. It should be noted that a level shifter would be a really good idea here, but this is an excellent project if anyone would ever want to port AVRDude to Python.

 

Hackaday Links: Christmas Eve, 2012

It’s Christmas Eve, the perfect time to interact with your extended familial units, eat cookies, nog things up a little, and watch Die Hard. Christmas Eve also means it’s a low-effort day here at Hackaday, so here’s a few cool things we’ve run across in the past few weeks.

A Round OLED Display

1_13inch_Round_OLED

That right there is a circular OLED display. [ArtistEngineer] over on reddit found this display on AliBaba. It’s a 1.13 inch diameter display with a resolution of 128×128 (yeah, we don’t know either). This looks like a great display for a DIY wrist watch, digital gauge, or loads of other devices where a square display doesn’t make much sense.

There seems to be a few circular OLED display manufacturers – including Truly Semiconductors who happened to put up a datasheet for their round display – but sourcing these in reasonable quantities is a pain. Anyone up for a group buy? Think of the fun you’ll have coding a polar coordinate display!

Computing with transistors

gate

So you know computers are made up of simple logic gates, latches, buffers, and other miscellaneous digital cruft,  but how do we turn these digital circuits into a computer? Over the last few months, [Andrew] has been putting up a bunch of blog posts on the application of digital logic. Start out on the ‘Computing with Transistors’ post before moving on to The Digital State and Circuits and Arithmetic. There’s some good readin’ there.

 Embedding 3D objects in a web page

Go ahead. Click it. It’s Sketchfab that allows anyone to publish interactive 3D designs without a browser plugin. If anyone out there is trying to build a Thingiverse clone that isn’t tied to Makerbot, consider using this for the preview page for each object.

Surprisingly, Twinkies were the one thing that didn’t survive the Apocalypse.

twinkie

While there’s no use in mourning the death of the Twinkie – Little Debbie also makes small cream-filled cakes – you might as well include some Twinkies, Snowballs, Ding Dongs, and Ho-Hos in your Christmas baking. [scoochmaroo] on Instructables put together a list of homebrew recipes for the now defunct Hostess snack cakes.

Perfect for autonomous robots

code

[maxogden] over on the gits put together a script for automatically joining wireless networks on Linux. This was tested on a Raspberry Pi, and we’re thinking it would be perfect for whatever autonomous creation you’ll be building in your workshop next year.

FireHero: Raspberry Pi Controlled Pyrotechnics

Fire Hero 3

To put on a live pyrotechnic show at a music festival, [Chris] built the FireHero 3. The result is remotely controlled flames shooting up to 100 feet in the air.

The system is controlled by a Raspberry Pi and an Arduino. A server runs on the Pi and allows a remote computer to control the system. The Pi sends commands over serial to the Arduino, which switches solid state relays that actuate the valves.

There’s also some built in safety features: the system won’t boot unless you have the right key and RFID tag, and there are pressure transducers and temperature sensors to ensure the system is operating safely. A CO2 actuated valve can quickly stop fuel flow in an emergency.

Vaporized propane creates the fireballs. The vapor is created by heating the supply tank in a hot water bath. An accumulation tank stores the vapor and custom built manifolds distribute it to the various flame cannons. At each cannon, a silicon nitride hot surface igniter (HSI) is used to ignite the flames once the valve is opened.

After the break, watch a video the the FireHero making some flames.

Continue reading “FireHero: Raspberry Pi Controlled Pyrotechnics”