[!] 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.

May 21, 2008

What am I building?




I started building a contraption but I had to stop since I accidentally burned seven LEDs at once. Now, I have to wait until I get the new LEDs I ordered before I can finish. Meanwhile, you can try to guess what it is that I'm building.

My brother was kind enough to be the cameraman for this video.

May 07, 2008

Home Automation

Here is some information about a home automation system my team and I did some time ago. This was done for the Embedded Systems class and require two Altera UP1 FPGA boards, two computers and two USB-to-TTL wires.
- The nice picture above was done by Frank (see below) -

Although at the beginning of the project we were really motivated to do a robust and optimal design that could set an example on how to do home automation and that could be shared with everybody, the project quickly degenerated and the general design approach became: "We don't care of how inelegant, inefficient or completely surrealist the system is as long as it works". The main reason for this radical change was the implacable deadline that got closer and closer, and the usual lack of time Electrical Engineering students suffer from.

The system consists of a PC that takes high level decisions for the control of lighting, heating and power consumption in general for a house. This decisions are serially sent to an FPGA board that take some lower level decisions (such as debouncing switches, counting time, etc) and controls trough a very large number of IO pins (~90) the actual house hardware.

Since this is a small project, we do not have the actual house or its hardware, so we resorted to simulate it using a second FPGA board and another computer. The second computer controls the house status (temperature in each room, level of room light, motion in the rooms, status of the TV, etc) and offers an inteface so the user can turn on lights, move in a room, set the desired room temperature, turn on the microwave oven, etc. All this information is serially sent to the second FPGA board which then adjusts its pins status to mimic the house hardware.

- The GUI and the Java program was done by Yev and Ritvik -

All the coding was done in Java and VHDL and since it is not very well organized or useful to anybody else, I won't be posting it. Nevertheless, the documents describing this project are very nicely done (all modesty aside) and give a clear description of what we did. Here you have: the SRS, the SDD, and the STC (not the final version). Please keep in mind that this documents are not published under the CC license, they have full copyright.Above you can see my friend Frank, he's the leader of the group (transformed from the norm by the nuclear goop).

Just so you know, the project went well and allowed us to learn a lot. We even ended up having a very good mark, so everybody should be (and is) happy.

If you are wondering what did I do in the project (I'm sure you are): I did the serial communication protocol in Java.

May 02, 2008

ATmega168 Parallel Programmer

I own a few Rev. C Bare Bones Boards witch came with ATmega168 chips burned with the old Arduino bootloader (NG). I wanted to upgrade them to the newer (Diecimilia) bootloader so I built a parallel programmer following the instructions in the Arduino website and using parts I found in the garbage (as usual).

Materials
  • Two 470 Ohms resistors
  • One 220 Ohms resistor
  • Some wire
  • A female header at least 3x2
  • A ferrite core (not required but looks cool)
  • Some heat shrink (it could be replaced by some electrical tape)
  • A male parallel port connector (DB-25)
Programmer Schematics
(this is a vectorized version of the original schematics on the arduino site)

Construction

I got a DB-25 connector from an extension parallel port of a PC I found in the garbage. First, I removed the original cable that came with it and I soldered the programmer's resistors to the back of the DB-25 and connected them to new wires. Then, I covered the resistors and cable connections with a piece of heat shrink tubing.

The new wires where terminated in a 4x2 female header (even though there are only 5 wires). The wires and female headers come from an old computer (they connected the power buttons and the case LEDs to the motherboard). I cut the header to size from a larger header (form the same old computer) and I used an extra row to mark it with a white pin cap so I could easily remember where the #1 pin is located.


Finally, I added a ferrite core and twisted the cables in order to reduce noise and cross-talk. I don't think this is really required but it looks nice.

March 17, 2008

Engineering Bling

Finally, I got the ultimate (engineering) bling: The Iron Ring.


Needless to say, I'm happy. Also, since this means that now that I'm an engineer (only morally, not legally), I should post some nice complex projects instead of the simple things I normally blog about.


Below you can enjoy a few pictures of my homies (David and Cynthia) and I.



Note the (rather clever) use of gangster slang to denote how "fresh" we have become now that we have the ring ;)

February 10, 2008

Shoplift Alarm Sensors

I have seen many times those little anti-theft devices stuck to PDAs, digital cameras and all sorts of small consumer electronics products and I always wondered how they worked and imagined they were very complicated systems involving delicate glass switches (for detecting violent tinkering), optical proximity sensors (for detecting the change of distance/reflectivity between the device and the protected product), impedance meters on the alarm system base (for detecting the change of impedance when someone replaces the device by an equivalent circuit), etc.

The other day I was lucky enough to see (and even photograph) a broken shoplift "sensor", as they are called. I discovered that they are very simple and not that secure.

Here are my findings

Original Pictures:


How I think the system works:
The above diagram is self explanatory and it shows how simple and easy to defeat they are. The system only involves a simple metal switch and a big plastic button to operate it.