This simple 4-bit digital-to-analog converter was found in a 1974 publication. The transistors can be the BC548 (which in the drawing appear as PNP), and the operational transistor is a 741. The power must be supplied with 5 V, including operational.