This week, I learned how to mill a circuit board from scratch and solder components on it.
This week, I learned how to mill a circuit board from scratch and solder components on it.
For the group assignment, I had to do it on my own as our school, Wheaton College, was on Spring break. So I worked on studying the design rules on the Roland SRM20, the circuit board milling machine we have in the lab.
In week 6, I designed a board, but I was not satisfied with the design as I wanted the board to be bigger and wanted surface-mounted components instaed of through-hole ones. I also added pull-down resistors for 4 I/O pins to pull the input voltage down to the ground to prevent an undefined state at the input when no device is connected. In addition, I changed the the trace width from 0.25 mm to 0.5 mm as I wanted to avoid any bad connections. I used KiCad, and I followed a similar process as in week 6. I ended up with this PCB.
To mill the board, I exported it as an SVG file and opened it in Adobe Illustrator. First, I created a 6in*4in canvas on Adobe as that is the size of the copper sheets we have in the lab. Because the milling machine mills the traces, holes, and outline at seperate stages, I created the following five layers in Illustrator:
Then, I exported the edge cuts and traces as two seperate png files making sure the right background is selected for each.
To generate the rml files that the machine needs to mill, I used MIT mods website. I opened a server program for Roland SRM20 png. I started with the traces by selecting the traces png file and then inverting the black and white as the machine cuts around what is white. In the set PCB defaults window, I chose mill traces(1/64), and in the Roland SRM20 milling machine window, I set the speed to 10 and x,y, and z to 0 to set the origin at the bottom-left of the file. And I created a new server module and selected file/save to save the file to my computer. I repeaed the same steps for the edge cuts except that I did not have to invert it and that I selected mill outline(1/32) instaed of mill traces(1/64) as this time we are going all the way through the baord.
On Roland SRM20, I started by changing the end mill to the 1/64th end mill as traces require high precision. Then, I used double-sided tape to stick the copper sheet on the machine bed so that it does not move during the cutting process. Using the SRM20 software control panel, I moved the end mill to the bottom left and set the origin there. Next, I clicked on cut and selected my traces rml file and clicked on output. It is important to start the traces before the edge cuts to makes sure the board does not move during the traces milling. Once done, I changed the end mill to the 1/32nd end mill as edge cuts require less precision and repeated the same steps for the edge cuts file. Then, I vacuumed the copper dust and moved to the slodering stage.
I set the temperature of the soldering head to 700 Fehrenheit and used leaded irond solder to solder the the ESP board, resistors, LED, and pin sockets on my board. Then, I sent a code to the ESP to blink the built-in LED to make sure my connections work.