September 18, 2013

3D printing with my Raspberry Pi

Versión del blog en Español aquí

A few weeks ago, a couple of friends and I finally decided to build our own 3D printer. The printer we chose is the Prusa Iteration 2 and the parts we used are the ones that can be found  at Proyecto Clone Wars. Some parts are printable by another person with a 3D printer, and you can buy the others in a hardware store and other specialized stores. We bought them in RepRapWorld.

For the assembly we follow the fantastic guide that can be found in iearobotics (in Spanish).

And after putting some neon lights I had, this is the result:


The lights are useful to check the progress of the printing without having to turn on the light of the room.

Once I assembled the printer and I had choose how I was going to send the movement instructions. I could have used mi desktop but some of the printings last quite a long time, and I wanted to be able to turn off/restart the PC whenever I wanted without having to wait for the printing to finish. I also thought about using my laptop but then I wouldn't be able to take it anywhere, which is the purpose of a laptop.

That's why I decided to set up my Raspberry Pi to use it as the controller to send the movement instructions. I installed the Raspberry Wheezy distribution that can be found at the website of the platform. Tu use the printing interface you will need to install python in the system. I installed version 2.7. Now you have to install wxpython. To do this, open a terminal and type:

sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev

Now serial for python must be installed. Download the package, extract it, get into the directory and execute:

sudo python setup.py install

Finally, download pronterface. This program will manage the printings. Just extract the files from the package, get into the directory and execute:

sudo python pronterface.py

It is important to execute the command as administrator because I had some problems when the interface tried to modify something and the terminal complained that it couldn't.

And that's all. My Raspberry Pi is managing the printings of my 3D printer.

NOTE: If you have a regular computer, I recommend to generate the G code from the pieces there, and then just transfer the files to the Raspberry Pi with a pendrive. Just to send the movement instructions, the platform works fine, but generating the G code requires quite an amount of computing and you can find yourself waiting for an hour just to generate the code of a small piece.

Now that I can print solids, I designed a box for the electronics with the controllers for the stepper motors. I used an old fan from a computer and a refrigerating base for a hard drive with two small fans to cool down the electronics. This is the result:


June 02, 2013

LED lamp medieval style

Versión del blog en Español aquí

I always loved the medieval stuff and when I was playing Diablo III (unfortunately I don't have time anymore) I saw a video where one of the scenes happened in a library. There were many old books piled in stacks with big melted candles on top of them, and I really loved how medieval-looking image that was (or at least, that's what I thought). Since one of my many hobbies is to build things that I like, no matter how difficult or unrealistic the project is, I went for it, having in mind the idea from the video. As to be expected, using real candles can be dangerous and since I didn't feel like setting anything on fire, I chose to use LEDs.

I went to a lamp store and bought and LED lamp that came in parts. On the one hand you had the luminosity regulator and the tension converter, and on the other hand you had the LED lights. I was going to need three of them for my experiment, but I could have used up to six of them.

In a store that sells stuff for hobbies, I bought a round candle mold and lots of bee wax. You can also find paraffin wax, but I like the smell and the touch of the first one better.

And in a hardware store, I bought an aluminium pipe, of around two centimeters in diameter, and some paint in spray.

I would have liked to have pictures of all the process, but when I decided I was going to make the lamp, I didn't know I was going to end up writing a blog like this one, so I apologize in advance if the explanation seems a little poor, even though I will try to give all the details I can remember. But of course, don't hesitate to ask as many questions as you like.

Making the candles:
The candles had to be hollow in the middle so the wire of the lamp could go through them. I cut the pipe  in three different sizes that I wanted for the three candles. Then, I put every piece inside the mold, in the middle, so when I pour the wax the core would stay hollow.

You have to be specially careful while melting wax. That's why I strongly recommend to read the instructions before doing it and follow the steps thoroughly because handling the wax in an improper manner can cause very dangerous results.

Making the book:
For the cover, I used some scraps of wood I had at home and painted them with the sprays. For the pages of the book I used old newspapers that I cut with a guillotine and then glued together so they didn't move. I  glued a burnt photo to give it an old, used look and smaller pieces of wood painted with silver paint. I then made three holes where the candles would go so the cables of the LEDs could be put through.

Putting everything together:
When the wax cools down, it shrinks, so even when you filled the mold all the length of the central pipe, you'll see that a couple of centimeters of the pipe protrude. This is good, because it will be the end that will fit in the holes of the book and will give the candles more stability.

We fit the candles in the holes of the book and put the cables of the LEDs through them. Since the cases of the lights were in sight, one way to cover them was to melt wax over them. This makes it look that the candles have been used and the melting wax spilled over.

The last step was to tie a belt around the book and connect the LED's to the converter.

This was the final result:







April 12, 2013

jaBOTron


Versión del blog en Español aquí

This year, I went with a couple of friends to Alcabot 2013 and participated in three of the competitions:  tracking, sprinter and minisumo, as part of the GoShield team.

Out of the three robots, I assembled and programmed the tracking robot, always with my team's help and support, and I named it jaBOTron.

I based the design of the robot on my old Lady-Bot and used the following components:
I had some problems with the code in the first round and the robot didn't work as good as I was expecting, but in the previous hour to the final rounds, I got time to debug my code a little more and, in the end, the robot showed and incredible improvement in comparison to the first round.

I got seventh out of thirteenth in this category, but keeping in mind that I only had two weeks to assemble and program the robot, the result was very positive. Also, the experience has been really good and the most important thing, I learned a lot and I'll be back next year with new ideas.

I will update this post with the videos of the competition as soon as the organization publishes them.

March 02, 2013

Lego case for my Raspberry Pi v2.0


Versión del blog en Español aquí

After building the first case for my Raspberry Pi with Lego pieces, and thanks to some advice from some of my friends, I decided that my first case needed some (if not many) improvements.

For the second version, I took my time and found pieces of the same color, in this case, red. I chose this color because I wanted to put some holes for ventilation and the only pieces I had where red. I also put small doors for the RCA video connector and the audio jack so that I can access them easily. I also put a couple of hinges on the cover so I can have easy access to the inside. And finally, my idea is to overclock the board and to do this I need to use heat-sinks on the chips, I placed a small fan to help with the circulation of air.

This is the result:

UPDATE: A short time ago, a reader made me notice that I mention heat sinks for my Raspberry Pi in this entry, but that I don't post any pictures. Well, with my most sincere apologies for this slip and the delay, here there is a couple of pictures of the board with the heat sinks:

Determining where the heat sinks should go was easy thanks to this great article (in Spanish, easy to understand just by watching the pictures).

March 01, 2013

Lego case for my Raspberry Pi


Versión del blog en Español aquí.

I won a Raspberry Pi at the competition. I needed a case and since the student's life is really poor, I used my old Lego pieces to make one. I apologize in advance for the poor quality of my pictures but the camera in my cellphone is really bad.
You can see in the picture above that the place where the Raspberry Pi stands has small pieces. This is so the circuits don't touch the bottom. When I was assembling the structure, I thought I was going to have to use a tool to modify some pieces for the board to fit inside, but it turned out the Lego pieces had the precise size and everything fits perfectly.
For the cover I used other pieces so they hold the Raspberry Pi still once everything is in place. The next couple of pictures show the case finished. 
The following picture shows the Ethernet and USB connections. 
HDMI connector.
And the SD memory card and the hole for the power supply pin.
The other connections are covered by the pieces, but if I ever need to use them, I just have to remove some of the pieces and open a hole. Really easy.

As it can be seen, all the pieces have a weird discoloration. This is because they're really old, but I couldn't be happier with the result.

February 24, 2013

Lady-Bot

Versión del blog en Español aquí

This year I took part of the III Comptetion of Robotics of University of Alicante. My robot was the following one:


In the end, I made a few minor changes like adding more sensors, but the design barely changed.

These are some pictures of the competition:


And some videos:




I got second place in the end, and won a trophy and a Raspberry Pi.