Close
Free HTML5 Bootstrap Template

About Me

SARATH.SM

I am an Electronics engineer, who love to explore, experiment and learn new technologies and processes in my pursuit to give life to the Ideas I dream about..

Prev Next

ELECTRONICS PRODUCTION


This week is dedicated for learing how to manufacture PCBs in the FABLAB. As part of the learing exercise we start with making FAB ISP Module. I will also try making few more boards as per the avilability of time.

Since I have already made FABISP module during MY PRE FAB , I am not repeating the same here. The learning experiance I had is documented as such for reference. The process involved are, PCB Milling using MODELLA and the FIRMWARE PROGRAMMING.

Tutorials and Links

Before we look deeper into this, here is a link to a very useful Video tutorial which explains how to use the MODELLA Milling Machile by Adam Haris.

And here is the general tips for electronics production by Francisco hosted in beachlab.

MODELLA - PCB MILLING


The modela is a awesome little milling machine that can mill out most of the PCBs you will need for rapid prototyping. To be able to mill on it, you need to have FR1 which is a paper based copper plate. You cannot mill the fiberglass copper plates on the modela as it will break your bit and the dust it will create is irritant. The FR1 is more tan than the fiberglass, which is more green, and the FR1 is available in 2x3 inch and 4x6 inch pieces.

 

 

The first step is to Fix the sacrificial layer PCB on to the modela base plate using double sided tape. We must ensure that it is alligned perfectly to the orgin.

 

The second step is to Fix the PCB to be milled on to the modela base plate over the sacrificial layer using double sided tape.

 

Proper care should also be taken to make sure that there are no uneven surfaces as it will otherrwise result in improper milling.

 

Next step is to fix the proper bit for milling. The 1/64" bit is used for milling tracks and 1/32" bit for milling out the unused areas and cutting board edges.

 

The bits are fixed with the help of allen key tool. This is done in the view mode of Modela. At first the bit is kept well above the desired height to position the Z manually. Once the orgin is chosen and the head is moved to the desired location,( lower the bit using UP/DOWN keys / adjusting the bit height fixed with the help of allen key ) of modela to touch the PCB. Now tighten the bit in the chosen location, and you are ready to start milling.

 

Picture shows the bit fixed to the desired (x,y) ready for milling. Care should be taken to select the orgin with enough clearance from the edges.

 

Moving on to the software side, to control the modela, open terminal and type 'fab' which will invoke the fab modules service menu as shown.

Here choose input format as " image " and output to process as " Roland MDX 20 mill (.rml) "

 

Unlike how it should open the interface to control modela, I received a serial Exception as shown below.

 

This happens beacuse the interface software is unable to get connected with the Modela machine.

To fix this problem, open another terminal and type as follows,

$ sudo chmod 666 /dev /ttyUSB0

 

This command will reestablish communication with modela and the user interface will be opened.

 

The software interface for modela provides options to choose the milling bit preferred ( use 1/64" for milling tracks ) , the option to input file to be milled ( The PNG format of the tracks ), path settings, depth and many other settings to fine tune the process.

Franscisco asked all of us to first mill and assemble the FabISP programmer PCB as it will be further used in the upcoming embedded sessions

 

We can visualize the board dimensions, path it will be using to move the head etc, once it is verified and found correct, choose make .rml and send it.

 

The ouput screen will show the estimated time for completion and the machine will start milling.

 

Once the milling of tracks are finished, inorder to cut the board edge, first change the bit to 1/32", then load the board edge PNG file and repeat the same process that we did while milling the tracks.

 

The following picture shows the milled PCB, proper care should be taken while taking out the cut PCB as there is always chance to break it while pulling out from the base.

 

Starting to populate the FabISP pcb starting with the ATTINY microcontroller first.

 

The completly finished FabISP PCB.

 

The file used for the process can be downloaded from here


FIRMWARE PROGRAMMING


FAB ISP -- STORY WITH FRANCISCO - Exploring the Mystery of Crystal Osc !!

 

Downloading the FabISP firmware to the ISP programmer I assembled.

 

Changes to be made while using the AVR programer.

 

Initially I received the following error as I did not had the proper compiler installed.

 

 

Debugging and trouble shooting the error..

 

Fixed the error by installig the proper versions of compiler.

 

Generating the Hex to be dumped to the Microcontroller.

 

All the twist started at this point when I tried to dump the firmware to the ISP module.

 

In noway the program was geting loaded into the ISP microcontroller and kept on giving the error as shown below.

 

We suspected the microcontroller to be faulty and tried to change that, but that did not solve the problem

 

Me and Francisco were never ready give up and wanted to see it work this day itself.

 

We kept on trying many options till late night. We tried to change the crystal and also tried to reflow all the solderings, but to our great disappointment nothng worked and we had to finally call it a day.

 

An intense googling did help Francisco to think in the direction of the least suscpected cable that we used for connecting the ISP module to be defective. He asked me to try changing that, and to all our great surprise the ISP got programmed flawlessly :-)

 

The chances are very less to suspect the cable as it was without any problem powering the module, well to our great relief we fixed the problem and my ISP module is ready finally :-)

 

My FabISP module sucessfully being programmed finally by the AVR programmer.

 

More about real world application of embedded programing can be found from here.