You cannot use a Raspberry PI for mining today. This has been true for years. If you try, you will not find a block and will waist electricity.
If you want to mine bitcoin, you need to use specialized hardware, called an ASIC, and unless you have many millions of dollars worth of equipment, you will need to connect this specialized hardware to a pool.
Folks, if you just take a little time to read pinned messages here you will save yourself from asking ridiculous questions like that... As a bonus you might even learn a bit more faster.
Please ref https://bitcointalk.org/index.php?topic=2415854.0 mainly point-3 and the summary.
The days to mine through CPU are long gone. You cannot mine bitcoin through CPU these days. Athough you can use it as a Full node and validate blocks.
I have a Raspberry Pi 400 and I am setting up the required accessories. I will be using it to run a Full node and contribute towards the bitcoin network.
You simply use an RPi as a controller for mining Bitcoin with USB miners.
It wont make you a fortune (or probably not even a profit) but you simply get some GekkoScience USB ASIC miners like here:
https://bitcointalk.org/index.php?topic=5053833.0
It doesn't appear either of the retailers mentioned in the ANN thread have the USB miners in stock/for sale. Even without this pesky little detail, the default settings allow each of these miners to mine at 23 GH/sec, and at current difficulty/price, that works out to be about $2.75 per year in total mining revenue. It appears some settings can be changed so that the miner can get up to 90 GH/s, which works out to about $10.77 per year in total revenue. Before accounting for cooling costs, and costs associated with having many USB ports for these to connect to (and associated electric costs), you can't pay more than about 0.062/KWH to turn any profit with those miners.
As I said, in your quote, you use it as a controller.
An RPi on it's own probably can do around 20-30MH/s so about 1/1000th of a Gekko USB.
While that is a complete waste of time and thus will earn you nothing, mining with a Gekko, or even an R606, connected to an RPI will give you some results to learn about mining and see it in action.
Since he is asking about an RPi, that's the answer he should get.