What you’re suggesting isn’t impossible, but it makes about as much sense as installing windows on a raspberry pi.
The pi is 3.3V, and it runs an operating system, with lots of different parts, and changing what it runs is as simple as git clone
. It is a really capable computer. But what it doesn’t do well is just toggle the IO.
The arduino is an embedded device, which doesn’t run an OS. It therefore is much simpler to manage. There isn’t any code running on it that isn’t part of the libraries and code you’ve loaded. It is much easier to get things to happen quickly, and in real time.
There are also a huge amount of choices for chips, and perpherals, The boards are well designed to work with these peripherals, for a specific chip, and they do a great job. Many of them are absurdly cheap, and still somehow profitable.
The pi excels at being flexible, and having the power of the Linux OS, and a (relatively) fast processor. The microcontroller excels at doing things deterministically, and simply, with the least amount of surprise.
IMHO, an awesome combination is klipper, which uses the microcontroller as a synchronous controller, and interface to the peripherals. The pi, gets updated frequently, and handles the trigonometry, and path planning. These algorithms can be a little late, and not affect the performance.
Making all of that work on the pi is possible, but the daughter card would be as expensive as a controller, and the configuration of it would send a lot of people packing.