Go Down

Topic: Arduino Multi-Tool (Spectrum analyzer, multimeter, slow oscilloscope) (Read 9600 times) previous topic - next topic

bilbo

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 (http://www.sparkfun.com/products/10168) 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 http://www.sparkfun.com/products/8745 ), a cywm6935 radio (AGH 2mm pins!! http://www.mouser.com/ProductDetail/Cypress-Semiconductor/CYWM6935/?qs=eg8mrW3YyI52eYLXBaGRLQ%3D%3D ), and these to connect to it: http://www.sparkfun.com/products/8732. 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:
youtube.com/watch?v=fKIXmWpsmYs
and the (lengthy, poorly documented) code is coming in the next few posts.
Thanks!
Alice asked the Chesire Cat, who was sitting in a tree, "What road do I take?"
The cat asked, "Where do you want to go?"
"I don't know," Ali

robtillaart

A small movie on youtube showing it alive and kicking?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

bilbo

Sorry, here is the code: http://codetidy.com/477 and video: youtube.com/watch?v=fKIXmWpsmYs
Alice asked the Chesire Cat, who was sitting in a tree, "What road do I take?"
The cat asked, "Where do you want to go?"
"I don't know," Ali

john44

hello,

  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?

john44


  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???

draythomp

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.
Trying to keep my house under control http://www.desert-home.com/

john44


draythomp

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?
Trying to keep my house under control http://www.desert-home.com/

bilbo

@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: http://hackaday.com/2011/07/25/arduino-powered-2-4-ghz-spectrum-analyzer/
Alice asked the Chesire Cat, who was sitting in a tree, "What road do I take?"
The cat asked, "Where do you want to go?"
"I don't know," Ali

Go Up