Arduino Multi-Tool (Spectrum analyzer, multimeter, slow oscilloscope)

Hi All, I posted this a while ago, but there have been some updates, plus a video, and code that works well-ish. I have finished the first stage of my does-a-ton-of-stuff arduino project, which right now is just a handheld wireless spectrum analyzer, multimeter and oscilloscope. Basically, it is a red cardboard sparkfun box breadboard (box broke) with an LCD ( and a button on the front . Inside, there is an arduino, a sparkfun logic level converter (i was too lazy to wire up the mosfets myself ), a cywm6935 radio (AGH 2mm pins!! ), and these to connect to it: Eventually, i want it to be a nice portable tool that prevents me from having to buy many seperate tools or an expensive multi-function one like the dso nano (but if I had $90 believe me, i would buy it in a nanosecond), plus i made it, which is always fun. The code is below, any ideas for what else i should make it do? Heres the video: and the (lengthy, poorly documented) code is coming in the next few posts. Thanks!

A small movie on youtube showing it alive and kicking?

Sorry, here is the code: and video:


I'd like you to describe the operational buttons. Is it two? Is it first interrupt "PWM pin2" is zero interrupt and on this pin connect the input wave, receive signal? Furthermore, the "MODECOUNT 5" is digital pin 5? on this pin connect the switch button?

Is it right this change,

unsigned char s = RADIO_RSSI(n);

unsigned char s = analogRead(n);

to read from analog “PWM pin 2” -zero interrupt a wave???

This is cool. Fun project that will actually do something for you. However, looking at the parts list, haven't you already bought a nano?? But, that wouldn't be nearly as much fun.

No, I have an arduino mega only, it need a nano?

Naw, I was kidding around. The total cost of components probably adds up to the cost of a dso nano meter already. But like I said, where's the fun in that?

@draythomp, I'm confused. A dso nano is an oscilloscope, this is an RF spectrum analyzer. Very different. Plus, this cost me about $20 to make, and a DSO nano is 90. Certainly would be nice if it was 20 though. If you're referring to the oscilloscope part of the project, the Atmega 328 is capable of something along the lines of 75k samples per second, whereas the DSO is capable of quite a bit more.

John44, I'm afraid you can't use my code as an electrical spectrum analyzer without some significant additions. I use the CYWM module to scan each frequency for me, which is a whole different animal from electrical signal spectrum analysis. Check out FFT for that. If you just want to graph ADC voltage on a display, you can use the graph function i already wrote in my code. MODECOUNT is a defined constant, saying that there are 5 different modes. Also, there is a more recent version of the code and hardware here: