Pages: [1]   Go Down
Author Topic: Arduino Multi-Tool (Spectrum analyzer, multimeter, slow oscilloscope)  (Read 8251 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Sr. Member
****
Karma: 1
Posts: 360
I'm 15. I like making things. I like breaking things better.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
« Last Edit: March 15, 2011, 09:22:31 pm by bilbo » Logged

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

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12425
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A small movie on youtube showing it alive and kicking?
Logged

Rob Tillaart

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

0
Offline Offline
Sr. Member
****
Karma: 1
Posts: 360
I'm 15. I like making things. I like breaking things better.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry, here is the code: http://codetidy.com/477 and video: youtube.com/watch?v=fKIXmWpsmYs
Logged

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

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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

New River, Arizona
Offline Offline
God Member
*****
Karma: 16
Posts: 906
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Trying to keep my house under control http://www.desert-home.com/

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

New River, Arizona
Offline Offline
God Member
*****
Karma: 16
Posts: 906
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Trying to keep my house under control http://www.desert-home.com/

0
Offline Offline
Sr. Member
****
Karma: 1
Posts: 360
I'm 15. I like making things. I like breaking things better.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@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/
Logged

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

Pages: [1]   Go Up
Jump to: