[adrotate banner=”7″]

 
That being said on with today’s project, what we have here is a nano, an OLED screen and a little amplified electric microphone. So what are we gon na do with all this? You ask: we are going to make in our dueo based spectrum analyzer very cool, very easy I’ve seen a few of these done on YouTube. I check them out and they are all using this f IX, underscore FFT, fixed, fast, Fourier, transform library makes it really simple. Alright let’s check out and go over the hardware here, really quick. So we got the Nano from the Nano we have: 5 volt and ground going up to the bus. Now we have 5 volt and ground from the OLED going to the bus, 5, volt and ground from the microphone going to the bus. Now the microphone output, which is an analog output, feeds back into a 0 and, of course, for the OLED SDA comes over to a 4 and SCO goes over to a 5 and man that is it there ain’t nothing else to it now, for we go check Out the code take a look at this little microphone unit. This is a this is pretty nice. You want to focus today, really come on focus there you go. So this is the adjustable gain microphone name she’s got a little adjustment pot there and a nice little amplifier and like ice. This is from Lady ADA in New York City. Although I’m sure you could find one from our friends in China and speaking of our friends in China, I got a double thumbs up.

Announcement. Banggood has decided to sponsor me by sending me stuff to play with so I’m very excited about this. My first shipment of stuff to play with was shipped out today and today is the 27th of April, so we’ll see how long it takes to get here. I’M. Expecting four weeks all right on to the code. Alrighty let’s look at the code for the Arduino spectrum. Analyzer now the black magic which we’ll get to in a bit I’ve copied from a sketch by CB m80 Amiga on YouTube and the six FFT library is available here on github. So, first of all, we need to include the fix, FFT library, the SPI library, which you can probably admit if you’re running low, on memory, the I squared C library, which you cannot omit because we need it for the OLED, the Adafruit, graphics library. We need because we’re drawing things on the screen and the OLED driver, then we need to define this OLED reset for because the library uses it we’re not using it, then we’re going to declare an instance of the Adafruit SSD 1306 called lower case display with that Oled reset value – or you could just put 4 in there and be happy with it, we’re, going to declare a couple of data arrays for the FFT and a couple of variables for drawing the graphics and some counters that we will use to count. Now, in the setup we have serial begin at 9600.

You know because we always use our serial comms to debug we’re, going to start the display ssv 1306, which a PVC see what the hell that means, but it’s there anyway and for my particular display. We need that hex address, Oh x3c, because the Adafruit library looks forward to collects 3d a little display, setup and we’re going to set our analog voltage reference to default. So it uses the 5 volt reference. So now we’re going to come down here and we’re, going to set our minimum and maximum values for the analog to digital converter and then we’re going to take a hundred twenty eight samples from a zero and write them to Val and then we’re going to start Populating this array data with Val divided by four minus 128, to knock our frequencies out of there and then I am – will be equal to zero. Then we’re, just going to capture the minimum and maximum values we can use them. I didn’t use them here and then here is the six FFT which is performed on data, and I am with these other two arguments. If you want to know more about them, check out the FFT dot, cpp next we’re going to clear the display again and then we’re going to do this black magic. This is the part I got from CBM 80 Amiga interviewed that equal square root the data I times data – I plus I mi times i mi, and that supposedly filters out the low noise and Nam and then we’re going to draw our lines for each frequency.

We’Re. Breaking it out, as you see here into 64 separate frequencies, and it will draw a line for each one, based on the value of the line limit minus your data, then we’re going to put the cursor at the top princeton title and show what we got all Right, are you guys ready to see it in action power it up here and there you go. You can see that there, it says spectrum analyzer and you can see there’s just a little bit of noise there for me talking and whatnot how about we bring in some YouTube approved copyright, free music Applause. How about that an art, weena spectrum, analyzer it’s, even picking up my voice, hello, yep, picks up my voice, so there you have it. I hope you enjoyed it. If you did give me a big old thumbs up, don’t forget to subscribe so that you can win that power supply and feel free to comment. That’S.

 
 

[adrotate banner=”1″]

arduino fft Video

[mam_video id=5RmQJtE61zE]

 

 

[adrotate banner=”2″]

 

[mam_tag id=4132]

 

 

[adrotate banner=”3″]

 

arduino fft news

 

 

 

 

 

[adrotate banner=”4″]

 

 

arduino fft Social

 

 

[adrotate banner=”5″]

 

 

official.arduino
2019-10-02T19:32:52+0000

👋 Want to bring Tony Stark-like gesture control to your projects? Learn how with the BLE-enabled MKR WiFi 1010 and Nano 33 BLE Sense boards using the ArduinoBLE library.
official.arduino
2019-10-02T19:08:01+0000

Arduin-yo ho ho! A fairground favorite, the pirate ship is a fun way to explore the oscillation of a pendulum. How much fun, you ask? Access our Science Kit Physics Lab preview and see for yourself: http://bit.ly/2oC6L0Q

🔬 Now that you’ve gotten your feet wet, dive into the kit and enjoy all nine experiments. Order yours today: http://bit.ly/2MnQ7fr

Object @Generate 2015 (walking)

 

[adrotate banner=”6″]