This is sort of a moot point since the the newest Arduino Mega Due does not need to go into DFU mode but just incase you have a old Arduino Mega 2560 Rev3 hanging around, here is how you put it into DFU mode.

  1. Plug the Arduino into the computer
  2. On the back of the board, with a screw driver or wire, touch these two pins together for about 5-10 seconds.Instant-1361992713567 (1)
  3. Remove the connection and thats it. You are in DFU mode.

I ended up using Flip application by Atmel because all the Mac and Linux stuff was out of date and didn’t support the Atmega16U2 chipset.

 

 

February 27, 2013 hardware

The Logitech c920 is an impressive webcam. I’ve started to use this camera as part of work for the Liberty Science Center. It has 20-step autofocus,low-light correction and 2 mics with automatic noise reduction. All within a $100 package. But what is most impressive is the image resolution. On Windows, I was able to open the diagnostic tool and export a “Resolutions” xml file. I’ve uploaded it here. Taking a look at the file the camera supports 320×240, 640×360, 864×480, 800×600, 960×720, 1024×768, 1280×720, 1920×1080 at various frame rates.

I was able to capture 1920×1080 at 30fps using Adobe Flash. However was only able to capture 15fps at the same resolution using OpenFrameworks. I thought this was odd. Looking at this thread on OpenFrameworks forums it appears the problem lies in the fact that the camera compresses the image using h264 in order to send it over USB on PC. The resolution xml file seems to confirm this. There is UVCFrameRate tag and a FMT=”H264″ attribute (which stands for ‘format’) on some of the framerate tags. If there is way to get around this framerate restriction in openframeworks please share in the comments.

I needed an IR camera so I decided to open one up. The only other documentation i could find was here but only included images for the Logitech c910 Camera. Here is my walkthrough on how to remove the IR for a C920 camera.

The lower frame-rate in OpenFrameworks was disappointing but overall a great camera especially for the price.

January 23, 2013 hardware

Someone on the Openframeworks forum posted a nice bit of code for blurring images. This change adds a alpha support (which is described in the forums but not implemented)

August 2, 2012 code snippet

Screen Shot 2012-08-02 at 10.38.29 AM

Created by Pritika Nilaratna and Luke BrownGold, ‘As Seen on NYTimes.com’ scrapes the New York Times Developer API¬† for articles containing video content. ‘As Seen on NYTimes.com’ will then continuously stream these videos accompanied with a link to the original article. ‘As Seen on NYTimes.com’ is a compelling experience for browsing the New York Times online.

October 11, 2010 interact