This is the source code and circuit diagram of my DIY 2D ultrasound phased array radar:
circuit.pdf is the circuit diagram
main/ is the Arduino source code
draw/ is the Processing source code
For more information, you can watch the Youtube introduction videos or my Udemy DIY course