# Linearization of sine wave

#### HypoXic5665

Hello, I am currently working on a project which involves pulling data from a specific axis of a phones accelerometer and feeding that data into an algorithm that yields relevant results to the project. Currently the results are not desirable because the data pulled from the device creates a sine wave which results in non uniform output values per unit of rotation.
The graph below shows what the current input is (blue) as well as what I am needing to convert that input to (orange) before feeding it into my algorithm.

My question is: How do I linearize the original input that is creating the sine wave?
Attached is the rough data set per 5 degrees of rotation in an .xlsx.

Please let me know if anything is unclear or if more information is needed, any direction given will be appreciated.
(apologies if my syntax is incorrect)

[attachment=0:3bqqb3u6]360ActualCombined.png[/attachment:3bqqb3u6]

#### Attachments

• 9.6 KB Views: 15
• 76.5 KB Views: 505

#### flying_pigeon

Assuming $$\displaystyle X$$ is the input data.

$$\displaystyle \frac{2\sin^{-1}(X)}{\pi}$$

#### Hyperegg

Assuming $$\displaystyle X$$ is the input data.

$$\displaystyle \frac{2\sin^{-1}(X)}{\pi}$$
Hello, by any chance could you please give a source or explain how you arrived at that equation. Thank you...

P.S. I am aware that this is like 7 years later... so yeah I'm not expecting any response TwT...

Thank youuuuu