0
Offline
Sr. Member
Karma: 1
Posts: 360
I'm 15. I like making things. I like breaking things better.
|
 |
« on: February 17, 2011, 09:52:37 pm » |
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=fKIXmWpsmYsand 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," Alice answered. "Then," said the cat," it really doesn't matter, does it?"
-Lewis Carrol
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 91
Posts: 9449
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #1 on: February 18, 2011, 06:39:12 am » |
A small movie on youtube showing it alive and kicking?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Sr. Member
Karma: 1
Posts: 360
I'm 15. I like making things. I like breaking things better.
|
 |
« Reply #2 on: March 15, 2011, 09:20:47 pm » |
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," Alice answered. "Then," said the cat," it really doesn't matter, does it?"
-Lewis Carrol
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #3 on: October 18, 2011, 05:18:40 am » |
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
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #4 on: October 18, 2011, 06:16:32 am » |
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
God Member
Karma: 15
Posts: 876
Arduino rocks
|
 |
« Reply #5 on: October 18, 2011, 03:20:50 pm » |
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
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #6 on: October 19, 2011, 04:38:58 am » |
No, I have an arduino mega only, it need a nano?
|
|
|
|
|
Logged
|
|
|
|
|
New River, Arizona
Offline
God Member
Karma: 15
Posts: 876
Arduino rocks
|
 |
« Reply #7 on: October 19, 2011, 12:39:06 pm » |
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
|
|
|
|
|
0
Offline
Sr. Member
Karma: 1
Posts: 360
I'm 15. I like making things. I like breaking things better.
|
 |
« Reply #8 on: October 20, 2011, 07:36:55 pm » |
@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," Alice answered. "Then," said the cat," it really doesn't matter, does it?"
-Lewis Carrol
|
|
|
|
|