(deleted)
rymarxxx:
.how can I make a DAC that produces a sinewave by using an arduino uno. The attached file is the circuit and the required output.please help me with the codes
I cannot open the 'circuit' file and the desired output is anything but a sin wave.
You could build an array containing the sequence of values you want to output and then cycle through it. You could build the array offline and compile it into your sketch or you could build the array in the setup() function.
There is no current limiting resistor on LED D1. That can easily damage the Arduino.
Have you researched DACs online?
Also your "required waveform" doesn't look like a sine wave. Do you require this wave, or a sine wave?
Your circuit is very non-conventional, for sine wave generation. You should explain how it works.
(deleted)
rymarxxx:
My professor gave that to us; the ckt and the required waveform
Did the professor also supply the code you posted? Does the given circuit produce that waveform? Also, it seems to have nothing to do with any DAC.
Somewhere you must have missed an explanation or two. The circuit, code, and output you have posted seem to have nothing (or at least very little) to do with the assignment as you have stated it.
e.g. why is there an inductor in the circuit? Are you supposed to modify the circuit? If so, are you allowed to use any components that you like?
Before we can help you, you have to explain how the circuit operates, and what the limitations of the assignment are. Otherwise, someone will just say, "connect a DAC IC" or some other unhelpful reply.

