The Digital Sketchbook Arduino Frequency Measurement Library

Not rated 29,875

The Digital Sketchbook Arduino Frequency Measurement Library
The Digital Sketchbook Arduino Frequency Measurement Library

Software on a MacBook Pro includes Laidman & Katsura's WaveWindow, which functions as a software oscilloscope. It is beneficial for individuals working with sound on the Mac, offering an educational and entertaining experience. Additionally, Faberacoustical's Signal Scope allows for the digitization and visualization of multiple waveforms, while the FFT Analyzer enables analysis of narrowband spectral content, supporting up to 16 signals simultaneously. On an iPod Touch, there is an Oscilloscope app that requires a hardware modification to create an audio line-in by modifying a cheap iPhone headset. The Project Hijack board is a hardware/software platform designed for developing small sensor peripherals for mobile phones, utilizing power and bandwidth from the mobile phone's headset interface. It has been tested with devices such as the iPhone 3G/3GS/4G, iPod Touch, and iPad, and is available as part of the Hijack Development Pack from Seeed Studio for $79. A preferred DIY solution is the Frequency Measurement Library from the Academy of Media Arts Cologne, which offers high precision frequency measurement in the audio or sub-audio range using an ATMEGA chip's special Counter and Capture unit. This method provides greater accuracy and speed below 20 KHz compared to previous frequency counter libraries. A circuit was built on a breadboard following the schematic, and code testing yielded successful results, although it required a relatively high signal input level. Initial attempts to boost signal levels using preamplifier schematics from the Frequency Counter library were unsuccessful, leading to a direct audio routing from the AD9835 before the volume potentiometer. The code was modified to include a Running Average and two Running Median values for frequency output to mitigate spikes and glitches. The SpikenzieLabs I2C LCD Interface kit was utilized to display results on a 16x2 LCD, with a button added to switch between output types. The breadboard circuit was documented using Fritzing to create a schematic and PCB layout for an Arduino shield. Initial attempts to create the shield using sticky-backed copper foil were unsuccessful, leading to the use of a DFRobot Prototyping Shield for Arduino. The final assembly included an acrylic case designed for the Super DMX Shield box, housing the Arduino and shield, a 9V battery, power switch, LED, and a holder for the LCD display.

The described project integrates various software and hardware components to create a comprehensive audio analysis tool. The use of software oscilloscopes, such as WaveWindow and Signal Scope, facilitates the visualization of waveforms, which is essential for audio engineers and enthusiasts. The incorporation of the FFT Analyzer allows for detailed spectral analysis, enabling users to examine multiple signals concurrently, which is crucial for complex audio work.

The Project Hijack board exemplifies innovation in mobile technology, allowing for the development of compact sensor peripherals that can easily interface with mobile devices. This platform opens new avenues for creating low-cost sensor applications that leverage existing mobile technology, enhancing the functionality of smartphones and tablets.

The DIY frequency measurement solution from the Academy of Media Arts Cologne showcases the effectiveness of the ATMEGA chip in precision applications. Its ability to measure frequency accurately in the sub-audio range is particularly valuable for audio engineers looking to analyze low-frequency signals. The challenges faced in signal amplification and the eventual resolution through direct audio routing highlight the importance of understanding circuit design and signal integrity.

The project’s documentation process using Fritzing ensures that the design is reproducible and clear, which is essential for sharing knowledge within the electronics community. The transition from breadboard to PCB design illustrates the development process, emphasizing the iterative nature of electronic design. The final assembly, including the acrylic case, not only protects the components but also provides a user-friendly interface with the inclusion of an LCD display and control button, enhancing the overall usability of the device. This project represents a successful blend of software and hardware engineering, resulting in a versatile audio analysis tool suitable for various applications.software on my MacBook Pro - such as the aforementioned Laidman & Katsura `s WaveWindow - WaveWindow is a software oscilloscope. It`s useful for anyone who works with sound on the Mac; it`s educational and fun to play with.  and Faberacoustical `s Signal Scope - Oscilloscope - Digitize and visualize multiple waveforms  and FFT Analyzer - Analy

ze narrowband spectral content. 16 signals at a time. ; software on my iPod Touch such as Oscilloscope (there`s a hardware hack required to create an audio line in - by cutting up and soldering sockets onto a cheap iPhone headset) - though I`ve just found out that the Project Hijack board I`ve been wanting to try out for a while - HiJack is a hardware/software platform for creating cubic-inch sensor peripherals for the mobile phone. HiJack devices harvest power and use bandwidth from the mobile phone`s headset interface. The HiJack platform enables a new class of small and cheap phone-centric sensor peripherals that support plug-and-play operation.

HiJack has been tested with the iPhone 3G/3GS/4G, iPod Touch, and iPad devices.  is now available as part of the Hijack Development Pack from Seeed Studio for $79; and my favoured DIY solution - the Academy of Media Arts Cologne: Laboratory for Experimental Computer Science: labIII Frequency Measurement Library For frequency measurement in the audio or sub audio range the determination of the signal period length delivers the most accurate results. The architecture of the ATMEGA chip provides a special Counter and Capture unit which is designed todo this job with a high precision.

 particulalry since Compared to a Frequency Counter Library published here before, this method delivers a higher accuracy and speed in the range below 20 KHz.  it seemed an ideal solution. Following the schematic I built the circuit on a breadboard and tested the code and it worked result.

However, it took a little while to discover that it needed a relatively high signal input level. Initially I tried the two preamplifier schematics from the Frequency Counter library (after consulting the Transistor - Wikipedia, the free encyclopedia article to work out how to actually wire it up) hoping they could boost signal levels without introducing too much noise - but they didn`t - so I ended up routing audio directly from the AD9835 and before the volume pot. I tweaked the code to additionally output a Running Average and two alternatively calculated Running Median values of the frequency to even out occasional spikes and glitches in the measurement.

Determined to actually use the SpikenzieLabs I2C LCD Interface kit mentioned in an earlier post, I persevered with the clunky demo code and eventually managed to display the output on an old 16x2 LCD display - adding a button to switch between the various output types. I then used Fritzing to document the breadboard circuit, produce a clear schematic and design a PCB layout of the various components as a simple Arduino shield - which I tried to make using sticky backed copper foil cut on the vinyl cutter at Fab Lab Manchester.

My first attempt at this didn`t work too well - but I`ve subsequently cut more promising versions - though I ended up using a DFRobot. com Prototyping Shield for Arduino to mount the components and connection headers instead - albeit it fried my head a little since it has a specific pad and 5V/GND line layout but which I was pleased to find worked first time once I`d soldered it all up ;-) Finally, I laid out and laser cut an acrylic case using my adaptable Arduino enclosure design for the Super DMX Shield box I made for Monomatic.

It houses the Arduino and shield; a 9V battery, power switch and LED; and in the top plate - the button and a 16x2 LCD display holder inspired by the Spikenzielab`s curved LCD Stand. 🔗 External reference