hi developers,

i want to share basic sinewaveform generator,

you can see after send code to ardunio , and check Ctrl+Shift+L

#include <math.h>

float f,y,A,B,t,pi=3.1428;

float w = 2*pi*f;

float degree=30;

float rad,tetha1,tetha2,tetha3,Alpha=0; // Alpha derece cinsindendir

void setup() {

// put your setup code here, to run once:

Serial.begin(9600);

}

void loop() {

// put your main code here, to run repeatedly:

A=1000;

f=10;

t+=(float)1/1000;

//rad=degree*(3.14/180);

A=2*pi*f*t;
tetha1=(1.0/f)*(Alpha/360.0);

tetha2=(1.0/f)

*(120/360.0);*

tetha3=(1.0/f)(240/360.0);

tetha3=(1.0/f)

y = 1000*sin(2*pi*f*t);

A = 1000*sin(2*pi*f*(t+tetha2));

B = 1000*sin(2*pi*f*(t+tetha3));

Serial.print(A,5); Serial.print(" “); Serial.print(B,5); Serial.print(” "); Serial.println(y,5);

}