Timeline for Sample sine wave
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 22, 2018 at 20:39 | comment | added | Mitu Raj | You can use this link to see how to present mathematical equations and expressions in a readable way in your answers -- math.meta.stackexchange.com/questions/5020/… | |
Feb 22, 2018 at 19:44 | history | edited | UweD | CC BY-SA 3.0 |
deleted 4 characters in body
|
Feb 22, 2018 at 19:43 | comment | added | UweD | The equation is simply y=sin(omega*t). This is how I did it once. You output a value every 39.06us (I synchronized to a reference signal to keep the frequency of 100Hz constant - I don't know if this is a requirement for you). The value which you output is given by the equation (I precalculated it and wrote it into a table). So, you calculate the sin_fkt-value for t=0, t=1*39.06u, t=2*39.06u, t=3*39.06u...., t=256*39.06u. And then start at t=0 again. | |
Feb 22, 2018 at 15:19 | comment | added | Antonio Iannacci | Could you explain me how you can reach that formula? Moreover I should output a value every 39.06 micro seconds, right? | |
Feb 22, 2018 at 13:14 | history | edited | UweD | CC BY-SA 3.0 |
added 3 characters in body
|
Feb 22, 2018 at 11:18 | history | answered | UweD | CC BY-SA 3.0 |