Posts Tagged ‘Arduino’

Burning a new bootloader into my Arduino Duemilanove [solved]

Wednesday, April 27th, 2011

[UPDATE]

I finally made it happen!!!!

After two days of suffering I found a thorough explanation, how to burn the Arduino bootloader on an Atmega328. This is the solution.

The 'self programming' Arduino

[/UPDATE]

I wanted to start testing the freshly soldered boards for the Diskokugel when I had to discover, I had made a big mistake simply using the Atmega328 of my Arduino in my LED lamp. It turned out to be not quite as simple to replace since the Atmega needs a special bootloader to work in the Arduino board.

There are several ways to burn that bootloader into the chip. The easiest would be having an Arduino and programming it to do it. But since mine was without working chip, I had to look for other solutions. I found one that uses the FT232 on the board to program the Arduino itsself without an AVR writer. However, the solution programmed there is for Windows only. There apparently is a way to do it with a Mac but I wasted a whole day on trying to get it to work. It’s really tiring, installing package after package due to dependencies, having to compile it all, etc. I ended up compiling packages and, when I had finally done that, having forgot what other package I actually wanted to install in the first place.

I’ll try again tomorrow, taking the chip out of the lamp and putting it back into the Arduino. If the Arduino-as-AVRISP works, Ill simply burn me a stash of Arduinos…

(Deutsch) A little LED-Lamp

Monday, February 28th, 2011

Sorry, this entry is only available in Deutsch.

PD Video Player with Sound

Saturday, November 13th, 2010

I had the idea to build a kind of solid state video player using Linux and Puredata with an Arduino. The educated reader might ask “Why PD?” and, of course, is right. The simple answer is: Because I can and its easy.

I take the latter back. When I came up with this I had totally ignored, that Puredata/Gems Pix_Film object doesn’t play sound. This means, video and sound have to be played in separate players and then be synced. Some research in PDs list gave me an example I started working with and I was partially successful. Video and sound sync well with a [vline~] but with high resolutions the sound glitches. This can be reduced by trying different video codecs (motionjpg is supposed to work pretty well) but still I wasn’t able to play 1280×1024 videos without the sound dropping sometimes. I didn’t have this problem using the [pix_buffer] object, but this way the video is loaded into the RAM uncompressed, which takes up tons of space and limits the possible length of videos loaded/used. This was on my MacBook with 2x2GHz and an onboard Intel 9400m graphics card. I will try it on Linux in the next days, lets see, if it works better.

However, I expect no wonders and theres no sense in building a solid state video player that needs hardware this expensive (and energy intensive). I want to use one of these fit-pcs, loving their small design and power consumption. For them to work with videos of that resolution I need to use their hardware acceleration, which might prove difficult on Linux (I heard nothing good about the support of intels gma500) and even worse when relying on PD/Gem, which uses OpenGL to render video. So the plan now is to use a common video player like VLC or mplayer and remote control it via network/localhost. That should take care of the hardware acceleration and still make use of the serial interface and interaction possibilities of PD. Stay tuned…

This patch syncs video and audio

PD and Arduino

Monday, October 18th, 2010

I explored some ways to use PD to communicate with an Arduino. There are wo ways to interact with an Arduio from PD: serial communication via the [comport] object and controlling the Arduino directly with [pduino] using the firmata firmware.

[comport] simply sends and receives serial messages. I found it a little difficult to convert those messages into the right format as to understand and further process them. The PD help file isn’t exactly helpful to that extend, but I found a patch called ArduinoPDMessageSystem that makes sense of the serial messages, even though I haven’t understood every objects function there yet.

So far, I have managed to send messages to the Arduino to interface a HCF4094 shift register controlling 8 LEDs. I use the same register to control my “Diskokugel”, so I heres for the next step to its completion :-)

Crazy AV Machines Workshop

Monday, October 4th, 2010

The past week I participated in a PD workshop run by Oscar Martin and Luca Carruba at NK gallery. The workshop lasted one week and ended with a collaborate performance where all participants used their patches made during the workshop. I can’t tell you how that turned out because unfortunately I had to leave two days early to finish another job. However, the workshop was quite inspiring. Oscar and Luca rushed us through the possibilities of the software so fast that I imagine it hard for an actual newbie to keep up. For me it was quite informative, especially since I had my own agenda, wanting to know how to communicate with an Arduino with PD as means of an interface.

I’ve worked with Max/MSP and VVVV before and also had a look at JMax and PD back in 2002. PD has evolved a lot since then and since it is a piece of true open source software it has all my sympathies. The community is active and I´ve found the mailing list extremely patient and useful.