jeroendoggen / arduino-signal-filtering-library Goto Github PK
View Code? Open in Web Editor NEWArduino library for signal filtering
Home Page: http://jeroendoggen.github.io/Arduino-signal-filtering-library
License: Other
Arduino library for signal filtering
Home Page: http://jeroendoggen.github.io/Arduino-signal-filtering-library
License: Other
Add code (use other lib?) to get a fixed sample rate
Arduino : 1.6.11 (Linux), TD: 1.30-beta3, Carte : "Arduino Duemilanove or Diecimila, ATmega328"
iirFilter:6: error: cannot declare variable 'Filter' to be of abstract type 'iirFilter'
iirFilter Filter;
^
In file included from /tmp/arduino_modified_sketch_237102/iirFilter.ino:4:0:
/home/chevrette/Documents/Arduino/libraries/Filter/iirFilter.h:9:7: note: because the following virtual functions are pure within 'iirFilter':
class iirFilter : public Filter
^
In file included from /home/chevrette/Documents/Arduino/libraries/Filter/iirFilter.h:7:0,
from /tmp/arduino_modified_sketch_237102/iirFilter.ino:4:
/home/chevrette/Documents/Arduino/libraries/Filter/Filter.h:16:18: note: virtual void Filter::printSamples()
virtual void printSamples()=0;
^
exit status 1
cannot declare variable 'Filter' to be of abstract type 'iirFilter'
Ce rapport pourrait être plus détaillé avec
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.
How to structure the filters (OOP design)
(partial) Filter implementations?
http://spuc.sourceforge.net/
http://stackoverflow.com/questions/1761212/any-good-c-c-dsp-library
Lots of filters: (BlkDSP.cpp)
http://www.icst.net/research/projects/dsp-library/
Add some documentation, describing practical use and limitations
I download the zip file and put 'Filter' into the arduino library. however, the iirFilter example won't pass the compile, errors including:
In file included from V:\temp\stone\vineyard\Arduino\hardware\arduino\cores\arduino/Printable.h:23,
from V:\temp\stone\vineyard\Arduino\hardware\arduino\cores\arduino/Print.h:27,
from V:\temp\stone\vineyard\Arduino\hardware\arduino\cores\arduino/Stream.h:26,
from V:\temp\stone\vineyard\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:28,
from V:\temp\stone\vineyard\Arduino\hardware\arduino\cores\arduino/Arduino.h:215,
from V:\temp\stone\vineyard\Arduino\libraries\Filter/firFilter.h:6,
from iirFilter.ino:2:
V:\temp\stone\vineyard\Arduino\hardware\arduino\cores\arduino/new.h:21:40: error: macro "__cxa_pure_virtual" passed 1 arguments, but takes just 0
In file included from V:\temp\stone\vineyard\Arduino\hardware\arduino\cores\arduino/Printable.h:23,
from V:\temp\stone\vineyard\Arduino\hardware\arduino\cores\arduino/Print.h:27,
from V:\temp\stone\vineyard\Arduino\hardware\arduino\cores\arduino/Stream.h:26,
from V:\temp\stone\vineyard\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:28,
from V:\temp\stone\vineyard\Arduino\hardware\arduino\cores\arduino/Arduino.h:215,
from V:\temp\stone\vineyard\Arduino\libraries\Filter/firFilter.h:6,
from iirFilter.ino:2:
V:\temp\stone\vineyard\Arduino\hardware\arduino\cores\arduino/new.h:21: error: variable or field '__cxa_pure_virtual' declared void
iirFilter:12: error: cannot declare variable 'Filter' to be of abstract type 'iirFilter'
V:\temp\stone\vineyard\Arduino\libraries\Filter/iirFilter.h:10: note: because the following virtual functions are pure within 'iirFilter':
V:\temp\stone\vineyard\Arduino\libraries\Filter/Filter.h:16: note: virtual void Filter::printSamples()
As a beginner, I don't know what cause the error and how to fix them.
Can you please help ? Thanks in advance.
Hi ! Do you support your library still ? I can not setup library.
It would be a great option if the amount of samples taken in the median filter can be more than 3.
I would say give begin(number of samples) a parameter that initiates the array for data. This would make it a lot more usefull.
Some filter are not yet moved from old version to new version (low pass: bessel,...)
Append zero's in front
similar to: http://www.phanderson.com/arduino/arduino_display.html
If you support filters now, medianFilter no compiling, maybe after installing arduino 1.8.19. Thank you
Add "debug defines" to trade off debugging options vs code size (+add some optional debugging functions)
FIR vs IIR
Lowpass vs highpass
1st vs 2nd vs 3rd order
linear vs non-linear
What is best for:
Hi, I tied to use your lib, but for both IIR and FIR, when I touched the analog pin0, and changed the delay to 50, I've got negative values. Median filter was working fine.
like this:
In: 519 - Out: 521
In: 516 - Out: 518
In: 504 - Out: 511
In: 492 - Out: 501
In: 481 - Out: 490
In: 499 - Out: 490
In: 539 - Out: 513
In: 527 - Out: 529
In: 618 - Out: 563
In: 609 - Out: 602
In: 729 - Out: 142
In: 732 - Out: -423
In: 745 - Out: -541
In: 711 - Out: -575
In: 661 - Out: -616
In: 631 - Out: -145
In: 751 - Out: -6
In: 765 - Out: -435
In: 742 - Out: -533
In: 673 - Out: -590
In: 701 - Out: -618
In: 769 - Out: -587
In: 751 - Out: -561
In: 765 - Out: -557
In: 705 - Out: -574
In: 696 - Out: -605
In: 691 - Out: -617
In: 685 - Out: -623
In: 682 - Out: -628
In: 677 - Out: -633
In: 673 - Out: -638
In: 668 - Out: -642
In: 664 - Out: -646
In: 659 - Out: -651
In: 656 - Out: -143
In: 651 - Out: 478
In: 648 - Out: 611
In: 642 - Out: 637
In: 639 - Out: 640
In: 634 - Out: 638
In: 631 - Out: 634
In: 626 - Out: 630
In: 623 - Out: 626
In: 618 - Out: 622
In: 614 - Out: 618
In: 610 - Out: 614
In: 605 - Out: 609
In: 601 - Out: 604
In: 599 - Out: 601
In: 595 - Out: 598
In: 592 - Out: 594
In: 588 - Out: 590
In: 585 - Out: 587
In: 582 - Out: 584
In: 579 - Out: 581
In: 577 - Out: 579
In: 574 - Out: 576
In: 573 - Out: 574
In: 556 - Out: 567
In: 566 - Out: 562
In: 552 - Out: 559
In: 558 - Out: 556
In: 545 - Out: 553
In: 546 - Out: 547
In: 538 - Out: 543
In: 539 - Out: 540
In: 536 - Out: 538
In: 533 - Out: 535
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.