NUCLEO-U575ZI DAC optimal sampling rate for 40hz sine generation?
Hello everybody! Sorry, I am a pianist and know very little about engineering, so I most probably will use a naïve terminology, please bear with me.
The thing is I use built-in 12-bit DAC in order to generate a simple sine wave. The frequency is a bout 40hz. Now, from what little I know, it seems that both the bit depth and sampling rate determine how large "gaps" between two adjacent values of the resulting sine will be. The larger the bit depth, the smaller the gap (smoother wave), the greater sampling rate - also the smoother wave. So both, the bit depth and sampling rate determine the smoothness of the resulting wave. My question is, while I cannot adjust the bit depth (let's not mention dithering at this point), I definitely can vary sampling rate. What would be the optimal oversampling ratio for generating a smooth 40hz sine? Could someone please explain the concept in a nut-shell, if possible?
Thank you!