Cheap depth camera with a small footprint to use with Arduino or Raspberry Pi

But, you seem to have trouble explaining what those terms mean.

BTW: nothing associated with iPhone is "cheap", so it is pointless to use that as a comparison.