Abstract
The growing field of the Internet of Things relies at the bottom on components with very scarce computing resources that currently do not allow complex processing of sensed data. Any computation involving Fast Fourier Transforms (FFT), Wavelet Transforms (WT), or simple sines and cosines is considered impractical on low-end devices due to the lack of floating point and math libraries. This article presents new techniques that make it possible to use these functions also on severely constrained target platforms.
Current literature abounds with schemes to compute sine and cosine functions, with focus on speed, hardware footprint, software size, target type, or precision. Even so, there is no practical exploration of the design space available for embedded devices with limited resources, in particular when only integer operations are possible. We select an efficient set of recursive sine and cosine generators and measure the frequency, amplitude, and phase error over a wide parameter range. We show that their simplicity allows them to be implemented on the most bare targets with good precision, reducing power consumption and size while being the fastest on integer-only processors. We also introduce specially tailored FFT and WT algorithms and show that they are usable in practice while having an extremely small code footprint, good precision, and high speed.
- A. L. Abu-El-Haija and M. Al-Ibrahim. 1986. Improving performance of digital sinusoidal oscillators by means of error feedback circuits. IEEE Trans. Circ. Syst. 33, 4 (1986), 373--380.Google Scholar
Cross Ref
- M. M. Al-Ibrahim. 2001. A simple recursive digital sinusoidal oscillator with uniform frequency spacing. In Proceedings of the IEEE International Symposium on Circuits and Systems (ISCAS’01), Vol. 2. IEEE, 689--692.Google Scholar
Cross Ref
- M. M. Al-Ibrahim and A. M. Al-Khateeb. 1997. Digital sinusoidal oscillator with low and uniform frequency spacing. IEE Proc. Circ. Devices Syst. 144, 3 (1997), 185--189.Google Scholar
Cross Ref
- David L. Baughman. 2012. An early history of logarithms. Ph.D. Dissertation.Google Scholar
- Sourav Bhattacharya, Henrik Blunck, Mikkel Baun Kjærgaard, and Petteri Nurmi. 2015. Robust and energy-efficient trajectory tracking for mobile devices. IEEE Trans. Mobile Comput. 14, 2 (2015), 430--443.Google Scholar
Cross Ref
- Amelie Bonde, Shijia Pan, Zhenhua Jia, Yanyong Zhang, Hae Young Noh, and Pei Zhang. 2018. VVRRM: Vehicular vibration-based heart RR-interval monitoring system. In Proceedings of the 19th International Workshop on Mobile Computing Systems (HotMobile’18). ACM, New York, NY, 37--42. DOI:https://doi.org/10.1145/3177102.3177110Google Scholar
Digital Library
- ChaN. 2005. Fixed-point FFT Routines for megaAVRs. Retrieved from http://elm-chan.org/docs/avrlib/fftavr.zip.Google Scholar
- Glenn Chang, Ahmadreza Rofougaran, Mong-Kai Ku, A. A. Abidi, and Henry Samueli. 1994. A low-power CMOS digitally synthesized 0-13 MHz agile sinewave generator. In Proceedings of the 41st IEEE International Solid-State Circuits Conference (ISSCC’94). IEEE, 32--33.Google Scholar
Cross Ref
- Jen-Chuan Chih, Jun-Yei Chou, and Sau-Gee Chen. 2001. An efficient direct digital frequency synthesizer based on two-level table lookup. In Proceedings of the IEEE International Frequency Control Symposium and PDA Exhibition. IEEE, 824--827.Google Scholar
- Jan L. Cieśliński, Leonid V. Moroz, and Cezary J. Walczyk. 2015. Fast exact digital differential analyzer for circle generation. Appl. Math. Comput. 271 (2015), 68--79.Google Scholar
Digital Library
- W. T. Cochran, J. W. Cooley, D. L. Favin, H. D. Helms, R. A. Kaenel, W. W. Lang, G. C. Maling, D. E. Nelson, C. M. Rader, and P. D. Welch. 1967. What is the fast Fourier transform? Proc. IEEE 55, 10 (Oct. 1967), 1664--1674. DOI:https://doi.org/10.1109/PROC.1967.5957Google Scholar
Cross Ref
- James W. Cooley and John W. Tukey. 1965. An algorithm for the machine calculation of complex Fourier series. Math. Comput. 19, 90 (1965), 297--301.Google Scholar
- D. De Caro, E. Napoli, and A. G. M. Strollo. 2004. Direct digital frequency synthesizers with polynomial hyperfolding technique. IEEE Trans. Circ. Syst. II: Express Briefs 51, 7 (2004), 337--344.Google Scholar
Cross Ref
- Jack Dongarra and Francis Sullivan. 2000. Guest editors introduction: The top 10 algorithms. Comput. Sci. Eng. 2, 1 (2000), 22--23.Google Scholar
Digital Library
- Ayman A. El-Badawy and Mohamed A. Bakr. 2016. Quadcopter aggressive maneuvers along singular configurations: An energy-quaternion based approach. J. Control Sci. Eng. 2016 (2016), 4.Google Scholar
Digital Library
- Atis Elsts, Ryan McConville, Xenofon Fafoutis, Niall Twomey, Robert Piechocki, Raul Santos-Rodriguez, and Ian Craddock. 2018. On-board feature extraction from acceleration data for activity recognition. In the proceedings of EWSN 2018. 163--168.Google Scholar
- L. Fanucci, R. Roncella, and R. Saletti. 2001. A sine wave digital synthesizer based on a quadratic approximation. In Proceedings of the IEEE International Frequency Control Symposium and PDA Exhibition. IEEE, 806--810.Google Scholar
- Franz Franchetti, Stefan Kral, Juergen Lorenz, and Christoph W. Ueberhuber. 2005. Efficient utilization of SIMD extensions. Proc. IEEE 93, 2 (2005), 409--425.Google Scholar
Cross Ref
- Matteo Frigo and Steven G. Johnson. 2012. FFTW: Fastest Fourier Transform in the West. Astrophysics Source Code Library.Google Scholar
- Gartner. 2016. Market Share Analysis: Microcontroller Revenue, Worldwide, 2015. Retrieved from https://www.gartner.com/doc/3293617/market-share-analysis-microcontroller-revenue.Google Scholar
- Nils Gura, Arun Patel, Arvinderpal Wander, Hans Eberle, and Sheueling Chang Shantz. 2004. Comparing elliptic curve cryptography and RSA on 8-bit CPUs. In Proceedings of the International Workshop on Cryptographic Hardware and Embedded Systems. Springer, 119--132.Google Scholar
Cross Ref
- Idda Hervé. 2005. Cryptage du son et traitement numérique. Bup 879 99 (2005). Retrieved from http://agregation.capes.free.fr/bup/sommaires-2005bup.htm.Google Scholar
- Barbara Burke Hubbard. 1998. The World According to Wavelets the Story of a Mathematical Technique in the Making. Universities Press.Google Scholar
- Steven G. Johnson and Matteo Frigo. 2008. Implementing FFTs in practice. Fast Fourier Transforms, C. S. Burrus (Ed.).Google Scholar
- Madhusudan Joshi, Chandrashakher, and Kehar Singh. 2007. Color image encryption and decryption using fractional Fourier transform. Optics Commun. 279, 1 (2007), 35--42. DOI:https://doi.org/10.1016/j.optcom.2007.07.012Google Scholar
Cross Ref
- George Lederman, Siheng Chen, James Garrett, Jelena Kovacevic, Hae Young Noh, and Jacobo Bielak. 2017. Track-monitoring from the dynamic response of an operational train. Mech. Syst. Signal Process. 87 (2017), 1--16. DOI:https://doi.org/10.1016/j.ymssp.2016.06.041Google Scholar
Cross Ref
- Todd R. Littell, Robert D. Skeel, and Meiqing Zhang. 1997. Error analysis of symplectic multiple time stepping. SIAM J. Numer. Anal. 34, 5 (1997), 1792--1807.Google Scholar
Digital Library
- Sanjoy Mahajan and Dennis Freeman. 2009. Discrete-time Signals and Systems. Retrieved from https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-003-signals-and-systems-fall-2011/readings/MIT6_003F11_front.pdf.Google Scholar
- Aleksandar Milenkovic, Chris Otto, and Emil Jovanov. 2006. Wireless sensor networks for personal health monitoring: Issues and an implementation. Comput. Commun. 29, 13--14 (2006), 2521--2533. DOI:https://doi.org/10.1016/j.comcom.2006.02.011 Wirelsess Sensor Networks and Wired/Wireless Internet Communications.Google Scholar
Digital Library
- Emiliano Miluzzo, Nicholas D. Lane, Kristóf Fodor, Ronald Peterson, Hong Lu, Mirco Musolesi, Shane B. Eisenman, Xiao Zheng, and Andrew T. Campbell. 2008. Sensing meets mobile social networks: The design, implementation and evaluation of the cenceme application. In Proceedings of the 6th ACM Conference on Embedded Network Sensor Systems. ACM, 337--350.Google Scholar
- Masachika Miyata. 1988. Highly accurate digital sinusoidal oscillators using controlled rounding. In Proceedings of the IEEE International Symposium on Circuits and Systems. IEEE, 2213--2216.Google Scholar
Cross Ref
- Matteo Morelli and Marco Di Natale. 2014. Control and scheduling co-design for a simulated quadcopter robot: A model-driven approach. In Proceedings of the International Conference on Simulation, Modeling, and Programming for Autonomous Robots. Springer, 49--61.Google Scholar
Digital Library
- Eva Murphy and Colm Slattery. 2004. Ask the application engineer (#33). All about direct digital synthesis. Analog Devices 38 (2004), 1--5.Google Scholar
- Jouko Niiranen. 1999. Fast and accurate symmetric Euler algorithm for electromechanical simulations. In Proceedings of the 6th International Conference of the IMACS TC1 Committee (ElectrIMACS’99), Vol. 1. 71--78.Google Scholar
- I. P. Omelyan, I. M. Mryglod, and Reinhard Folk. 2002. Optimized forest--ruth-and suzuki-like algorithms for integration of motion in many-body systems. Comput. Phys. Commun. 146, 2 (2002), 188--202.Google Scholar
Cross Ref
- Antonino Orsino, Giuseppe Araniti, Leonardo Militano, Jesus Alonso-Zarate, Antonella Molinaro, and Antonio Iera. 2016. Energy efficient IoT data collection in smart cities exploiting D2D communications. Sensors 16, 6 (2016), 836.Google Scholar
Cross Ref
- Kalle I. Palomaki and Jarkko Niittylahti. 2000. Direct digital frequency synthesizer architecture based on Chebyshev approximation. In Proceedings of the Conference Record of the 34th Asilomar Conference on Signals, Systems and Computers, Vol. 2. IEEE, 1639--1643.Google Scholar
- Shijia Pan, Ningning Wang, Yuqiu Qian, Irem Velibeyoglu, Hae Young Noh, and Pei Zhang. 2015. Indoor person identification through footstep induced structural vibration. In Proceedings of the 16th International Workshop on Mobile Computing Systems and Applications (HotMobile’15). ACM, New York, NY, 81--86. DOI:https://doi.org/10.1145/2699343.2699364Google Scholar
Digital Library
- Laura Lo Presti and Giuseppe Cardamone. 1994. A direct digital frequency synthesizer using an IIR filter implemented with a DSP microprocessor. In Proceedings of the IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP’94), Vol. 3. IEEE, III--201.Google Scholar
Cross Ref
- Charles M. Rader. 1968. Discrete Fourier transforms when the number of data samples is prime. Proc. IEEE 56, 6 (1968), 1107--1108.Google Scholar
Cross Ref
- George U. Ramos. 1971. Roundoff error analysis of the fast Fourier transform. Math. Comput. 25, 116 (1971), 757--768.Google Scholar
Cross Ref
- Victor H. Rodriguez, Carlos Medrano, and Inmaculada Plaza. 2018. Embedded system based on an ARM microcontroller to analyze heart rate variability in real time using wavelets. Wireless Commun. Mobile Comput. 2018 (2018).Google Scholar
- Cristian Rotariu, Vasile Ion Manta, and Hariton Costin. 2010. Patient monitoring using a low power wireless personal area network of sensors. Buletinul Institutului Politehnic din Iasi 56 (2010), 73--87.Google Scholar
- John Spitzer. 2003. Implementing a GPU-efficient FFT. In Proceedings of the SIGGRAPH Course on Interactive Geometric and Scientific Computations with Graphics Hardware.Google Scholar
- David A. Sunderland, Roger A. Strauch, Steven S. Wharfield, Henry T. Peterson, and Christopher R. Cole. 1984. CMOS/SOS frequency synthesizer LSI circuit for spread spectrum communications. IEEE J. Solid-State Circ. 19, 4 (1984), 497--506.Google Scholar
Cross Ref
- Microchip Technology. 2017. Cooley-Tukey FFT for 16-bit Integer Numbers. Retrieved from http://www.embeddedcodesource.com/codesnippet/cooley-tukey-fft-for-16-bit-integer-numbers.Google Scholar
- Clay S. Turner. 2003. Recursive discrete-time sinusoidal oscillators. IEEE Signal Process. Mag. 20, 3 (2003), 103--111.Google Scholar
Cross Ref
- Chua-Chin Wang, Hsien-Chih She, and Ron Hu. 2002. A ROM-less direct digital frequency synthesizer by using trigonometric quadruple angle formula. In Proceedings of the 9th International Conference on Electronics, Circuits and Systems, Vol. 1. IEEE, 65--68.Google Scholar
Cross Ref
- Hae Young Noh, K. Krishnan Nair, Dimitrios G. Lignos, and Anne S. Kiremidjian. 2011. Use of wavelet-based damage-sensitive features for structural damage diagnosis using strong motion data. J. Struct. Eng. 137, 10 (2011), 1215--1228.Google Scholar
Cross Ref
- Nikos Zervas. 2014. 8051 Interrupt Latency: Designing with Modern 8-bit MCUs. Retrieved from http://www.cast-inc.com/blog/8051-interrupt-latency-designing-with-modern-8-bit-mcus.Google Scholar
- Bin Zhou, Yingning Peng, and David Hwang. 2009. Pipeline FFT architectures optimized for FPGAs. Int. J. Reconfig. Comput. 2009 (2009), 1.Google Scholar
Digital Library
Index Terms
Adapting Recursive Sinusoidal Software Oscillators for Low-power Fixed-point Processors
Recommendations
SC- and SS-wavelet transforms
Grigoryan [Fourier transform representation by frequency-time wavelets, IEEE Trans. Signal Process. 53 (7) (2005) 2489-2497] has proposed an alternative representation of the Fourier transform, called A-wavelet transform. In that paper, the Cosine and ...
Fourier transform representation by frequency-time wavelets
A new concept of the A-wavelet transform is introduced, and the representation of the Fourier transform by the A-wavelet transform is described. Such a wavelet transform uses a fully scalable modulated window but not all possible shifts. A geometrical ...
Representation of the Fourier Transform by Fourier Series
The analysis of the mathematical structure of the integral Fourier transform shows that the transform can be split and represented by certain sets of frequencies as coefficients of Fourier series of periodic functions in the interval $$[0,2\pi)$$ . In this paper we ...






Comments