Posts

Showing posts from March, 2007

Vertical Painting device

I've been working for a while on this project but now I've reached something close to a 0.1 version. I just suck at mechanical devices design. The system is copy of a similar project done at Cornell University and at école cantonale d'art de Lausanne but it happened to be more of a challenge that I assessed initially. Now that it is up and running I am using it to ease the process of transfering drawings to a canvas. I still have to discover why I am getting a 12% compression on the y-axis but in the mean time I can easily compensate for that. I wanted to use a solenoid for the pen up and down control but I did not manage to get a reliable behavior so I am using a third stepper motor I ripped off from a floppy drive (I use two stepper motors for controlling the two hanging strings). I am using coal sticks to draw over the canvas and I've noticed that next version will need to include a compensation of the wear of the coal (as it gets shorter as lines are being drawn)

Regular Expressions in ... Visual Basic .NET?

A recent project required me to use Windows while I figure out how to write a driver for a USB-based stepper motor driver I am using. I decided to see how Visual Basic works in this new and glorified .NET version (my last experience was with VB version 6 and it was a pleasant one). So I downloaded the free version (called Express) of Visual Basic 2005. I am doing so because this way any advice I can give to others may include the usual "you may want to use this software" without having to add "it will cost you so many dollars". Because most of the time I'm giving advice to my students it seems an ok approach to me. The only "requirement" to use this software for an unlimited amount of time is to give away some personal info to Microsoft. I've found the deal ok this time. The new version includes a browser window on the user interface that makes the loading time longer and I am sure I will be happier without it (maybe it can be easily disabled). I

Timing belts and pulleys

When I started the project of creating my own version of Hektor I thought that the most difficult task would be something related with the software or the stepper motor controller, but I was wrong: The most difficult part has been finding the right hardware parts. More exactly, finding a local supplier. While getting a USB 3-axis stepper motor controller on eBay was easy, even though it was coming from Australia it didn't take long. Finding the right toothed pulleys and belt it is being a nightmare, as local suppliers do not have "small size" elements nor a fast delivery. Should I have bought everything online I will be done now. To be honest I was not even aware I would need that type of transmission system. My first impression was that it could be done with just some type of string, but after several failures I had to admit that toothed belts was probably the smart way to go. But then it was kind of late as I had the rest of components laying on my desk. After vi

Grayscale with ImageMagick

I use command-line ImageMagick's graphics file handling software. It usually rocks and it use to be easy and simple to use, for that I love it. However, I've been fighting now for more than one hour to get it right. What I wanted was to convert to grayscale a set of JPEG files I had on a folder. There are a couple of annoying things with ImageMagick: Once you use wildcard as the command source file (i.e. mogrify -resize 1024x768 *.JPG ) then it seems to take a long long time to work. The reason seems to be the command reads and stores in RAM all the files BEFORE the magic starts. The result is a poor user response time (and sometimes an almost frozen system if you run out of memory and all the time is used paging). I use to change to use a for loop instead, with some "progress information" (i.e. for i in *.JPG; do mogrify -resize 1024x768 $i; echo $i " done!"; done ) I do not convert to grayscale every week, so I cannot remember how to it. Here is when the