HBL LED Driver working
Submitted by machack on Sun, 06/14/2009 - 08:03.It's officially working! It's kind of hard to see the colors but my camera ran out of battery just after taking this. Each of the 5 LEDs has full RGB color control, 12 bits per channel. The CPU is a 70 MHz ARM7, and the whole thing is an inch square.
Random tip: linking 32-bit c++ binaries on 64-bit Ubuntu
Submitted by machack on Wed, 04/29/2009 - 18:02.Platform: Ubuntu 8.10 (intrepid) 64-bit
Error:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2/libstdc++.a when searching for -lstdc++
Solution:
apt-get install g++-4.3-multilib
Random Tip: wine doesn't like a closed file descriptor on stdin
Submitted by machack on Wed, 02/25/2009 - 00:28.I wanted to run a wine process in a daemon context, so I closed the stdin file descriptor. On versions 1.0.1 and 1.1.15, at least, this doesn't work.
This fails:
$ ( exec <&- ; wine cmd /c echo hello )
wineserver: chdir to config dir : Not a directory
wine: for some mysterious reason, the wine server failed to run.
Use /dev/null instead.
This works:
$ ( exec < /dev/null ; wine cmd /c echo hello )
hello
Useful ARM processor links
Submitted by machack on Thu, 02/19/2009 - 22:27.For AVR processors, avrfreaks.net has a pretty good parametric device search. I had a bit more trouble finding one for ARM processors. Having done so, maybe I can save other folks a little bit of time:
Parametric List of ARM7/ARM9/Cortex Devices
Parametric search
Next step: make ARMs as hobbyist-accessible as AVRs.
LED Boost Controller
Submitted by machack on Sun, 11/16/2008 - 07:20.The LEDs pictured require at least 8 volts to light in series, but they're being driven by less than 3, through a boost converter. The converter is a TI TPS61161, and was surprisingly easy to solder despite its small size and the thermal pad underneath, even with no solder mask and no solder paste. Surface tension really helps here. I just tinned the board using an iron and reflowed using a hot air gun.
Shameless bragging
Submitted by machack on Thu, 10/30/2008 - 22:46.The violin project made #1 in Fantasy Magazine's Top 10 Steampunk Gadgets!
Homemade Breathalizer
Submitted by machack on Thu, 10/23/2008 - 07:04.Fun with an SnO2 alcohol vapor sensor.
LED Driver
Submitted by machack on Fri, 10/17/2008 - 08:34.The prototype PCBs for the Hackerbot Labs LED Driver board came in! It's kind of hard to tell, but they're an inch square. Either this weekend or the next I'm gonna try bringing it up.
imagemagick + ffmpeg
Submitted by machack on Wed, 09/10/2008 - 23:43.I was trying to make an animation of a bouncing ball to illustrate some frame rate conversion issues at work. I wasn't able to get ffmpeg to turn the sequence of PNGs into a movie:
ffmpeg -i ball-%03d.png ball.mp4
Depending on the version of ffmpeg, I got either a useless error message or a misleading one.
The answer is to look at the files themselves:
$ file ball-000.png
ball-000.png: PNG image data, 640 x 480, 16-bit/color RGBA, non-interlaced
ffmpeg can't deal with 16-bits/channel. Neither can mplayer. (At least in the versions I was using.)
Adding -depth 8 to the beginning of my ImageMagick convert command line fixed the problem.







Recent comments
2 days 21 hours ago
1 year 43 weeks ago