Analoge voltage from SRF05

Hi...
Does anyone know how could I get analog voltage from SRF05 (0-5volt, depending on the distance ) and from which pinout ?? I also have the MCP4725 DAC with Nano.
Also if it is easy and the corresponding sketchs..
Thanx..

I'm not aware of any version of the SRF05 that has an analog output.

If your goal is to read the SRF05 digital data and then use the DAC to generate an analog output then a Google search for "arduino srf05" and "arduino MCP4725" will give multiple tutorials with code.

Sketches for this sensor have a "distance" variable.
That could be mapped to 0-255, and send to a PWM pin.
PWM can be averaged to 0-5volt with a resistor and capacitor.

But why an analogue voltage. What do you want to do with that.
Can't you keep it digital.
Leo..

Wrong wording ... sorry and thank you all for the answers ..
I already have it digital and I want to transfer it to a LAN CONTROLLER, which only accepts volt input (0-7volt) .
The sonar is already connected and I have measurements, and I want to convert the digital signal to an analogue output of 1-5 volts.
I have the dac (MCP4725) but I do not know how it connects and where ..
Thank you very much and good morning

In the search box at top of page, type "MCP4725", lots of hits. :slight_smile: