hi ,i'd like to do the acquisiiton of an analogic signal (an EMG signal which has a frequency of 500Hz) ,and for this i use an arduino DUE ,my problem is how to fixe the sampling frequency at 1Khz
thanks
hi ,i'd like to do the acquisiiton of an analogic signal (an EMG signal which has a frequency of 500Hz) ,and for this i use an arduino DUE ,my problem is how to fixe the sampling frequency at 1Khz
thanks
With millis() or micros() I suppose.
Take a sample when a fixed time has past.
You might want to look at the BlinkWithoutDelay example in the IDE.
Leo..
Or use a dedicated timer interrupt.
There are other Due timer libraries out, that was the first I found with a ten second Google search.
thanks for this site
sorry ,Iam new in arduino ,can you give me more details about how to search
Google "Arduino due timer"