Will it work if I attach USB mining machines on a raspberry pi computer? Or it is likely to fail?
A Pi would need to connect to a powered hub if you plan on powering the miner through USB only.
The usb ports on a Pi are NOT for supplying power (such as charging a phone or miner).
I used minerA, and it worked great for controlling U3's and things like orbs, or g-blades. At one time I had a CRAPton of devices hooked to one pi. The mess of soo many orbs was insane =)