Electronics Design

That's an exciting week ahead! I'm going to make my own board, my first PCB in life!

1.1 Assignments of the Week

1.2 Group Work

Here is the documentation.

1.3 Individual Work

1.3.1 Design PCB-EDA

1.3.2 Generate the Milling Path

1.3.3 Milling and Soldering the Circuit Board

1.Milling

Since I've done this before, I had a smoother experience this time with no major issues.

1:Check the tool bit. The previous user used a 0.8mm bit. Typically, I start with milling the traces before changing tools.

2:djust the RPM to 10,000

3:Manually set the X and Y axes, and use the auto-leveling probe to set the Z origin.

4:Use a USB drive to import the three RML files into VPanel, then select “Output” to begin the milling process.

5:Vacuum extraction

2. Soldering

With the deadline approaching, I didn't have time to mill a backup board, so I nervously began the soldering phase.

  • Gather components. From previous projects, I learned a useful tip: create a physical checklist with the required components, quantities, and place each component next to its name for clarity. (New skill acquired!)
  • Prepare the tools: soldering iron, tweezers, solder wire, and flux. Let the soldering begin!
  • There was a minor incident at the start. I began soldering the smaller components first out of habit. However, my colleague recommended soldering larger, heavier components first (like capacitors and inductors), then moving to smaller ones (like resistors, diodes, and chips) to avoid knocking smaller pieces out of place or overheating them. I appreciated the advice!

    Final Product!

    ⭐Key Soldering Tips and Techniques Learned::

  • ✨Keep the soldering iron tip clean by removing oxidation with a wire sponge regularly.
  • ✨Use flux to improve solder flow, but don't overdo it.
  • ✨Avoid holding the soldering iron on components for too long to prevent overheating.
  • ✨Solder in order from larger to smaller components.
  • ✨Inspect for cold joints after soldering, and carefully remove any stray solder.
  • 1.3.4 Arduino IDE

    I used the sound sensor to test and used music to control the small lights on the circuit board to dance.

    According to the wiring diagram provided by the seller, I connected the signal line of the sound sensor to pin 26 of the XIAO RP2040, and controlled an LED on pin 28 to flash in sync with the sound frequency.

    When I started programming, emmm… I ran into some difficulties. I wasn't sure how to make the sound sensor control the LED. My colleague told me I needed to use the map function, which converts the voltage signal read from pin 26 into an analog value in the range of 0-1023, then maps it to the PWM signal range (0-255) needed for the LED. This allows the brightness of the LED to be controlled by the intensity of the ambient sound—the louder the sound, the brighter the LED; the quieter the sound, the dimmer the LED.

    I found a video here that explains the map function:

    Here's the code:








    Success!