Skip to content

DrKRR/Basic-Research-on-Raspberry-Pi-Pico-and-Raspberry-Pi-Pico-2

Repository files navigation

Basic-Research-on-Raspberry-Pi-Pico-Raspberry-Pi-Pico-W-and-Raspberry-Pi-Pico-2

Among different types of microcontrollers available on the market, Raspberry Pi Pico series have decided advantages (Please refer to the hardware manual). I got attracted towards the on-chip thermal sensor and power down modes, specifically. Hence, I am focusing on these parameter measurements, experimentally.
Experimental Measurement of Certain Raspberry Pi Pico Parameters
As a beginning of the research done on variants of Raspberry Pi Pico models, I am explaining certain parameter measurements. Codes are developed both in MicroPython and Arduino, wherever is necessary. I am sure that I am not describing the parameters in systematic way (Randomly). A number of on-line web sites has motivated me to do this reearch.

Unveiling the On-chip Temperature Sensor of Raspberry Pi Pico

Raspberry Pi Pico W:
I have already explained the On-chip temperature sensor in the following YouTube Short:
Unveiling the On chip Temperature Sensor of Raspberry Pi Pico Please visit this YouTube Short
The MicroPython code for the above is given in this repository
Raspberry Pi Pico 2
The Raspberry Pi Pico 2 was introduced on 8th August 2024, costing 5$. It's a 2X dual core (dual-ARM Cortex M33 and dual-RISC V Hazard3) microcontroller (RP2350) with advanced features. It has an integrated on-chip temperature sensor in the form of a biased NPN-diode connected in the configuration shown below, and the chip has greatly improved power efficiency.
image image
The ADC used in RP2350 as compared to RP2040, has improved precision, and particularly removed spikes in the differential nonlinearity. Basic specification of the Temperature Sensor ADC from Data sheet is given below (Courtesy: Raspberry Pi RP2350 Manual): image MicroPython program is developed using the above specifications and sensor temperature is displayed on the Thonny shell. The measured temperature will be almost constant at the beginning . But, as time progress, the power dissipation of the internal dye will change (increase) the measured temperature. On the other hand, when the plastic encapsulation of RP2350 is cooled, the sensor temperature reduces. The microcontroller board (Raspberry Pi Pico 2) placed on the bread board is shown below. A plastic bucket containing a small ice piece is placed on the chip:RP2350, that reduces the chip temperature from 27.51 degree celsius to 22.36 degrees. ❗ Check the shell portion of Thonny editors below❗. Don't get puzzled by the extra components on the board. It is for other experiments. Code is available in this repository.

Study on Low Power Modes of RP2040

In this exercise I have developed code in MicroPython to test and note the current drawn by the Raspberry Pi Pico board in the following modes:
(a). Pass (Normal program with creation of delay) (b). sleep (c). lowpower.lightsleep() and (d). lowpower.dormant()
Two files namely (i). lowpower.py courtesy and (ii). Low-power testing.py (present work) are stored on the device Both files are available in the repository. The corresponding hardware diagram developed on a bread board is shown below, and the board is powered by an external USB power bank via 5V/3V selectable bread board power supply unit. Also shown below is the photograph of the experimental setup.

As the page has become larger in size, I am discussing the low power modes of Raspberry Pi Pico 2 (RP2350) in another repository.

Tip

In order to use the same Raspberry Pi Pico board for different IDEs (say for example: MicroPython and Arduino), I erase the flash memory of RP2040/RP2350 by using the file flash_nuke.uf2.

Caution

Take care of Power Supply connections while carrying out the above exercise
Advises about risks or negative outcomes of certain actions.

About

Experimental Measurement of Certain Raspberry Pi Pico Parameters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages