logo elektroda
logo elektroda
X
logo elektroda

What components are required for a minimum system board? Easy for beginners to understand

FreakStudio 300 0
ADVERTISEMENT
  • Pico peripheral circuits explained for beginners

    #1 21946116
    FreakStudio
    Level 4  
    Posts: 8
    BoardBeginners can think of the RP2040 chip as "a phone motherboard without a screen, battery or buttons" — it has core functions, but cannot work without these accessories. These hardware circuits supplement the chip with essential features such as "power supply, clock, status indicator and interfaces", turning the Pico from a "bare chip" into a "directly usable development board".

    What components are required for a minimum system board? Easy for beginners to understand

    The Raspberry Pi Pico is equipped with several peripheral circuits for the RP2040 chip, including: an external Flash memory chip (W25Q16JV), a clock crystal oscillator, passive components such as power filter capacitors, a USB connector, a reset button, and an LED indicator. Most of the available pins of the RP2040 chip are routed out on both sides of the Pico development board, while four pins are reserved for internal functions, such as driving the onboard LED, powering the development board, and selecting the BOOT mode.
    The schematic diagram of the Raspberry Pi Pico is shown below, which consists of an external clock crystal oscillator circuit, a BOOT mode selection circuit, a power supply input circuit, a power supply voltage measurement circuit, an LED indicator driving circuit, a debugging interface circuit, a pin expansion circuit and a chip peripheral circuit, and we will introduce them one by one next.

    What components are required for a minimum system board? Easy for beginners to understand
    Figure 1.4 Circuit Schematic of Raspberry Pi Pico Development Board
    Simply put, the peripheral circuit of a Pico development board consists of the following parts:
    - Clock crystal oscillator circuit: A circuit composed of a 12MHz crystal oscillator (labeled X1 in the diagram) and small components such as capacitors. It acts as the "metronome" for the chip — the chip's operations and communication with peripheral devices all require precise "time rhythm", and this circuit provides a stable "beat signal" of 12 million cycles per second to ensure the timing of the chip's operations is accurate (for example, timing a 1-millisecond LED flash relies entirely on this beat to calculate time).
    - BOOT Mode Selection Circuit: Essentially, it is a small circuit equipped with a BOOTSEL button, serving as the "boot mode toggle switch" for the chip, which has two modes upon startup:
    - Normal Mode: Launch the saved program;
    - BOOT Mode: The firmware flashing state is the "program loading mode" of Pico: after connecting Pico to a computer while holding down the BOOTSEL button, Pico will switch to this state (without launching the old program), at which point it will be recognized by the computer as a storage device. Simply drag the written program (firmware) into it to install new functions for Pico.
    - Power Supply Input Circuit: This is the circuit in charge of power management (such as the power chip U2 in the diagram). It can be connected to a USB (5V) power source or a battery (2-5V), and will stably convert the input voltage into the 3.3V required by the chips; it also filters out clutter in the voltage to prevent voltage fluctuations from damaging the chips.
    - Power Supply Voltage Measurement Circuit: A compact circuit designed to detect the power supply voltage. Acting as the "built-in voltmeter" of the board, it can measure the input power voltage in real time (for example, when powered by batteries, it lets you know if the batteries are running low), making it convenient for you to monitor the power status.
    - LED Indicator Driver Circuit: A small circuit for controlling the onboard LED. The chip can control the on/off state of this LED via the GPIO25 pin to indicate status (e. g., blinking when the program is running, steady on when power is connected).
    - Debug Interface Circuit: This refers to the DEBUG header (3-pin header) shown in the diagram, which acts as the "fault diagnosis port" of the board. If your program is corrupted or the board fails to operate, connecting a debugging tool to this interface allows you to check the internal operating status of the chip and pinpoint where the program has gone wrong.
    - Pin Extension Circuit: A circuit that converts the pins of a chip into header pins (labeled CON_PICO_40W in the diagram). The pins of the RP2040 chip itself are too small to connect wires directly; this circuit extends the chip's pins into standard header pins, allowing you to use DuPont wires to plug directly into these headers to connect external components such as sensors and motors.
    - Chip peripheral circuit: A circuit composed of small components such as filter capacitors and resistors around the chip. For example, filter capacitors can filter out the clutter in the power supply to make the power supply for the chip more stable; resistors can protect the pins from being burned out by excessive current, and prevent the chip from malfunctioning due to external interference or current fluctuations.
    1. Power Supply Circuit

    What components are required for a minimum system board? Easy for beginners to understand
    Figure 1.5 Schematic Diagram of Power Supply Circuit
    The Raspberry Pi Pico can be powered by an external power supply or a Micro-USB cable, and there are two power lines worth our attention here:
    - VBUS line: This is the power supply from the microUSB bus, with a voltage of 5V. If the Raspberry Pi Pico is not powered via the microUSB connector, there will be no power input at this point.
    - VSYS Line: This is the power supply input line for the DC-DC power supply chip, with an input voltage range of 1.8~5.5V. The onboard RT6150B can convert the input power into a + 3.3V voltage and output it to the MCU chip.
    The entire power voltage conversion is implemented by the RT6150B DC-DC power supply chip. The RT6150A/B is a high-efficiency, fixed-frequency switching power converter that can operate with an input voltage higher than, lower than, or equal to the output voltage. This chip features low static power consumption (the switching operating frequency is set at 1MHz, and the static current in power-saving mode is only 60μA), compact size, selectable operating modes (with enable control for power-saving mode PSM), and other advantages, and is commonly used in power supply modules for portable products and handheld instruments and meters.
    Introduction to RT6150 Power Management IC
    (1) Chip Parameters and Reference Circuit Design

    What components are required for a minimum system board? Easy for beginners to understand
    Figure 1.6 Parameters and Reference Circuit Design of RT6150 Power Chip
    (2) PCB Routing Reference Diagram

    What components are required for a minimum system board? Easy for beginners to understand
    Figure 1.7 PCB Routing Reference Diagram for RT6150 Power Supply Chip
    Here, the GPIO23 pin of the Raspberry Pi Pico is connected to the PS side of the power supply chip, and the operation mode of the power supply chip can be switched by controlling the high and low level output of GPIO23:
    - PS= 0: PFM (Pulse Frequency Modulation) mode, the default value, delivers the optimal operating efficiency for the chip. It is the "high-efficiency power-saving mode" that ensures the power chip operates at peak efficiency, making it sufficient for daily use.
    - PS= 1: In the PWM (Pulse Width Modulation) mode, this corresponds to the "Stable Wave with Heavy Load Mode", which delivers smoother power output and can drive heavier equipment; enabling this mode during ADC (Analog-to-Digital Conversion) sampling will yield more accurate data.
    The RP2040 chip on the Raspberry Pi Pico requires two voltage supplies: 3.3V (for I/O) and 1.1V (for the chip's digital core voltage). Since the RP2040 has an integrated 3.3V-to-1.1V LDO, there is no need to worry about the 1.1V power supply issue.
    2. Clock Crystal Oscillator Circuit

    What components are required for a minimum system board? Easy for beginners to understand
    Figure 1.8 Clock Crystal Oscillator Circuit
    Chips cannot function without precise "timing rhythm" — for example, tasks like flashing an LED at 1-second intervals or transmitting data in sync with a sensor all rely on a stable "clock signal". This circuit acts as Pico's "external precision metronome", dedicated to providing a stable time reference for the RP2040. Below are its core components and their functions:
    Here, a crystal oscillator in SMD3225-4P package with a frequency of 12MHz is selected. The 15pF capacitors on both sides of the crystal oscillator function to ensure more stable oscillation frequency, and a 1kΩ resistor connected in series in the XOUT path is used for current limiting, which can prevent the crystal oscillator from reduced service life or damage caused by over-driving. If other different crystal oscillators are selected, these values may need to be adjusted.
    When strict timing requirements are not required, the clock of the RP2040 can be selected to be input from the internal oscillator.
    3. BOOT Mode Selection Circuit

    What components are required for a minimum system board? Easy for beginners to understand
    Figure 1.9 BOOT Mode Selection Circuit
    This circuit comprises two key functional modules of Pico: one is the BOOT mode selection circuit that controls the "startup state", and the other is the Flash memory circuit for storing programs — the former helps you switch between the "run existing program" and "load new program" states, while the latter acts as Pico's "built-in small hard drive" for storing programs. Their specific functions are detailed as follows:
    - The onboard 2MB QSPI flash memory can be (re) programmed via the serial wire debug port or through a special USB mass storage device mode.
    - The upper part is the BOOT mode selection circuit. The startup mode switching button is connected in series with a 1kΩ resistor to the QSPI_SS pin of the RP2040. This series resistor ensures that the content in the Flash will be executed when the reset button is pressed in BootLoader mode.
    When the RP2040 is powered on, the QSPI_SS pin will automatically default to pull-up, and the RP2040 will check the value of this I/O during the boot process; when QSPI_SS is logic 0, the RP2040 enters the BootLoader mode.
    - When the BOOTSEL button is not pressed, during reset or power-up: the device enters normal mode, and the MCU boots the stored program from the Flash.
    - When the BOOTSEL button is pressed during reset or power-up, the MCU enters the BootLoader mode for "new program flashing", at which point the Pico will appear as a "USB flash drive" on the computer, and the firmware can be updated simply by dragging and dropping a program file in uf2 format into it.
    During a short period at power-on, the state of the QSPI_SS pin cannot be guaranteed, which can be ensured by adding a pull-up resistor. For the W25Q128 Flash memory, an external pull-up resistor is unnecessary, so it is marked as NO-FIT and can be omitted during soldering.
    Below is the Flash memory circuit, whose power supply operates at the same voltage as the 3.3V power pin of the chip. The pins of the W25Q128 are connected to the QSPIx pins of the RP2040. A 2.2μF and a 100nF filter capacitor are placed near the power supply pin (VCC) of the Flash memory W25Q128 to provide a stable 3.3V power supply for the W25Q128JVSIQ.

    What components are required for a minimum system board? Easy for beginners to understand
    4. Power Supply Measurement Circuit

    What components are required for a minimum system board? Easy for beginners to understand
    Figure 1.10 Power Supply Measurement Circuit
    This circuit is the "power supply voltage monitoring module" of the Pico, which leverages the chip's ADC (analog signal acquisition) function to measure the Pico's supply voltage in real time (for example, to check the remaining battery level). First, let's understand the basics of the RP2040's ADC, then we will look at the function of this circuit:
    The ADC of the RP2040 is a "tool for measuring gradual signals"(such as measuring voltage levels), and it has 5 acquisition channels:
    - 4 channels correspond to the 4 pins from GPIO26 to GPIO29;
    - One of them is the "temperature sensor" built into the chip, which can measure the chip temperature without any external components;
    - There is also an ADC_VREF pin, which serves as the "reference standard" for ADC voltage measurement (3.3V by default, and it determines the voltage range that the ADC can measure).
    These ADC pins are internally protected by reverse diodes and feature a 12-bit resolution (equivalent to dividing the 0~3.3V range into 4096 small steps for more accurate voltage measurement).
    The so-called power supply measurement circuit uses GPIO29 (corresponding to the ADC3 channel) to measure the supply voltage (VSYS) of the Pico:
    - C3 Capacitor: Filters the voltage signal to stabilize the voltage to be measured and prevent clutter from interfering with the measurement results;
    - R5+ R6 resistors: divide the VSYS voltage (max. 5.5V) into 1/3 (since the ADC can only measure up to 3.3V, the divided voltage falls within the measurable range);
    - Q1 component: Prevents voltage from leaking into the power supply circuit from the ADC pin after the Pico is powered off, serving a protective function;
    Finally, GPIO29 will sample the "divided VSYS voltage", and the current supply voltage can be obtained after conversion (for example, when powered by a battery, the battery level can be monitored).
    5. Chip Peripheral Circuit

    What components are required for a minimum system board? Easy for beginners to understand
    Figure 1.11 Peripheral Circuit of the Chip
    The RP2040 chip serves as the "core brain" of the Pico, yet it requires "supporting safeguards" to operate independently — the peripheral circuitry below acts as an "auxiliary module" that complements the chip with essential capabilities such as "communication, power supply, and anti-interference", enabling the chip to work stably and realize functions including USB connection and ADC acquisition, which are specifically divided into the following parts:
    - USB Communication Section: The two signal pins of the USB interface (USB_DP / USB_DM) must be connected to the USB interface in series with 27Ω resistors — these resistors function as "protection + optimizers": they not only prevent component burnout caused by excessive current during short circuits, but also enable smoother signal transmission and reduce interference, allowing the USB to be used both for firmware programming and for connecting external USB devices.
    - Chip Power Supply - Internal LDO Power Input: Inside the chip, there is a "voltage converter" that steps down 3.3V to 1.1V to power the core circuitry. The 2.2µF capacitors adjacent to its input and output pins act as "voltage regulators", filtering voltage fluctuations to ensure a stable 1.1V supply and prevent the chip from malfunctioning due to unstable voltage.
    - GPIO Peripheral Power Supply Input: The 100nF small capacitor next to the GPIO pin acts as an "anti-interference filter", which filters out the clutter in the power supply to make the GPIO pin more stable when supplying power to external components or transmitting signals.
    - TESTEN: This is a pin for factory testing, which is directly connected to the ground wire and requires no handling by users.
    - ADC Reference Power Supply: By default, the ADC uses the Pico's built-in 3.3V as the "measurement ruler" for voltage detection; if higher sampling accuracy is required, a dedicated external voltage reference chip (such as the LM4040) can be connected, but in this case the ADC will only be able to measure voltages in the range of 0 to 3.0V.
    - ADC Power Supply - ADC_AVDD Pin: Supplies 3.3V power to the ADC module, using the stable 3.3V output from the preceding power management chip.
    6. LED Driving Circuit

    What components are required for a minimum system board? Easy for beginners to understand
    Figure 1.12 LED Driving Circuit
    It is used to test the GPIO25 pin of the RP2040, and its on/off can be controlled via a program.
    7. Debugging Interface Circuit

    What components are required for a minimum system board? Easy for beginners to understand
    Figure 1.13 Debug Interface Circuit
    This circuit serves as the 'program debug port' for the Pico — when the program you wrote malfunctions (such as the board being unresponsive or operating incorrectly), it can help you troubleshoot issues and load code directly, offering greater flexibility than standard USB flashing. Its specific functions are detailed below:
    There are two ways to reprogram the Flash on Pico:
    - Normal mode: Drag and drop the uf2 file via USB (simple but with limited functions);
    - This SWD debug port (DEBUG interface): It enables system reset, code loading/running, and "interactive debugging"(i. e., viewing the internal operating status of the chip while the program is running to accurately locate program errors) without pressing any buttons.
    Additionally:
    - The SWDIO and SWCLK debug pins of the RP2040 chip have built-in 60kΩ pull-up resistors internally, so no additional resistors are required;
    - However, the more commonly used term in daily practice is "USB serial port debugging", which represents the most straightforward method for program downloading and debugging, and the USB approach is sufficient for most beginners.
    8. Pin Expansion Circuit

    What components are required for a minimum system board? Easy for beginners to understand
    Figure 1.14 Pin Expansion Circuit
    The pins here are led out through 2 sets of "1×20Pin" stamp holes (each set contains 20 pin holes), and the spacing between adjacent holes is 2.54mm — this is a common standard spacing for electronic components, compatible with regular DuPont wires and expansion boards.
    The advantage of this design lies in its "dual-purpose" feature: it can either be directly connected to components like sensors and LEDs via DuPont wires for experiments, or have the Pico soldered onto a custom-designed circuit board, making it easy to integrate the Pico into your own finished projects (such as small robots and environmental monitoring devices).
    9. Test Point Introduction
    There are 6 test points (TP1 to TP6) accessible on the Raspberry Pi Pico:

    What components are required for a minimum system board? Easy for beginners to understand
    Figure 1.15 Function Description Diagram of Test Points (TP1~TP6) for Raspberry Pi Pico
    These 'test points (TP1 to TP6)' are the reserved "spare small interfaces" on the Pico board — normally, the main interfaces like Micro-USB and pins are sufficient, but when you need to batch test whether the development board is functional, the main interface is damaged, or special operations are required, these test points can temporarily replace some functions. The functions of each test point are as follows:
    - TP1, TP2, TP3: These are "spare USB ports" — if the Micro-USB port on the board is damaged, you can use these three test points to connect USB signals to replace the function of the original USB port;
    - TP4: Not suitable for external use; ignore it.
    - TP5: Corresponds to GPIO25 (the pin of the onboard LED), but it is not recommended for use — since its voltage can only vary between 0V and the LED turn-on voltage, which is an excessively narrow range, using it as an output is prone to issues;
    - TP6: This is the "trigger point for the alternate BOOT mode". If the BOOTSEL button malfunctions, short TP6 to the ground line when powering on the device, and the Pico will enter the "drag-and-drop program" flashing mode.
  • ADVERTISEMENT
ADVERTISEMENT