{"repo":"ArminJo/Arduino-Utils","free":true,"listed":false,"github":"https://github.com/ArminJo/Arduino-Utils","clone":"git clone https://github.com/ArminJo/Arduino-Utils.git","description":"Utility collection for Arduino programming","language":"C++","stars":18,"topics":["arduino","dumping","ema","hcsr04","lowpass","optiboot-bootloader","sleep","tracing","utilities","adc-utils"],"license":"GPL-3.0","category":"analytics","readme_excerpt":"ArduinoUtils My utility collection for Arduino Contains utilities for fast and flexible ADC conversions, Voltage and Resitance measurement, RAM, heap and stack info, Hex dumps, EMA filters etc. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Not yet available as Arduino library. &nbsp; &nbsp; &nbsp; &nbsp; If you find this library useful, please give it a star. &#x1F30E; Google Translate Table of contents SimpleEMAFilters ADCUtils HCSR04 MeasureVoltageAndResistance BlinkLed ShowInfo HexDump AVRUtils ToneUtils MillisUtils DebugLevel ATtinyUtils AvrTracing Utilities available as separate Arduino library ATtinySerialOut EasyButtonAtInt01 The very useful digitalWriteFast.h file based on the version from Watterott electronic. Revision History CI SimpleEMAFilters An EMA ( Exponential Moving Average ) filter behaves like an RC Lowpass filter with RC = SamplePeriod((1-alpha)/alpha) see here. An EMA filter is implemented by e.g. the following statement: which takes 2.5 &micro;s on a 16 MHz Arduino Uno . The alpha's for the implemented ultra fast EMA filters are 1/2, 1/4, 1/8, 1/16, 1/32 and 1/256 corresponding to the shift values of 1, 2, 3, 4, 5 and 8. For a 1 kHz sampling rate (1/1000s sampling interval) we get the following equivalent cutoff (-3db) frequencies: Simplified formula for small alpha is CutoffFrequency = (SampleFrequency / (2&pi; ((1/alpha) - 1)); - For alpha 1/2 shift 1 - 160 Hz - 1/4 2 - 53 Hz (=160 Hz / 3); 3 = (1 / (1/4)) - 1 - 1/8 3 - 22.7 Hz (=160 Hz / 7) ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ArminJo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ArminJo/Arduino-Utils/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}