Integral calculus in arduino, please help !!

Guys, i have a problem when i make complementary filter in arduino.. Because i have to use integral in arduino to complete the filter. So, can someone tell me how to use integral in arduino?.

I have no idea but Arduino uses C++

.

Please tell us what you think "integral calculus" means. A link to a Wikipedia page or a textbook would help.

@Hakim1147070003, do not cross-post. Do no hijack. Other post removed.

Hi Hakim,

I don't know anything about your "complimentary filter", but I have done some integrating with an Arduino. Remember that the integral represents the area under a curve. So integrate by summing the signal level at a regular interval, over a set period of time. This represents the area under the curve, as illustrated by this diagram showing the area under a section of a sawtooth function:

Because i have to use integral in arduino to complete the filter.

No you don't. The integration symbol is a description of the filter. You need to get the filter into a form you can apply a digital filter technique to. This will involve a delay line and the summation of past and present input and output samples to find the current output sample. While this is in effect a form of integration it is not an integral in the maths function meaning.

So please describe what sort of filter you want.

@MorganS's wayward post merged.