Design Con 2015
Breaking News
Comments
Oldest First | Newest First | Threaded View
Page 1 / 3   >   >>
Max The Magnificent
User Rank
Blogger
King of Visio
Max The Magnificent   7/8/2014 9:39:01 PM
NO RATINGS
Just call me the "King of Visio" because all of the drawings in this blog -- including the block diagrams, schematics, and especially the ones of the breadboards -- were lovingly created by yours truly.

David Ashton
User Rank
Blogger
Re: King of Visio
David Ashton   7/8/2014 11:22:42 PM
NO RATINGS
I'll go along with that Max, awesome diagrams.  I'm still woefully inadequate at Visio.

One thing that occurs to me here, especially after watching the video of your LEDs flickering away.  True VU displays - and the LM3915 - have a logarithmic response, whereas MCU ADCs are linear.   What does the MSCEQ7 do - the datasheet says the DC output for each band is just an amplified peak detected amplitude of the input - but is it linear or logarithmic?  As it does not say, I'm assuming linear, and the way your LEDs are flashing I think goes along with this.

If it is linear, you could do a log conversion in software, either mathematically or via a look-up table.  I seem to remember this was touched on in a previous blog - am I right?

I still think it is a great little chip...

 

David Ashton
User Rank
Blogger
Timings
David Ashton   7/8/2014 11:46:16 PM
NO RATINGS
Max, another query - the MSGEQ7 timings in your article are all given as "minimum".  I assume that as long as you stick to these minimum timings you can extend them a bit (for example if your MCU is busy doing something else, or if it takes a long time to do the ADC conversion) without problems?   And as long as you read the ouput at least to (settling time) after the strobe goes low (and before the next strobe pulse) you are ok - I notice the minimum strobe pulse width is less (18us) than the settling time (36us) - which implies you can read the data even if the strobe has gone back high?  (ie you could actually read data during the purple times in your diagram?)

 

mithrandir
User Rank
Rookie
Moving the filters in
mithrandir   7/9/2014 12:41:49 AM
NO RATINGS
Nice post Max! Even nicer visio drawings!

I'm curious if you could actually push the MSGEQ7 functionality into the arduino itself. The max frequency is 16KHz, so you could probably get away with a 3~4x oversampling ADC and pushing it through digital filters running in firmware.

There doesn't seem to be a lot of information on the filter charactersitcs on the datasheet so I'm guessing a 2 or 3-tap IIR should do it which will amount to somewhere around 30 cycles(if there's a hardware multiply, sadly not at all familiar with Arduino cores) for each bandpass. That will amount to 8*30 which is 240 cycles roughly for all the 8 parallel bandpasses to run. Plus some latency for the ADC interrupt to run and grab, but that happens only once every cycle so lets put another 20 cycles for that. Since the actual processor is running at 80MHz, you should still be able to have something around 1200 cycles(assuming a 4x oversampled ADC so it gets a new sample at 64ksps) to work with which should leave plenty of processing room to spare for the PWM's to dim according to the filtered output.

2 channels could may be fit in too but I'm presuming too much at this stage :)

Max The Magnificent
User Rank
Blogger
Re: King of Visio
Max The Magnificent   7/9/2014 9:19:47 AM
NO RATINGS
@David: ...True VU displays - and the LM3915 - have a logarithmic response, whereas MCU ADCs are linear.   What does the MSCEQ7 do...

The data sheet doesn't say -- the vertical frequency response axis is simply annotated 0 at the bottomn and 20 at the top.

Actually, thsi is something I can test using my frequency generator -- I can put in a 0.5V peak-to-peak signal, 1.0V pk-pk, 1.5V pk-pk, and 2.0V pk-pk and see what I get -- I'll do that this coming weekend and report back.

Max The Magnificent
User Rank
Blogger
Re: Timings
Max The Magnificent   7/9/2014 9:36:07 AM
NO RATINGS
@David: I notice the minimum strobe pulse width is less (18us) than the settling time (36us) - which implies you can read the data even if the strobe has gone back high? (ie you could actually read data during the purple times in your diagram?)


As you say, the minimum strobe pulse of 18us is less rthan the outpout settling time of 36us, so I too assume that you can read the data even afgter the strobe has gone back high (although in my software I delay 40us after the strobe goes low before doing the read).

However, you can't read data during the purple times in my diagram because the minimum tss (strobe-to-strobe delay) is 72us.

Hmmm -- looking at my original diagram (which I re-drew from the one in the data sheet), I see what you mean -- that original diagram implies that the data goes invalid on the rising edge of the strobe.

Maybe the following depiction is better -- what do you think?

 



Max The Magnificent
User Rank
Blogger
Re: Moving the filters in
Max The Magnificent   7/9/2014 9:41:19 AM
NO RATINGS
@mithrandir: I'm curious if you could actually push the MSGEQ7 functionality into the Arduino itself.

I'm sure you could achieve somethging like thsi in the Arduino -- I've seen software DSP versions of spectrum analyzers running on Arduinos. My problem is that this is going to be part of my BADASS Display, so I'll be using my Arduino to drive the display itself.

I'm actually running this on a chipKIT MAX32, which is more than capable of running sophisticated DSP algorithms in software -- that's the longer term plan -- it was just that when I was introduced to these MSGEQ7 chips I thought I'd give them a whirl.

mithrandir
User Rank
Rookie
Re: Moving the filters in
mithrandir   7/9/2014 10:19:01 AM
NO RATINGS
My interest is piqued now. I'll see if I can get just the front end filtering running on my Pioneer kit. Alas I don't seem to have many LED's with me right now so time hunt down, scrounge or steal a few!

Weekend project, here I come :)

Clive
User Rank
Rookie
Re: Moving the filters in
Clive "Max" Maxfield   7/9/2014 10:59:23 AM
NO RATINGS
@mithrandir: I'll see if I can get just the front end filtering running on my Pioneer kit.

Is that a PSoC 4 Pioneer kit, or are you talking about something else?

 

Alas I don't seem to have many LED's with me right now

I buy bags of them at a time because I seem to use them in so many things.

 

Weekend project, here I come :)

Have a great time, email me to tell me how you get on (max.maxfield@ubm.com and max@clivemaxfield.com), keep notes and take pictures -- maybe you could even write your experiments up as a column for me to post here on EETimes 

mithrandir
User Rank
Rookie
Re: Moving the filters in
mithrandir   7/9/2014 11:36:06 AM
NO RATINGS
Yup, it's the PSoC4 kit. Have it close at hand and I'm used to the IDE so it'll be quick.

 

I'll keep you posted.

Page 1 / 3   >   >>


Top Comments of the Week
Flash Poll
Like Us on Facebook

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
EE Life
Frankenstein's Fix, Teardowns, Sideshows, Design Contests, Reader Content & More
Carlos Bueno

Adventures in Userland
Carlos Bueno
Post a comment
Editor’s Note: Excerpted from Lauren Ipsum: A Story About Computer Science and Other Improbable Things, author Carlos Bueno introduces us to Lauren and her adventures in Userland. ...

Max Maxfield

Tired Old iPad 2 vs. Shiny New iPad Air 2
Max Maxfield
9 comments
I remember when the first iPad came out deep in the mists of time we used to call 2010. Actually, that's only four years ago, but it seems like a lifetime away -- I mean; can you remember ...

Martin Rowe

Make This Engineering Museum a Reality
Martin Rowe
Post a comment
Vincent Valentine is a man on a mission. He wants to make the first house to ever have a telephone into a telephone museum. Without help, it may not happen.

Rich Quinnell

Making the Grade in Industrial Design
Rich Quinnell
16 comments
As every developer knows, there are the paper specifications for a product design, and then there are the real requirements. The paper specs are dry, bland, and rigidly numeric, making ...

Special Video Section
The LT8640 is a 42V, 5A synchronous step-down regulator ...
The LTC2000 high-speed DAC has low noise and excellent ...
How do you protect the load and ensure output continues to ...
General-purpose DACs have applications in instrumentation, ...
Linear Technology demonstrates its latest measurement ...
10:29
Demos from Maxim Integrated at Electronica 2014 show ...
Bosch CEO Stefan Finkbeiner shows off latest combo and ...
STMicroelectronics demoed this simple gesture control ...
Keysight shows you what signals lurk in real-time at 510MHz ...
TE Connectivity's clear-plastic, full-size model car shows ...
Why culture makes Linear Tech a winner.
Recently formed Architects of Modern Power consortium ...
Specially modified Corvette C7 Stingray responds to ex Indy ...
Avago’s ACPL-K30T is the first solid-state driver qualified ...
NXP launches its line of multi-gate, multifunction, ...
Doug Bailey, VP of marketing at Power Integrations, gives a ...
See how to ease software bring-up with DesignWare IP ...
DesignWare IP Prototyping Kits enable fast software ...
This video explores the LT3086, a new member of our LDO+ ...
In today’s modern electronic systems, the need for power ...