Olenka Odar - Fab Academy

07 Electronics Design

In this section we list the activities to be solved in the following table:

Checklist Estatus
Linked to the group assignment page Finished
Documented what you have learned in electronics design Finished
Explained problems and how you fixed them. Finished
Included original design files (Eagle, KiCad, etc.) Finished
Included a "hero shot" of your board  Finished 

Group assignment:

  • Use the test equipment in your lab to observe the operation of a microcontroller circuit board (in minimum, check operating voltage on the board with multimeter or voltmeter and use oscilloscope to check noise of operating voltage and interpret a data signal)
  • Document your work to the group work page and reflect on your individual page what you learned.

For this assignment we will use an Arduino Uno card to perform the measurements.

Step 1: We will use a BK PRECISION oscilloscope and a FLUKE 87 V multimeter to make the measurements.

Oscilloscope BK PRECISION

Multimeter FLUKE 87 V

Step 2: We proceed to measure the exit voltages which are respectively 3.3V and 5V; in the multimeter the corresponding values of 3.302V and 5.045V can be seen, voltages that coincide with what is indicated on the Arduino Uno card.

3.3V VOLTAGE

5V VOLTAGE

Step 3: Now we set the selector of the multimeter to ohms and means the SMD resistors of 102 (4 x 1KΩ) and 103 (4 x 10KΩ). With the multimeter the following resistance values are obtained, respectively 0.982KΩ and 10.08KΩ, which are very close to those indicated on the Arduino Uno board.

Measuring resistance 102 SMD (4 x 1KΩ)

Mesuring resistance 103SMD (4 x 10KΩ)

Step 4: Measure the output voltage of a digital pin, for this the Arduino board has been programmed to activate a led connected to pin 10, we build the small circuit with a 330 Ω resistor and a green led. 

The following measurements were made:

  • Resistance measurement = 330 Ω
  • Voltage between pin 10 and GND = 5.03V
  • Output voltage of pin 10 and the negative leg of the led = 4.8V
  • Voltage across the resistor = 2.84V
  • Voltage on the led = 1.961V
  • Current: 8.47mA (place the multimeter selector in milliamps, make sure it is selected in the direct current option. Place the multimeter in series between pin 10 and the resistor)

Step 5: Using the oscilloscope, visualize the waveform of a flashing LED connected to pin 13 of the Arduino which already contains an internal resistance, for this the card has been previously programmed. The waveform is square and each square is 1V, as can be seen in the first video.

In the second video, the variation of the voltage is observed when the LED blinks. On the voltage is 4.784V and off 0V.

Step 6: With the oscilloscope, we can see the behavior of a pin with PWM output. In the first video you can see how the intensity of light in the LED varies. In the second video you can see how the width of the output pulse varies. And in the last one, as this variation of the width of the pulse, it is reflected in the variation of the output voltage and the voltage in the led.  It is shown that by varying the pulse width of the output signal, the voltage varies causing the led to shine with greater or lesser intensity.

Step 7: We place the tips of the oscilloscope on the Tx and GND pins and observe the behavior of the signal when uploading a program to the Arduino board. We repeat the procedure, but this time with the Rx and GND pins. It is observed in both cases that when a program is loaded on the card there are variations in the signal, which shows that the data is being sent correctly.

Individual Assignment

EasyEDA

For this assignment I decided to use EasyEDA, this is a PCB design and circuit simulation software, its use is completely online and free, it does not require installation; the only thing we have to do is register to be able to access all the benefits of this software. We have two options: (1) create our account or (2) log in with Google.

Once registered, the following screen should appear:

To start, enter the standard online editor.Once there we created our first project.

To enter the electronic components for the circuit we have two options: “Commonly Library” and “Library”. The first shows us the most used basic electronic components and the second allows us to search for components that are not found within the basic components and that have been created by third parties.

Getting to know SEEED XIAO RP2040

XIAO RP2040 is a microcontroller using the Raspberry Pi RP2040 chip. It supports multiple languages, including C/MicroPython/CircuitPython.

Features: 

  • Powerful MCU: Dual-core ARM Cortex M0+ processor, flexible clock running up to 133 MHz.
  • Rich on-chip resources: 264KB of SRAM, and 2MB of on-board Flash memory
  • Small size: As small as a thumb(20x17.5mm) for wearable devices and small projects.
  • Multiple interfaces: 11 digital pins, 4 analog pins, 11 PWM Pins,1 I2C interface, 1 UART interface, 1 SPI interface, 1 SWD Bonding pad interface.
  • For general I/O pins: Working voltage of MCU is 3.3V. Voltage input connected to general I/O pins may cause chip damage if it' higher than 3.3V.
  • For power supply pins: The built-in DC-DC converter circuit able to change 5V voltage into 3.3V allows to power the device with a 5V supply via VIN-PIN and 5V-PIN.

To know more about this microcontroller click here. Knowing the pins it presents allows you to properly connect the components. Here is your pinout.

Making the circuit design

Now we proceed to create our circuit, I took as a basis what was done by Adrián Torres and started with the design. With the help of the libraries we first entered the SEEED RP2040 and then the rest of the components.

Once all the connections are made, the circuit should look like this:

The next step is to design the circuit PCB.

We order the components to be able to route the tracks. I use Auto Routing first to help route the tracks, auto routing is not always the most convenient, let's see how my PCB looks.

After Auto Routing, only three tracks failed, so I did them manually.

The PCB is ready.

Finally, we can see what our design will look like by generating a 3D view.

What I learned:

1. A background in electronics facilitates circuit schematic design (connecting the electronic components of a circuit).

2. It is important to identify the function of each pin of the microcontroller, to correctly make the connections and a better distribution of the circuit components.

3. Not all component footprints are best suited for the design. At first I chose the print that is shown in the image, in the schematic there was no problem; When trying to perform manual routing, that footprint did not allow me to make connections below the XIAORP2040, so I had to change it. In the same way I had to change the footprint of the led.

Files

Design XIAO RP2040   

   6.   8 .