[!] The blog has moved [!]

The blog has moved to http://carlitoscontraptions.com/.

You will be redirected to the new URL in 5 s. Sorry for the inconvenience.

October 31, 2008

Tony's LEDs

I received many questions about the circuits driving the LEDs in many of my projects, especially for the Iron Man's repulsor.

LEDs are pretty neat devices. You make some current flow forward through it and you get some light as a result. Nevertheless, since they are diodes, they can allow an infinite amount of current to flow (which in practice means a lot of current) and this can be problematic since, as any electrical device, it cannot handle that much current. In order to prevent them to pass too much current, a current limiting circuit is required (usually implemented as a resistor in series).

When you buy an LED, you (should) get two very important parameters, the voltage drop across them (say, V_LED), and the maximum continuous current (I_LED).

So, for the trivial case where we have a battery (V_bat) in series with a resistor (R) and an LED, the value of R must obey the following inequation:
If you decide to place many (say, n) LEDs in series, the inequation becomes:
Finally, if the LEDs are in parallel (as is the case for the repulsor), the inequation becomes:
This result can be obtained by applying Ohm's law (V= RI) to the circuits described above. The proof is of course let as an exercise for the reader ;) .
This page has a very nice LED calculator which makes life really easy when calculating resistor values: alan-parekh.com/led_resistor_calculator.html

WARNING: the repulsor circuit may cause the LEDs to fail sooner or later. I'll post an update as soon as I have one. Thanks to Tim for the hint.

For those interested in the repulsor circuit, below you can find a diagram describing it. It is the same as the circuit with many LEDs in parallel but with a potentiometer added to regulate the light intensity. The only requisite for the potentiometer is to be large enough to attain the dimmest light according to your needs.

September 01, 2008

Eee PC 1000 + Ubuntu + KDE 4.1


My computer finally died. After close to ten years of faithful service, my computer catastrophically failed one last time (this doesn't necessarily mean I won't try to fix it). Anyways, this pushed me to finally buy another computer after many years of searching around.

I chose to buy an Asus Eee PC 1000; I could not be happier with my buy.

The obligatory Eee PC specs:
  • 1.6 GH Intel Atom CPU
  • 1 GB RAM
  • 40 GB SDD (8 + 32)
  • 10 in LCD
  • SDD card reader
  • Multi-touch touchpad
  • Shiny black body
  • WiFi draft n
The solid storage is great. It gives the peace of mind that I require to be able to take the laptop everywhere on my bike or in my backpack (I jump around a lot). I have currently formatted both disks with ext3 partitions mounted with the realtime option. I know about the life expectancy concerns but I have not found any reference that says that my SDD drives will die prematurely if I use the ext3 filesystem instead of ext2. Also, the ext3 filesystem is more robust and it doesn't corrupt files if it is not checked often or if the computer is turned off abruptly.

I installed Kubuntu by creating a live USB stick using UNetbootin and then setting the USB stick as the primary device in the BIOS. The Eee PC then boots with the USB key and Kubuntu can be installed normally. For more info about installing Ubuntu please refer to this page.

In order to have the WiFi adapter and the wired Network card working, I used the kernel packages from Array.org.

The battery life is awesome. It is much longer than in conventional laptops, even with the processor working at full speed, the LCD at full brightness and the WiFi adapter enabled. Also, the keyboard is very nice and not too small. It is really easy to get used to it. For more info about the Eee PC performance, please watch the following video:

The touchpad is very good and the multitouch feature works very well. It is hard to go back to normal touchpads. Nevertheless, a mouse is much faster and precise, so I decided to buy a mouse: the Logitech VX Nano.

Needless to say, the VX Nano is wonderful and a perfect match for the Eee PC. They have both been carefully designed with particular attention to detail and quality. They come with carrying cases and are very sturdy and good looking.

It is obvious that I'm happy with my two new toys.

Finally, KDE 4.1 is simply perfect. It is beautiful, fast, and very well thought. In short: the perfect software for the perfect hardware.

August 20, 2008

Hospital Garbage

I found a little stool lying around in the garbage lately and decided to give it a new life. It turns out the stool comes from some kind of hospital and is actually pretty old.

In order to refurbish the stool, I simply applied a coat of anti rust spray paint, oiled the screw holding the seat, and put in some new rubber feet. My grandmother, who was visiting (from Argentina) was kind enough to make a new cushion for it.

This build was really simple but resulted in a nice, modern looking stool for almost no cost.

Lunar Excavator

I was lucky enough to help my friend Stephen and his team to build a lunar excavator to participate in the Regolith Excavation Challenge, sponsored by NASA.

We put lots of efforts and many hours to get the robot done in time and we managed to get it running before it had to be shipped to California (from McGill University in Montreal).

Unfortunately, despite the awesomeness of the lunar excavator and the fact that it was going to completely own the challenge, the UPS shipment went wrong and the robot could net get to the competition on time. Now the fight with UPS has begun to get a full reimbursement (~2000$) and the robot back.

UPS incompetence aside, I worked in putting all the electronics system together in the electrical box. This meant, I had to build two boards: one for the power management (transforming the provided 24V into a 12 and 5V in order to power the many devices and turning the latter ON and OFF), and one for the logic (interfacing the main computer with the various motor controllers and sensors).

This task was done using perfboards and lots of solder since we did not have enough time to consider designing and fabricating proper PCBs with nice places for all the components.

Note the nice (and very classy) wood finish of the electrical box interior as shown in the picture.

I will not give away any details about the excavator since it will compete next year, provided there is another Regolith Challenge.

I'm Popular (Science)

My compact keychain is featured in the August edition of the Popular Science magazine. Needless to say, I'm very happy about this.

Granted, it is a small article but it is still impressive to see how far blog posts can go.