Go Down

Topic: Generating a clock signal (Read 54 times) previous topic - next topic


Hello all,

I'm a researcher just starting to work with the Arduino. I was wondering if there was a straightforward way of generating a sinusoidal output to use as a clock signal. Basically, I have an external device that I need to provide an 8 Hz sine-wave to. I have found several methods online, but they all seem overly complicated for what I think would be a super simple thing to accomplish using a microcontroller.

I'm using the Arduino Uno. Any advice would be much appreciated.

Thank you,


Nov 21, 2015, 06:00 pm Last Edit: Nov 21, 2015, 06:03 pm by jremington
The standard Arduino cannot generate a well defined (variable) DC voltage, if that is what you need.

It can generate an approximation using AnalogWrite(), which is a pulsed value that must be smoothed and averaged with an external resistor and capacitor. A sine table lookup can be used the set the approximate output value.

Otherwise, use an external digital to analog converter (DAC) or a more advanced Arduino, like the Due, that has one built in.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131