display a sine wave generated by GBF using my arduino.

Hello guys ,

I don't now how can i display a sine wave in an oscilloscope generated by a GBF using my arduino.
I realize a sketch and i see a square signal not my sine wave.

Can you help me ?


can you give me some more help, I don't understand.


Add an RC lowpass filter.
That will smooth out the level.
Then, change the duty cycle (analogWrite value) smoothly over time to make a wave.
Or not so smoothly, and with longer holds at each value, to make it more step like.
Don't be afraid to play with the values.

thank you .

I realize the circuit and i modify the sketch but i don’t now where is the problem.