Mount for HC-SR04. Screw socket mount to a corner. Insert HC-SR04 into sonar box, then attach the back. Snap the ball into the socket, and move ball in the socket as needed to aim the sonar. The texture of the ball and socket will hold the sonar in the desired position.
Print the socket-mount socket-side down. A brim and some supports may be necessary.
The box top and bottom can be printed without supports.
The back of the sonar box is attached with 4 M3-5mm screws.
OpenSCAD sources are online at https://github.com/chl33/Garage133/tree/main/scad/SonarBox.
Used in my Garage133 project.
The author marked this model as their own original creation.