4. Electronics Production

During this week, we had the opportunity to design and test a microcontroller development board. Originally, we planned to base it on the quentorres design. However, we encountered a challenge when we discovered that one of the components, the SWD, was not readily available in Mexico and cost 5 US$ dollars. As a result, we had to create a modified version of the board that better suited our needs.

but for that I had to understand more about the subject...


What is a circuit?

Did you know that a circuit is basically an electronic network that has at least one closed path? It's made up of a bunch of different components like resistors, inductors, capacitors, sources, switches, and semiconductors.

Basic components:

  • LED.
  • Capacitador.
  • Regulator
  • Resistor
  • Diode

What is a PCB?

A printed circuit board (PCB) is made up of an electrically insulating base on which conducting metal tracks are etched to make electrical connections for electronic components positioned on the top and, in some cases, bottom.


PCB Fabrication

PCBs are made from drawn lines instead of using wires.

The manufacturing process involves two steps: first, the copper is engraved and the circuit is drawn with a milling machine, and second, the PCB is cut by drilling and contouring with the same machine.


What machine will we use?

ROLAND SRM-20

This machine can cut a broad range of materials, including chemical wood, acrylic, and ABS. It also supports a wide variety of accuracy settings, from prototype to product design. Furthermore, its tiny size and fully enclosed design allow you to cut with greater safety and confidence.


What tools will we use?

V-Cutter, allows for better engraving for its fine tip.

Flute end Mill, for drilling and plate cutting.


Parameters importants

When PCB milling, there are only a few aspects that we can control and test. These include:

  • Drill Hole Size: This parameter is important because it affects the ability to precisely put vias and mount components. The dimensions must be accurate to ensure that the components fit correctly without tension or misalignment. Incorrect hole diameters can cause poor electrical connections or even damage to components during installation
  • Substrate: The material used for the substrate influences the PCB's thermal, electrical, and mechanical qualities. Different materials have varying levels of conductivity, durability, and heat resistance, which impact the effectiveness of the PCB in certain applications. For example, FR4 is often used because of its low cost/performance ratio, although more specialized applications may demand materials like Rogers due to their higher high frequency performance.
  • Minimum Clearance: This value specifies the shortest possible distance between any two conducting elements (e.g., traces, pads) on the PCB. Ensuring proper clearance is critical to avoiding electrical shorts and ensuring dependable functioning. It is impacted by the voltage levels that the board is exposed to, with higher voltages necessitating larger clearances.
  • Minimum trace width: This specifies the smallest width for each conductive trace on the PCB. It is critical to verify that traces can handle the needed current without overheating or breaking. The minimum trace width is determined by the maximum current that the trace must carry, while taking into account the material's conductivity and the PCB's operating temperature.
  • Number of layers: : This value defines how many conductive layers the PCB contains. Multilayer. Multilayer boards are used to enhance component density and routing complexity while maintaining board size. The number of layers influences the PCB's electrical performance, manufacturing complexity, and cost. It is critical to weigh the requirement for additional layers against the economic implications and production capability.

What are mods?

Mods is a program that allows me to extract G-codes or machine codes from images, vectors or 3d models.

Advantages:

  • For all machines.
  • Open source.
  • Web server, so that on any computer you can use.


More information

This is a summary of the key aspects to consider in electronic production. For more information, please refer to the Fab Lab Puebla group page.



What did I do with all this information?

How does it work MODS?

First, how do we transfer the files to the machine?

  1. I searched the png images that they provided us on the FabLab Puebla website.
  2. I downloaded two png images.
    • The images have a size of 4.8.
    • They are black and white.
    • Note: Don’t modify the image because the image can scale. And if we change the scale, the components won’t fit.
  3. I opened the MODS web server.
  4. I right clicked on ‘Programs’
  5. Next in ‘Open program’
  6. I searched the program of the SRM-20 mill machine and selected the ‘mill 2D PCB’.
  7. All the blocks to be worked on are displayed to obtain the corresponding files.
  8. The first block that I modified is the 'read png’ block for selecting a png file.
  9. I saw that the image was uploaded to the server.
  10. I moved to the ‘mill raster 2D’ block. And I changed the ‘offset number’ to two.
    • This determines the number of times it will be passed to be cut. It was engraving, so this number is fine to have this result.
  11. Then, I went to the ‘Roland SRM-2D milling machine’ block, and I modified the origin of the machine. For this, I changed the numbers on the axes x, y, and z.
  12. After, I went to ‘set PCB defaults’ and pressed on ‘mill traces (1/64)’ to make the changes in the machine parameters.
  13. I moved to the ‘mill raster SD’ to see if the changes were realized. And then I pressed ‘calculate’.
    • From my image, what to do is trace the route that the machine will follow for the engraving.
  14. And I saw a preview. In addition, in my downloads, I found an archive ‘.png.rtl’; this is the file that I opened on the machine.
  15. Next, I did the same steps with the image of the cut. Starting by selecting the cut image of my files.
  16. I moved to the ‘set PCB defaults’ block and pressed ‘mill outline’.
  17. Then, I went to the ‘mill raster 2D’ block and changed the ‘offset number’ to one.
  18. And I pressed calculate to see the preview of the cut and downloaded the file for the machine.

Things I should have before cutting

  1. First, I cut in the laser a sacrificial piece to put the copper plate on top to avoid damaging the machine table when cutting.
  2. Then, I put paper insulating tape on the base of the copper plate to paste it on the sacrificial piece.
    • Note:Use paper insulating tape because if you use another one, you generate relief.
  3. When I put the tape in all the base and removed the glue protector, I pasted the cooper plate on the sacrificial piece.
  4. And I have the material to cut on the machine.

Now, how can I use the machine?

  1. I put my sacrificial layer with the cooper plate and my card in the base of the machine.
  2. To this I used screws to fix it. And I used a screwdriver to tighten the screws.
  3. I placed the tool, a 15 degree V-bit, to make the engraving.
    • To do this, I used a wrench to tighten the tool.
    • Note:Make sure that only the conical part of the tool protrudes.
  4. I connected the machine to my computer.
  5. I open the ‘VPanel for SRM-20’
    • Because the operation of this machine is performed on the screen of a computer using [VPanel].
    • P.S. As you can see in my wallpaper, I’m still in January hahaha… the Fab Academy gradually takes away your sense of time.
  6. So, I saw the control panel of the machine.
  7. Table of elementes:

    Number Name Description
    1 Coordinate system Selects the coordinate system for the coordinate values to display.
    2 Coordinates The current position of a cutting tool is displayed. he change of mm<=>inch can be performed.
    3 Speed The movement speed of a cutting tool is displayed./td>
    4 Spindle In [ON] and [OFF], rotation of a spindle is started and it stops.
    5 Fed buttos Clicking these buttons moves the spindle head or table. Holding down the buttons performs continuous movement.
    6 Cursor Step Specify how much the cutting tool should move every time you single-click the [X]/[Y]/[Z] button.
    7 Move
    • View: Moves the spindle head to the center and moves the table to the very front.
    • XY / Z: Moves the cutting tool to the XY origin point.
    • Stop: Stops the cutting tool at that point when it is moving.
    8 Set Origin Point Select the coordinate system for setting the origin point.
    9 X /Y / Z Sets the current XY and Z position to the base point.
    10 Adjust The feeding speed of a cutting tool is adjusted.
    11 Spindle Speed Adjusts the spindle speed.
    12 Ser up / Cut / Pause / Cancel
    • Ser up: Sets the cutting machine's operating conditions and the correction values for the axes
    • Cut: Configures cutting settings.
    • Pause: Pauses and resumes cutting.
    • Cancel: Cancels cutting.
  8. First, I moved the X/Y axis to the lower left of the material.
  9. And I pressed the ‘X/Y’ bottom to change the origin of this axis’s.
  10. Then, I moved the Z axis. To do this, I used a piece of paper to make sure I put the axis at the correct height.
    • For this special axis, I used a paper to define the distance between the tool and the material. I did this by placing the paper on the material and lowering the tool a little at a time until the point where friction is generated and the paper gets stuck.
    • Note: In this axis, before we did the paper check, we had to turn on the spindle and lower the z-axis, giving only one click to selecting ‘x10’ in the cursor step.
  11. I save the origin of the axis by pressing ‘Z’.
  12. Note:To move the axis fist, I used the ‘Continue’ cursor step, after the ‘x100’ (1 mm), then the ‘x10’ (0.1mm), and finally the ‘x1’ (0.01mm) until the paper generated friction and didn’t come off.

  13. When I defined the axis of origin, I closed the door of the machine.
  14. Then, I pressed the 'Cut' button at the bottom of the panel.
  15. I added the file to be engraved.
  16. I pressed ‘Outpt’ to send the file to be engraved.
  17. And the machine started to engrave.
  18. When the engraving was finished, the spindle went to the origin point.
  19. I opened the door of the machine.
  20. I used a hand vacuum cleaner to remove the dust produced by the engraving.
  21. I removed the tool that the machine had because it wasn’t the right one.
  22. So, I changed the previous tool for a 0.8 mm diameter two-flute end Mill this to do the cut.
    • For this, I used a wrench to tighten the tool.
    • Note:Make sure that the conic part protrudes.
  23. I maintained the ‘X/Y’ origin and only changed the ‘Z axis’ because the tool was different and it was necessary to reconfigure that axis due to the height of the tool.
  24. So, I changed the previous tool for a 0.8 mm diameter two-flute end Mill this to do the cut.
    • To change this axis, I used the method of the paper, which I described in step 9.
  25. I save the new origin of the axis by pressing ‘Z’.
  26. Then, I closed the door of the machine.
  27. I pressed the ‘Cut’ button to delete the previous file that I added.
  28. I added the new file of cut.
  29. And I pressed ‘Output’ for the machine to execute the cut.
  30. The machine started the cut.
  31. The machine finished the cut.
  32. I opened the door to withdraw the material.
  33. I used a hand vacuum cleaner to remove the dust produced by the cut.
  34. I removed the screws fixing the material with the help of a screwdriver.
  35. Finally, I had my card burned and cut.

Soldering

What is soldering?

Soldering is the technique of connecting metal pieces to create a mechanical or electrical bond. Soldering involves melting a low-melting-point metal alloy and applying it to metal pieces to glue them together.

  • When the solder hardens, it joins the pieces and makes a link.
  • Soldering is a common practice for assembling electrical components and wiring.

But... on a printed circuit board?

Soldering is a very typical method for connecting wires or attached components on a printed circuit board (PCB). Copper wires, component leads, and circuit board tracks are typically coated with a thin layer of tin to prevent oxidation and facilitate better bonding with other solderable components. Before joining bare copper wires, we often 'tin' them with molten solder. This creates a stronger link.


The soldering irons

...You have to be patient when soldering

Practice - Day 1

I had never soldered before… it was a challenge or something like that. So, I had to practice before I messed up my card.

But first, what are the steps for soldering?

  1. Prepare the PCB or other surface: Start with a clean surface. If your surface isn’t clean, clean it with an industrial cleaning wipe, acetone cleaner, or sand it with fine sandpaper to remove any dust or other debris.
  2. Apply Some Heat: Time to hold the tip against the lead, make sure not to bend or vibrate the component while you do so, and keep the iron at a steady temperature (around 350°F).
  3. Inspect the solder joint: If it looks good, move on to the next one.

Note: Before placing my component, I applied a little solder to the place where I would place it, then placed it with the help of tweezers and applied heat with the soldering iron to then apply the tin. I did this to make it easier to place the component to be soldered.

Start soldering!

I started soldering, and it was difficult to understand how to know that my surface was already heated for tin application. That said, I have had it happen to me that I would heat up my board, apply the thin, and see nothing happen.

Another point was that I couldn’t find a comfortable position for soldering… It took me a long time to find it.

  • For example, to pick up the soldering iron, I took the same position I took when picking up a pencil, but this wasn’t safe as I particularly tend to grip the pencil from the bottom and hide my big toe.
  • The good news is that I managed to take it well!

I think it was a good first approach.

Practice - Day 2

I practice a little more to put only tin on a card. After that, I started practicing soldering components on a test board.

Some people told me that soldering on the test board wasn’t the same as soldering on the copper board, so I started testing on a small board. In doing this, I realized the following points:

  • It was different soldering on the copper board.
  • I still had the problem of not placing the solder correctly on the board because the solder remained on the tip of the soldering iron.
    • This made me use a bad technique, which I later corrected. The mistake was that when I saw that it was stuck on the tip of the soldering iron, I put it back in this way, and when it heated up, I brought the solder closer again so that something would fall on the plate.
  • The choice of the soldering iron is important because it has a different tin, and some help you, but others do the opposite.
  • Practice helps, but time is running out.

Start with the components

After practice, I decided to venture out and start soldering the components on my board. So as per the recommendations, I decided to start placing the resistors since they were the smallest parts.

I was very happy with the results… but I didn’t know what would happen next.

Practice - Day 3... The Day?

Day three… and I continued practicing a bit before putting the missing components back on my board.

  • After analyzing this, I think I was too afraid of ruining my card.

Anyway, I started soldering the missing components, and I realized the following:

  • The process is faster than I thought with practice... or not?
  • Bending the pins was complicated.
  • And the same by soldering them. I had to ask my sister to help hold them with the clamp as I heated the board and put the tin on.

Note: When soldering, I started with the resistors, continued with the button, from there with the pins, and finally with the xiao.


Programming… does it work or not?

To program the PCB, I followed the next steps:

  1. I downloaded Arduino.
  2. When the installation was ending, I opened the software.
  3. I downloaded the code example that brought us.
  4. I opened the file in Arduino.
  5. I was prompted to create another folder to open the file in, and I said yes.
  6. I went to the website of the Xiao that we used.
  7. And I found the URL that it should be placed in the preferences of Arduino.
  8. I clicked on ‘File’ and found ‘Preferences’.
  9. In ‘Preferences’, I pasted the URL that I copied in the section of ‘Additional boards manager URLs’. And I pressed ‘OK’.
  10. Then, in the ‘Boards Manager’ I searched for raspberry and installed the second option, ‘Raspberry Pi Pico/RP2040’
    • Pay attention to installing the option that says ‘3.7.2’.
  11. The installation was processed.
  12. I pressed the menu of ‘Select Board’ to put the board of the xiao, the option ‘SeedXIAO RP2040’.
  13. I have problems with my port, but I resolved them. And I went to the menu of ‘Tools’ and found the ‘Port’ option to select my port.
  14. I uploaded the code.
  15. It was compiled.
  16. There was an error in the upload. So I returned to the ‘Select Board’ and selected ‘ SeedXIAO RP2040 COM3’, the option with the board and port.
  17. The code was compiled.
  18. The upload was done.

Arduino Code




Desoldering… and the chaos

When I connected it and loaded the code for the first time, it failed… and the desperation started.

The first thing I thought was the error was a higher KΩ resistor that I used because a colleague had the same failure, and when I changed the component, the problem was solved. So, I changed the component, and I proved it, but it still had the fault.

  • I desoldering the resistor and placed one like the ones already had.

I came to the second theory of the failure: that soldering was needed on the xiao and on the LED that did not light up. So, I applied more solder to these areas and retested, although the fault persisted.

  • I soldered a little more on the xiao and led.

We then continued with the search for the fault and came up with two thoughts: (1) that one of my leads on the board was destroyed and the solder didn't have joined, or (2) that one solder had joined with another and that created a connection that should not be there.

So before considering point one, I unsoldered the resistor that was theoretically causing the conflict to remove the tin that could be covering up the error and found that everything was fine, so I went back to soldering to test... and it still didn't work.

Curiously later, we discovered that the mistake from the beginning was that when I re-soldered the resistor, I had burned it... Therefore, I unsoldered it again to put in a new one, and it finally worked.


The final result

… it’s woks!


Conclusion

During this week, I have learned several things since it is a subject that I did not know and from which I was very far away. However, I think that despite the speed of the week, I have been able to learn and get to know the subject in a broad way.

Some things that I must reinforce from this learning are: understanding how the multimeter works; practicing my soldering more; understanding how resistor equivalencies work; and understanding the function of each component.

And I'm not sure that soldering is like dancing... But in the case of the one that does, I’m not sure which one I would prefer… Both have their difficulties.




Files