Breaking News
Comments
Newest First | Oldest First | Threaded View
Page 1 / 5   >   >>
Max The Magnificent
User Rank
Blogger
Re: Cow and Horse Manure
Max The Magnificent   5/15/2014 12:20:18 PM
NO RATINGS
@alex_m1: Paul definetly deserve the credit , he did  great work.

He's got some more stuff coming out that will blow everyone' socks off -- but I won't be talking about that until after Paul returns from the Maker Faire

alex_m1
User Rank
CEO
Re: Cow and Horse Manure
alex_m1   5/15/2014 12:17:00 PM
NO RATINGS
@Max: Great, Paul definetly deserve the credit , he did  great work.

And i won't be in maker faire. But it sure sound like a fun place to be in.

Max The Magnificent
User Rank
Blogger
Re: Cow and Horse Manure
Max The Magnificent   5/15/2014 10:42:58 AM
NO RATINGS
@alex_m1: Recently i've been researching about the arduino , and than recalled your project. i think the arduino teensy 3 might be a good fit for your project:

Good call -- in fact I've recently been chatting with Paul Stoffregen who is one of the creators of the Teensy -- he has some amazing libraries that address both the display side and the audio side of things.

I will be blogging about this today or tomorrow -- if you are at the Maker Faire in San Francisco thsi coming weekend, you shoudl look him up and say "Max says Hi"

alex_m1
User Rank
CEO
Re: Cow and Horse Manure
alex_m1   5/15/2014 3:53:07 AM
NO RATINGS
Max ,

Recently i've been researching about the arduino , and than recalled your project. i think the arduino teensy 3 might be a good fit for your project:

1. speedy Cortex-m4 - 64k ram - great for audio processing. And yes you can do fft in a 8 bitter, but you need to sample at around 5-8khz for that , while heavily optimizing code.

2. Audio  library

http://www.pjrc.com/teensy/td_libs_Audio.html



3. The arduino has a simple scheduler , so you  might not need the complexity of two mcu's , communication, etc

http://arduino.cc/en/Reference/SchedulerStartLoop

4. Not relevant to the project , but might interest your readers : the teensy 3 comes under a commercial friendly license, one of the major things that prevented usage of arduino in commercial projects.

http://forum.pjrc.com/threads/24063-Paul-Teensy-in-a-commercial-product

Max The Magnificent
User Rank
Blogger
Re: OctoWS2811 and Audio (DSP) Library
Max The Magnificent   5/5/2014 9:42:16 AM
NO RATINGS
@PaulStoffregen: ...you should check out a couple Arduino libraries I've written...

Hi Paul -- this sounds very interesting -- can you email me at max@clivemaxfield.com so we can discuss this further off-line

PaulStoffregen
User Rank
Rookie
OctoWS2811 and Audio (DSP) Library
PaulStoffregen   5/5/2014 7:42:47 AM
NO RATINGS
Hey Max, you should check out a couple Arduino libraries I've written (one now in beta testing), and the hardware they run on.  Full disclosure, my company makes this Arduino compatible board.

Display library is OctoWS2811.  A quick google search will quickly turn it up.  OctoWS2811 works with Adafruit NeoPixel LEDs and all other WS2811/2812-based addressible LEDs.  OctoWS2811 drives 8 strips in parallel, so it can update 8X faster (these LEDs always use 800 kHz data rates).  But the really important feature of OctoWS2811, for your project, it is accomplishes this feat using efficient DMA transfers that leave the CPU almost completely unused while the LEDs update.

All that free CPU could really help you communicate with another processor.  With a traditional library, like Adafruit's NeoPixel code, interrupts are fully blocked while the LEDs update.  On an AVR-based Arduino board, where the peripherals have only 1 byte of buffering, that means you can't receive data while transmitting to the LEDs.

However, another new library I've been developing for nearly the last year may completely change your 2-chip paradigm!

This new audio library allows processing CD quality audio with the ease and simplicity you'd expect from Arduino.  That probably sounds too incredible to be true, but the catch is it only works on Teensy 3.1, running at 96 MHz with an ARM Cortex-M4 chip.  That's a similar chip to the M3 on Arduino Due, but the M4 includes special DSP accellerating instructions, which of course my audio library uses to good effect.

The audio library already has a 256 point FFT object, and a larger FFT object is planned.  The library can use the on-chip 12 bit ADC to receive audio, or an inexpensive shield provides 16 bit audio in & out.  The library provides a toolkit of audio processing objects, and connection objects, so you can link them together for automatic CD quality data flow as your Arduino sketch runs.  You never have to deal with moving fast data around (the library does it very efficiently).  You can just use FFT.available() in your loop() function to detect when the library has completed another FFT calculation.

With these 2 libraries, rather than dealing with 2 chips and the complexity of communicating lots of data, you could write a very simple Arduino sketch that simply checks FFT.available() and then FFT.read() the spectral data and calls leds.setPixel() many times to compose your output, and then leds.show() to update all those NeoPixels.  OctoWS2811 has double buffering, for awesome flicker-free animation, and the audio library automatically keeps processing incoming audio, to make this a very simple project.

I hope you'll take a look.  These libraries are open source, so you can get all the code to inspect.  Not only will they let you do this all on a single inexpensive board, but they'll make it far easier than any of the approaches you mentioned in this article.

If it works out well for you, I hope you'll help spread the word.  :)

Max The Magnificent
User Rank
Blogger
Re: Arduissimo is live
Max The Magnificent   5/2/2014 1:40:42 PM
NO RATINGS
@TonyTib: I've recommended they see if they can do a VAT-less version for us outside of the EU.

Cool Beans

TonyTib
User Rank
CEO
Arduissimo is live
TonyTib   5/2/2014 1:37:56 PM
NO RATINGS
on Indiegogo.  I've recommended they see if they can do a VAT-less version for us outside of the EU.


BTW, virtual peripherals have a long history: Scenix did it (Scenix did a 50MHz 8-bit PIC clone, then become Ubicom and created a 32-bit multi-threaded CPU with virtual peripherals, then went bankrupt and Qualcom bought the assets), the Parallax Propeller does it (and Parallax did a Scenix BASIC Stamp), and the XMOS chips do it.

 

Max The Magnificent
User Rank
Blogger
Re: If it ain't broke......
Max The Magnificent   4/30/2014 9:56:44 AM
NO RATINGS
@halherta: I think that UART and SPI are ideal for this sort of thing. Coming up with a custom protocol can be fun, but is unnecessary and will require a larger time investment to get it right.

Thanks so much for sharing your thoughts on this -- I shall take all of this into consideration -- watch this space to see what comes next...

Max The Magnificent
User Rank
Blogger
Re: Cow and Horse Manure
Max The Magnificent   4/30/2014 9:54:48 AM
NO RATINGS
@Douglas: ...you might want to give these folks a call: http://www.luminore.com/

Wow -- that's VERY interesting!!! Once I've finished creating my panels thsi coming weekend, I may well do so to see what they think.

Page 1 / 5   >   >>


EE Life
Frankenstein's Fix, Teardowns, Sideshows, Design Contests, Reader Content & More
Max Maxfield

Aging Brass: Cow Poop vs. Horse Doo-Doo
Max Maxfield
35 comments
As you may recall, one of the things I want to do with the brass panels I'm using in my Inamorata Prognostication Engine is to make them look really old. Since everything is being mounted ...

EDN Staff

11 Summer Vacation Spots for Engineers
EDN Staff
11 comments
This collection of places from technology history, museums, and modern marvels is a roadmap for an engineering adventure that will take you around the world. Here are just a few spots ...

Glen Chenier

Engineers Solve Analog/Digital Problem, Invent Creative Expletives
Glen Chenier
11 comments
- An analog engineer and a digital engineer join forces, use their respective skills, and pull a few bunnies out of a hat to troubleshoot a system with which they are completely ...

Larry Desjardin

Engineers Should Study Finance: 5 Reasons Why
Larry Desjardin
45 comments
I'm a big proponent of engineers learning financial basics. Why? Because engineers are making decisions all the time, in multiple ways. Having a good financial understanding guides these ...

Flash Poll
Like Us on Facebook
EE Times on Twitter
EE Times Twitter Feed

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)