Pages

Showing posts with label 3d printing. Show all posts
Showing posts with label 3d printing. Show all posts

Friday, August 10, 2018

OpenSCAD: Camera case for the Raspberry Pi camera module

Introduction

At the end of 2015 I placed a DIY security camera in our house with a view on our backyard. The camera consists of a Raspberry Pi model B and a 5MP camera board module (It's been replaced by a 8MP version). I used Motion, a very flexible program that monitors video signal, on top of Raspbian. It worked all these years without problem but over time the wooden case that I made was starting to fall apart. I therefore decided to create a 3D printed camera case to replace it. I also wanted to use this opportunity to eliminate the problem of glare on sunny days.


Design of the Camera Case

The camera case consist of five parts. A back and a front of the case, a camera holder and lens to protect the camera module and easily insert it into front of the case, and a lens hood to prevent glare.  I used OpenSCAD, a free and open source program to design 3D CAD models. The Constructive Solid Geometry properties of OpenSCAD are excellent for these kind of designs. The back case has mounting points for the Raspberry Pi. I use the Raspberry Pi B but the mounting points are easily changed for other Raspberry Pi models, in fact I already added the coordinates for some other models.

I updated the design with stop ring for the lens module to prevent the lens to slide into the camera a little so this is a link to version 2. If you want to make the case yourself or just want to tinker with it here is a link to the OpenSCAD file: https://drive.google.com/open?id=1qJ7picRoSDI_HNSntF7nptrMazSRV3FF


Thursday, February 15, 2018

OpenSCAD: A Curved 3d Printed Lithophane

Important

This blog post has been reposted and updated on my current blog: https://homehack.nl/a-curved-3d-printed-lithophane-in-openscad/. You'll find the accompanying OpenSCAD file there too.

Introduction

How can I wrap a flat surface around a cylinder in OpenSCAD. This was a question I asked myself. OpenSCAD doesn’t provide a ready made method so we need to write our own. Luckily we don’t have to invent the wheel here, others have done that already. Justin Lin has written a very handy tutorial on his website Openhome.cc how to wrap a text around a cylinder.  In this project I took it a step further and wrapped a png image over part of a cylinder resulting in a curved image.

3D printed curved lithophane

Curved lithophane

It seemed like fun to combine this technique of wrapping with the 3D print of a lithophane. A lithophane is an engraved image on translucent material. Many 3D printers have already produced lithophanes sometimes with stunning results. For this experiment I’ll use white PLA because it  has excellent translucent properties.

Now first let me explain the basics on how to wrap a 2D image around a cylinder. First we create a circle out of triangles. These triangles are then extruded to segments to form a cylinder.  Next all segments of the cylinder are lined up in a row and the image is place on the far side but just within the limits of the segments. When we intersect the image with every individual segment and return the segments to their original position in the cylinder, a curved image emerges (see images below).

A circle created out of triangles
The extruded triangles form a cylinder
The segments are lined up in a row

Image placed on the far side of the triangles
The triangles returned to their original positions
The image intersected with the triangles and returned to their original position.

If you want to know more please watch my video. In this video the OpenSCAD script is explained and demonstrated. Also is shown how to import the stl file in Cura and what settings are used.

Wednesday, November 1, 2017

Raspberry Pi Squeezebox server with 3d printed enclosure

The need for a enclosure

Back in August I created a Squeezebox server using a Raspberry Pi 2 and a USB harddrive I had both lying around. I quickly had the server up and running and I'm using it ever since but I didn't have a enclosure. A 3D printed enclosure would enable me to give the server a more permanent place and at the same time I'm getting rid of these components and cables lying around on my desk.

The Squeezebox server sitting nicely into the 3d printed enclosure that I designed for it.

Solvespace for the enclosure

As a 3D CAD tool to design the enclosure I choose Solvespace. Solvespace is free and open source available for Windows, OSX and Linux. I use Solvespace a lot and it has it's limitations but I felt it was fully capable for this job and indeed it didn't disappoint. Before starting I made a couple of simple drawings with pen and paper, I measured the size of the harddisk and the Raspberry Pi. I also used a template for the Raspberry Pi mounting holes that I found online.

With all this information I started drawing with Solvespace. The power of Solvespace (and other 3D CAD programs) is that's it's very easy to make changes to the 3D design. While working on the design I noticed that USB harddisk can become hot so I figured it needed to be cooled. In the drawing I elevated the harddisk a bit by adding four supports one on each corner of the disk and made four ventilation slots in the bottom of the enclosure thus allowed air to flow freely around the harddisk. The Solvespace files of this enclosure are here. Make sure to adjust the size to the USB HDD you're using.

The 3D design I came up. The printed parts, bottom and lid, are grey, the green part is the Raspberry Pi and the red part is the USB harddrive.

3d printing and assembly

I printed all the parts on my Hephestos 2 printer using black PLA filament and the result looks pretty good. Assembly of the parts is simple. First I used 2.5mm bolts and nuts to mount the Raspberry Pi upside down to the lid of the enclosure. Next I insert the USB HDD into the bottom placing it on the elevated supports.  The enclosure is fastened with four bolts 5x60mm and 5mm nuts. The nuts fall nicely into the hexagonal cavity of the feet. Finally the USB cable of the HDD is connected with the Raspberry PI and the ethernet cable is connected from my router to the Pi. The server has run for several weeks in the 3d printed enclosure without any problem. For those that want more information I made a YouTube video about this project.

Tuesday, June 20, 2017

Line and Polyline modules in OpenSCAD

Polygon in OpenSCAD

The polygon function of OpenSCAD is very cool but for some applications it just doesn’t cut it. For instance when polygon is used to draw a Starpolygon, a self intersecting polygon, the space between the polygon lines is filled, an undesired effect that cannot be negated. In case of the Starpolygon we just want to see the lines.

Line and Polyline

Luckily we can create our own polygon module in OpenSCAD that meets our needs. However before we can create a polygon we need to be able to create a single line. Also a single line can be created in OpenSCAD, actually in several ways. In the YouTube video below I'll show one such approach.

A Vase created with line, polyline and rotate_extrude in OpenSCAD.

Furthermore I’ll show how to create a line module and a polygon module that fit our needs but it doesn’t stop there. With the line and polyline a complete 2D-library in OpenSCAD can be created. Also, in combination with linear_extrude and rotate_extrude 3D objects can be created that are impossible to create with CSG alone.



In a next blogpost I’ll show you how to create a Bezier Spline with line and polyline. This Bezier Spline can then be used to create a smooth curve needed in a 3d printable vase for example.

I want to mention Justin Lin here. He has a great website www.openhome.cc where he, not only shares his OpenSCAD work, but also explains it in great detail. I think it’s a very useful resource for OpenSCAD.

The file of this video can be downloaded with the following link: https://drive.google.com/open?id=0Bwg0RBbuN0fMVkJISXdDQV9sekE

OpenSCAD is open source (GPLv2 license) and is well maintained by Marius Kintel et al. Besides the stable releases for Windows, OSX and Linux, development snapshots are available. I recommend using these development snapshots since they have all the latest features. 

Friday, June 2, 2017

Cubic Bezier Spline tool in Solvespace

Cubic Bezier Spline tool 

The Cubic Bezier Spline tool in Solvespace can be used to create shapes that are hard or impossible to accomplish with other tools such as straight lines. A Cubic Bezier Spline is a line segment that can be controlled with four points. By changing the position of these points the curve can be manipulated or smoothened.

By clicking with the left mouse button in the graphics window the new control points can be added to the Cubic Bezier Spline tool to a maximum of 12. This is essentially a Composite Bezier Curve or polybezier. The problem with these curves is that it is hard to keep the curve smooth.

Polybezier with eight control points fully constrained approximating a circle


a classic example of shapes that benefit from Cubic Bezier Splines are Vases. Vases also appear to be popular with 3d printers. In the video below I'll demonstrate how to create a Vase in Solvespace using the Cubic Bezier Spline tool.

At the end of the Vase video I’ll demonstrate two often overlooked functions in Solvespace, the Length Ratio constraint and the Length Difference constraint I’ll also show how to apply the Length Ratio constraint to two circles.


The Solvespace Vase file from this tutorial can be downloaded here.

For this tutorial I used Solvespace 2.3 on OSX.

Solvespace is open source (GPLv3 license) and is available for Window, OSX and Linux. It is developed by Jonathan Westhues and maintained by Whitequark and others. It can be downloaded here: http://solvespace.com/download.pl

Tuesday, May 30, 2017

Spiral Phyllotaxis patterns in OpenSCAD

Spiral Phyllotaxis

In just uploaded a YouTube video about Spiral Phyllotaxis patterns in OpenSCAD. This time it’s a script that I made to demonstrate Spiral Phyllotaxis. Phyllotaxis is a term used for patterns that emerge during the growth of plants. Spiral Phyllotaxis is observed in the heads of sunflowers, in pine-cones and pineapples, and in a variety of other plants.

The script that I wrote uses a mathematical description of Spiral Phyllotaxis called Vogel’s formula. Vogel’s formula actually exists of two equations, one for an angle theta, and one for a radius, describing the a pattern of seeds in a sunflower head. I’ll put a link in the description if you want to know more about Vogel’s formula. These simple equations can generate beautiful patterns that have some interesting mathematical properties.

The number of spirals derived from Vogel’s formula has a close relationship with the Fibonacci sequence. Exactly 55 spirals go counterclockwise, 34 smaller spirals go clockwise and 21 even smaller spirals go counterclockwise and so on. These numbers of spirals are all integers in the Fibonacci sequence.

The Golden Angle or Fibonacci Angle of 137.5 degrees is key in these Spiral Patterns. This angle results in the best distribution of the seeds. A slightly smaller or larger angle leads to a less optimized distribution.

Not only can the Spiral Pattern be examined in OpenSCAD. A big bonus of the program is that the user can create an stl file that can be printed. The physical model can then be studies further.

Tuesday, May 16, 2017

A Solvespace tutorial, the Fidget Spinner

Another Solvespace tutorial. 

In this tutorial I'm going to create a Fidget Spinner. For those who don’t know, a Fidget Spinner is a stress-relieving toy. A basic Fidget Spinner consists of a bearing in the center of a design made from any of a variety of materials. I got this idea from Paul Randall’s YouTube channel. Paul has a great channel with an increasing number of excellent OpenSCAD and FreeCAD tutorials. Last week Paul uploaded two video tutorials where he creates a Fidget Spinner, one in OpenSCAD and one in FreeCAD. I thought it was a good idea to add a Solvespace tutorial to this and leave it for the user to judge which of these open source 3D CAD programs is best for these kind of models.

The Fidget Spinner that we create in this tutorial can easily be 3D printed. However it may require some adjustments of the dimensions before it can be succesfully assembled into a working Fidget. When this is finished insert a bearing and three nuts and the Fidget is ready for use.

Sunday, May 7, 2017

Video on 2D Supershapes created in OpenSCAD

2D Supershapes

I just uploaded a video on 2D Supershapes created in OpenSCAD, the open source 3D CAD program. 2D Supershapes are based on an equation, the Superformula, proposed by John Gielis around 2000. Gielis suggested that the formula can be used to describe many complex shapes and curves that are found in nature. The possibilities with the Superformula seem endless. OpenSCAD not only let you recreate these Supershapes but also enables the you to 3D print the shapes.

Wednesday, April 12, 2017

TIE fighter in OpenSCAD

Introduction

OpenSCAD is an excellent 3D CAD tool to create space craft because of their symmetrical, non-organic shape. This video of a space ship is a good example. However I couldn't find much Star Wars models made in OpenSCAD. So I decided to do it myself and start with a simple TIE fighter.

TIE fighter made in OpenSCAD.

 

Design

When I create a model like this I start with simple primitives and get the position right. In this case a sphere that represents the command pod, two cones that act as pylons and two hexagons as solar arrays. Once I have a basic TIE fighter I start shaping the different parts. Since all these parts are modules this doesn't interfere with the positioning.

Most basic shape of a TIE-fighter consisting of a sphere, two cones and two hexagons. Hexagons still need a 30 degrees rotation around the x-axis.

I use a couple of global constants that mainly determine the positioning of the different parts of the TIE fighter. The're seperate modules for the command pod, solar array and the wing pylon. Also a seperate module exists for the solar panels that are part of the solar array.

Most of the code is pretty standard OpenSCAD maybe with the exception of the solar array. The solar panel is created with a polygon which is a trapezoid. The trapezoid needs to fit between the inner en outer hexagon therefore the points of the trapezoid are depending on these hexagons of the solar array. The angle of the trapezoid is 120 degrees enabling me to calculate the all points of the trapezoid solar panel with basic trigonometry. The variable delta in the solar_panel module enables us to create and edge on the solar_array.

//Modules
module solar_array (outer_radius, inner_radius) {
    difference() {
        union() {
            cylinder(r=outer_radius,h=2,$fn=6);
            cylinder(r=inner_radius,h=4,$fn=6);
        }
        for (i=[1:6]) {
            rotate([0,0,i*360/6]) translate([0,inner_radius,0]) translate([0,0,1]) solar_panel(outer_radius,inner_radius);
            rotate([0,0,i*360/6]) translate([0,inner_radius,0]) translate([0,0,-0.3]) solar_panel(outer_radius,inner_radius);
        }
    }
}

module solar_panel(outer_radius, inner_radius) {
    //delta determines the size of the edge of the solar array.
    delta = 3;
    //x and y determines outer side of the solar panel trapezoid
    x = inner_radius/2 + sin(30) * (outer_radius-inner_radius-delta);
    y = cos(30) * (outer_radius-inner_radius-delta);
    echo(x,y);
    list = [[-inner_radius/2,0],[inner_radius/2,0],[x,y],[-x,y]];
    linear_extrude(1)
    polygon(list);
}

The TIE fighter model is largely parametric meaning that the most of the design of the model can easily can be changed by changing the parameters (constants). This model of the TIE fighter can is still rather basic but it can be expanded by modifiying the different modules.

3D printing

Until now I didn't feel the need for 3D printing the model (my extruder is in repair anyway) but with a few modifications printing shouldn't be a problem. I would print the command pod first and attach the solar array with wing pylon later.

The OpenSCAD file of the TIE fighter can be found here.

OpenSCAD is open source (GPLv2 license) and is well maintained by Marius Kintel et al. Besides the stable releases for Windows, OSX and Linux, development snapshots are available. I recommend using these development snapshots since they have all the latest features.



Monday, January 9, 2017

Peddle wheel boat (3D printed)

Important

This blog post has been reposted and updated on my current blog: https://homehack.nl/peddle-wheel-boat-3d-printed/. The files are also available on Printables here: https://www.printables.com/model/286241-peddle-wheel-boat

Introduction

At the moment I'm making 3D design and 3D printing lessons for schools. A good idea that I'm exploring is the Paddle Wheel Boat. I found an example on Thingiverse, a rubber band powered boat with two peddle wheels, but it has two problems. First of all the author only provides .stl files and second the design is a bit flawed. I therefore decided to design the boat from the ground up with OpenSCAD. With OpenSCAD I'm not only able to edit my models quickly, I'm also able to share the OpenSCAD script allowing other to use and change it.

Assembled Paddle Wheel Boat.

Paddle Wheel Boat

The Paddle Wheel Boat that I created consists of four parts: the boat, the shaft and two peddles. The main change of the boat that I designed is the position of the shaft. It's been shifted to the middle of the boat providing more balance. I also enforced the attachment point of the rubber band to the boat making it impossible to break it.

The redesigned Paddle Wheel Boat with shifted positon of the shaft and enforced attachment point for the rubber band.

I also increased the size of the paddles enabling the boat to move faster. The shape of the paddles are rounded instead of square improving the dynamics of the paddles through the water. A problem with the old design is that the rubber band has to be fixed to the shaft with some tape. Not a very elegant solution. I added a square hole to the design of the shaft. The rubber band can be inserted through the hole and fixed to the shaft. No tape needed.

Simple square hole in the shaft. The rubber band fits right through the hole making it easy to fix it to the shaft.
Changes to the models are easily made. The OpenSCAD script is simple and the result of a change can be reviewed immediatly by pressing F5. E.g to move the shaft to the back of the boat can be achieved by just one simple change in the script.

Peddle wheel loaded in Cura 2.3.1.

Just four parts, the boat, shaft and two peddles, are needed to make the boat. If you don't want to make changes to the design just download the provided .stl files and open them in your favorite slicer. After printing the Peddle wheel boat can be assembled and tested. Have fun.

All printed parts plus the rubber band.


Wednesday, November 9, 2016

The BQ Hephestos2 (3D printer), nine months later

Introduction

It's been nine months since I received and assembled my BQ Hephestos 2 printer and I think it's time to share some of the experiences that I had with it. For those who don't know the Hephesthos 2 it's a 3D-printer that is based on the Prusa i3 design with a thick steel frame and almost all metal parts. It's not cheap but it's a well designed, high quality 3D-printer with a large printbed. It does have it's shortcomings but more of that later.

The Hephestos 2 printer just finished a job. Laying around the printer are Pritt adhesive, a brass brush, cleaning fluid.


Printing and printing problems

Over these nine months I've printed a large variety of objects for different projects mostly without problem. I used both PLA and Filaflex and both materials printed fine. The Hephestos 2 doesn't come with a heated printbed, one of it's shortcomings, and I still struggle with the occasional lack of adhesion to the printbed. I ended up using both BuildTak and Pritt and this solves the adhesion problem most of the time however as I found out this is not a guarantee for good results. First of all the printbed must be clean from fingerprints and other contamination. I used to clean the bed rubbing it with warm water on a cloth which is a bad idea because water doesn't remove oily residue very well. Now I clean the printbed with isopropylalcohol (IPA) making sure that all residue has been removed.

To avoid problems with printing the distance from the nozzle to the printbed is also important. When this distance is too large the first layer becomes messy and adhesion problems occur. I use a piece of paper and place it between the printbed and the nozzle. I consider the distance correct when a piece paper can barely be moved underneath the nozzle.

The z-axis of the Hephestos 2 is not the best possible design. It uses M6 threaded rods (EDIT: actually it's M5) which can produce an effect called z-wobble. This effect is noticeable in the z direction in my prints from time to time. It would have been better if a z-rod with a higher pitch had been used (such as the Original Prusa i3 Mk2).

A variety of objects printed with the Hephestos 2.
Messy first layer and lack of adhesion when the distance between the nozzle and the printbed is too large.
Warping. Adhesion problems can have many causes. In this case I the printbed was not leveled properly.

Using Filaflex

As mentioned above Filaflex prints fine on the Hephestos 2 but there was a problem with the spool holder. The inner diameter of the Filaflex spool is smaller than the PLA spool therefore it doesn't fit on the spool holder that came with the printer. When I contacted the supplier about this problem he immediatly designed a spool holder for filaflex which I was able to print and use. An excellent service of the supplier.

Printed spool holder for Filaflex.

Maintenance

The Hephestos 2 as any other 3D-printer does require maintenance. I use oil to grease all the axis from time to time. On top of this I use grease for the threaded rods of the z-axis. I also check the tension on the belts from time to time. The nozzle is cleaned regularly with a brass brush after increasing the temperature to 200 degrees Celcius. The Hephestos came with two long needles that can be used to clean the hotend just by inserting the needle through the nozzle en pushing it all the way through the extruder. Lastly the PTFE tube in the hotend can be replaced with a spare one that came with the printer. Just make sure that the somewhat larger opening of the tube is pointing upwards after it is inserted in the hotend (see also hotends problems below). A maintenance video of the BQ Witbox 2, the enclosed ready to use brother of the Hephestos 2, is available. Unfortunately it is only in Spanish.

It is advisable to check the Allen screws from time to time. Due to the vibration some screws may come loose. Recently one of the threaded rods of the z-axis came loose because of this. Besides a misprint I had to deassemble and realign the z-axis and level the printbed again.

 

Hotend problems

One months ago after changing a filament spool the new filament the extruder made a clicking sound and no filament was extruded from the hotend. The supplier adviced to change the PTFE tube that's inserted into the hotend. Unfortunately the problem remained but I did notice that a piece of the old PTFE tube was missing. I therefore concluded that pieces of PTFE were stuck in the hotend. I tried to clean the hotend without succes so finally I decided to exchange the hotend with a new one and presto problem solved. The problem was probably caused while changing filament. While removing the filament I pulled it from the extruder which is a bad idea because the PTFE tube can be lifted and damaged in the extruder.

NOTE: Exchanging the PTFE tube is relatively straight forward but make sure that the tube is inserted in such a way that the hotend is positioned correctly in the coldend of the extruder. I damaged my BuildTak layer because the hotend was positioned too low. See the bottom two images for this.

Hotend of the BQ Hephestos 2 with the PTFE tube sticking out.

Damaged PTFE tube with a piece missing. This pieces end up in my hotend preventing any filament to be extruded.

The hotend not fully inserted into the coldend resulting in a damaged printbed.
The new hotend fully inserted into the coldend.

Conclusion

After nine months I can say that I'm still satisfied with the BQ Hephestos 2 printer. I've printed numerous models without problems. It doesn't come with a heated printbed which I believe is a shortcoming. The problems that I had with the printer were mostly solved thanks to the support from the (Dutch) supplier and the Google+ 3D printing community. As a beginner in 3D printing I can't stress how important good support is. At some point problems will arise and without support chances are that you can't solve them and possibly ending a beautiful hobby.

3D printing is a hobby that by nature is very DIY requiring lots of time and the readiness to experiment. This begins with the design of a 3D model in 3D CAD, slicer software to create gcode and working with the 3D printer itself. If you're willing to do that the BQ Hephestos 2 is a good choice although it's price can be prohibitive to some.

Thursday, September 29, 2016

Switching from FreeCAD to Solvespace?

Introduction

For my current project, a laser engraver, I initially choose FreeCAD as my 3D CAD program. I had some excellent experiences with it so it was the obvious choice for me. However contrary to previous work this project required a lot of CAD assembly. This is where I became frustrated with FreeCAD. Assembly in the current version (0.16) just isn't well implemented unnecessarily extending my time spent with FreeCAD. The next version of FreeCAD (0.17) will have a separate assembly workbench but I wasn't willing to wait for it's final release.

When reading the Hackaday website I came across Solvespace. Given the problem that I have with FreeCAD I was immediately interested. Solvespace is a parametric modeler just like FreeCAD. The interface looks archaic which put me off a little at first but I found it surprisingly easy to work with. The last month I worked intensely with Solvespace v2.1 and I want to share the experience that I had with the program.

The Solvespace GUI looks archaic but is easy to work with.

Friday, July 8, 2016

Make a Photography Light Box of cheap material (part 1: design and 3d print).

Introduction

My wife has a lot of stuff she wants to sell online and asked me to create a sturdy but cheap Photography Light Box. The dimensions of the different objects vary so I wanted to be flexible with the dimensions of the light box. We came up with a simple idea to create a three way connector that connects curtain rods. The frame will be covered with white bed sheet kept together with velcro. At the local hardware store I found plastified steel curtain rods. These were the cheapest I could find but are still very strong.

Photography Lightbox Frame modelled in OpenSCAD. The connectors are 3d printed while the rods are steel curtain rods

Creating the three way connector

I used OpenSCAD to create the three way connector and a 3d model of the light box frame. OpenSCAD is an excellent (and free) program for these symmetrical shapes. Creating the connector in OpenSCAD is therefore easy as can be seen in the timelapse video below. Creating a good 3d printed model is more difficult. The connector that I originally designed had overhang and several changes had to be made to compensate for this. Also I needed a connector that fitted firmly on the rod but could also be diassembled with ease. I therefore experimented with the connector by adding or removing part of the cylindrical shape of the connector.

Timelapse video of the first attempt to create a three way connector. Although it looked ok I had to make several changes afterwards to optimize for 3d printing and to get a better connection with the rod.

First I added a very small cylinder on either side of each larger cylinder. If the side cylinders are small enough the connector still fits into the rod but some force is needed to pull it out again. Another variant is a somewhat larger cylinder with on each side a smaller cylinder cut out (see image). Both solutions work fine I'll settle for the cut out cylinder since it looks nicer :D.

Two cadidate connectors that hopefully give a better fit into the rod. The connector in the front has is somewhat larger radius of the cylinder but two smaller cylinders are cut out. The connector in the back has a very small cylinder on either side of the larger cylinder.
Five iteration of the three way connector with the two latest in the front.

Next I'll print all connectors, cut the curtain rods to the desired size and assemble the frame. I'll leave it to my wife to finish the Photography Light Box with velcro and diffuser fabric. Want to 3D-print this yourself? All files for this project can be downloaded here.

  

Monday, May 30, 2016

Using Filaflex to improve my cooler

Introduction


A week ago I finished my audio cooler. Although I was happy with the result improvements could be made (as is always the case). Most important I didn't particularly like the console on the side of the coolers lid. This was a 3d printed part of PLA that I glued to cooler with a superglue. This was far from ideal because of the space left between the printed console and the cooler . Another improvement could be made by the way that the speaker was fitted to the lid of the cooler. The speaker was directly attached to cooler with four screws again leaving some space between the two. I already had some FilaFlex filament but hadn't used it yet. Because of the elastic and flexible properties of Filaflex I figured that I could both fix the issues with the console and the speaker.

Left the cooler with improved speaker and console and right "old cooler" with printed part of PLA filament.

Making an improved console


I made a design in FreeCAD consisting of two parts, a bottom layer of FilaFlex that embeds the actual console. Furthermore I added two holes for machine screws to both ends of the console. This ensures a better way of attaching the console to the cooler than the superglue that I used previously. Printing the Filaflex part with my Hephestos 2 worked flawless on 235°C. I did use a lower speed than with PLA though (20mm/s instead of 50). The result is much better (see image below), with the console "sitting" on the Filaflex and the better fastening. I also find the result more pleasing to the eye (except for the color but I was out of blue filament).

New console design with the bottom layer made out of Filaflex and the top layer made out of PLA.
The new console fastened to the cooler with two machine screws. The two parts are hard to distinguish because the have the same grey color.


Making a Filaflex ring for the speaker


I designed a ring for the speaker again with FreeCAD. I gave the ring some profile so it encompasses the speaker and added three holes for the machine screws to fit through.

Filaflex ring for the speaker. The material is just perfect for this purpose because of it's flexible, even elastic nature.

The speaker sits perfectly on the ring. Haven't tried it but I bet that this construction is water tight.

Conclusion


I'm glad I had the Filaflex to improve the cooler. Besides the flexibility and elasticity the Filaflex is also very strong. I can apply a considerable force to the ring without tearing or other wise damaging it, so that's great. Also the combination of the PLA as top layer with Filaflex beneath it works perfectly in case of the console where the PLA part provides the needed rigidness and the Filaflex part seal the opening with the cooler.

Sunday, May 1, 2016

Audio system for cooler finished

Introduction

A couple of weeks ago I started to make a tiny audio system for our cooler. In my previous blogpost I described all the audio components that I chose for this project. I wanted the components to be small since I didn't want to waste too much space in the cooler. With the audio components in hand I could design other parts for the audio system. I needed an enclosure for most of the audio components and a simple console to operate the audio. The parts were 3d printed with my Hephestos 2.

The complete audio system in the lid of the cooler. Most components are placed in the 3d printed enclosure.

The enclosure for the amplifier

While designing I borrowed heavily from Adafruits Trinket Neopixel led longboard, a project that upgrades a longboard with Neopixel LEDs. The battery, amplifier and Powerboost 500c had to fit into a small enclosure for protection. The enclosure needed several rectangular cavities for a switch, micro usb and wires.

Enclosure (bottom and lid) for the battery, amplifier and Powerboost 500c designed in FreeCAD.
The Powerboost 500c and the amplifier are screwed directly to the lid of the 3d printed enclosure while the Li polymer battery is pressed to the bottom by a PLA strip.

Kemo 3.5W Amplifier and Adafruit Powerboost 500c are screwed directly to the lid of the 3d printed enclosure. The battery is placed firmly under a PLA strip.
In the front the enclosure with the Powerboost and amplifier screwed to the lid. On top of the enclosure is the lock.

Attaching the enclosure to the cooler lid

I needed a simple design to attach the enclosure firmly to the inside of the cooler lid but I also wanted to be able to slide the enclosure out and back in again if necessary. Again I took an idea from the Adafruit Trinket Neopixel LED longboard . I designed a slide lock that consists of two pieces a mount and a lock. The lock slides into the mount until the stop on the lock reaches the mount.

The lock fits into the mount but can be slided in and out. Two two holes in the lock are used to screw the lock to the enclosure.

The console

I also needed some kind of console to operate the audio system. I decided to keep it simple with a 3.5mm audio plug and volume control. The on/off switch is in the enclosure (for now).

Back side of the console with the 3.5mm audio plug for audio-in and 10K potentiometer for volume control.

Preparing the cooler

Preparing the cooler is pretty straightforward. First I drilled a circular hole in the top of the lid just wide enough (68mm) for the speaker. This hole is centered on the top. Next I cut with my Dremel a rectangular hole in the side of the lid just wide enough for the console to fit. With these two holes the cooler lid was ready and all components could be attached. The speaker was screwed onto the lid while the console and the mount were glued to the lid. Glueing proved to be difficult. I tried  two-component expoxy and superglue (cyanoacrylate base) for glueing the enclosure to the cooler lid but the enclosure came loose in both events. Next I tried double-sided tape and this works however time will tell if it is a lasting solution. With most of the work done it is time to test my audio enabled cooler. Which some nice weather coming up I'll test the cooler outside and report back the results.

Circular hole in the center of the lid for the speaker to fit in.
The finished products. In the upcoming month I'll see how it performs.

Wednesday, March 16, 2016

More designing and 3D printing

Introduction

The last couple of weeks I've been busy mastering 3D modeling programs and bringing my creations to life with my Hephestos 3D printer. In this entry I'll share some of my creations and how they were made. For 3D modeling I started with OpenSCAD in the beginning of this year and later started using FreeCAD. The reason for using FreeCAD is that with more complex design in OpenSCAD it is easy for me to get lost in a large script. Yes, the learning curve of FreeCAD is steep but eventually it's easier for me to create more complex models in this program than in OpenSCAD. For simpler models I still like OpenSCAD better.

MineCraft Creeper keychain made with OpenSCAD.

My youngest son is a fan of Minecraft and I suggested to him to make a creeper keychain. With OpenSCAD I could use simple primitives for head, body and legs. By parameterization of the script I can easily change the dimensions of the creeper.

body_height = 40;
body_width1 = 20;
body_width2 = body_width1;

feet_height = 20;
feet_width1 = 20;
feet_width2 = 10;

head_height = 20;
head_width1 = 20;
head_width2 = 26;

module body(){
    cube([body_width1,body_width2,body_height], center = true);
}


module feet(){
    cube([feet_width1,feet_width2,feet_height], center = true);
}

module head(){
    cube([head_width1,head_width2,head_height], center = true);
}

Click here if you want the whole OpenSCAD source file.

Minecraft creeper on the print bed of the Hephestos 2.

Foot for stepladder created with FreeCAD.

My father's stepladder had a broken foot and he asked me if I could made a new one for him. I used FreeCAD to design it using the part design workbench. The part design workbench is probably the main tool in FreeCAD while creating 3D models. Here is the FreeCAD file.

3D-model of the foot made with FreeCAD.

Dice made with FreeCAD and OpenSCAD.

A FreeCAD tutorial series on YouTube, which I highly recommend, contains the modeling of a dice. I did this tutorial and then created the same dice in OpenSCAD just to get some idea of the difference between the two programs. The shape of the dice is easily made by the intersection of a cube and a sphere.

 difference(){
    intersection(){
        cube([dice_size,dice_size,dice_size], center = true);
        sphere(r=dice_sphere);
    }

Next every face of the dice is covered with the dots. Click here if you want the OpenSCAD source file of the dice.

Large dice on the print bed of the Hephestos 2.

Surface generator with OpenSCAD.

While making the creeper I had the idea to add a 'blocky' Minecraft style surface instead of a smooth surface. This idea resulted in some preliminary script that added a 'blocky' surface to a simple cube. The core of the script is this:

cube([1.001,1.001,rands(rands_min,rands_max,1)[0]]);

A cube is drawn where the height (z-axis) is determined by a random number between rands_min and rands_max. This is an example where OpenSCAD shines. With a couple of lines a seemingly complex model can be created (especially when the user is familiar with mathematics and programming). Here is the OpenSCAD source file of the 'blocky' cube.

3D model made in OpenSCAD of a cube with a 'blocky' surface.


Monday, February 29, 2016

Case for a FM-radio (Velleman MK194)

I have a MK194 radio kit from Velleman and turned it into a radio some  time ago. The radio looks pretty cool with all the electronic components visible but the wooden case was awful. I therefore decided to build a new case for it. Of course I want to use my Hephestos 2 printer from BQ to make this case.

First I designed a case in FreeCAD. I use FreeCAD for a couple of weeks now, together with OpenScad, but this is the first design with multiple parts that I create with it. After several iterations I finally decided to have a design consisting of three parts. A box, a support plate for the radio PCB and a lid. The radio fits into the support and the lid which are then screwed onto the box.



Design for the radio case made with FreeCAD consisting of three parts (the red part just represents the MK194 PCB). I made a nice radius on the lid and the MK194 fits nicely between the support and the lid.
I think the radio looks really nice now much better than the wooden case at least. I'm getting the hang of FreeCAD. The learning curve is steeper than OpenScad's but it is worth it. Creating a more complex design is just faster with FreeCAD than with OpenScad (at least for me).
Here are the .stl files:
My FM-radio on my electronics workbench.