Go Back   IceInSpace > General Astronomy > Radio Astronomy and Spectroscopy
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread
  #1  
Old 29-02-2016, 09:25 AM
algwat (Alan)
Registered User

algwat is offline
 
Join Date: May 2012
Location: Melbourne, west
Posts: 286
RTL-SDR power spectrum

Gidday,

I got this working on my laptop.

https://github.com/pavels/spektrum

It reads the SDR data directly. So, can be back engineered to do radio astronomy things. I intend to combine this with an allsky camera to both radio and visual meteor detection , if possible.

regards, Alan
Reply With Quote
  #2  
Old 29-02-2016, 09:42 AM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108


Does this software store scans in suitable form for later processing?

When I was playing with 21cm receiver last year, this was the biggest problem, so I ended up using spectrum analyser as recording device, because it was easier than designing the detector, ADC etc..
The biggest drawback of that approach was huge power bill ( ~500W continuosly on for one month).

Last edited by bojan; 02-03-2016 at 08:05 AM.
Reply With Quote
  #3  
Old 01-03-2016, 10:03 AM
algwat (Alan)
Registered User

algwat is offline
 
Join Date: May 2012
Location: Melbourne, west
Posts: 286
Gidday Bojan,

Yes , the code can be added too to write a data file. In the screen shot I added a print line at the point the the data is being graphed to the screen.
This prints to the console, see the data values....

Some further thought as to a how to replay the data or send to a spread sheet, or other (Sky pipe?) would be needed.

regards, Alan
Attached Thumbnails
Click for full-size image (rtl-SDR-Screenshot.jpg)
208.6 KB46 views
Reply With Quote
  #4  
Old 01-03-2016, 10:35 AM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108
Sounds good

Two years ago (time flies!) I was scanning the sky on 1420MHz (link is here).
For each frequency band scan I used timestamp, frequency (actually position on the screen) and recorded level. Other parameters (Ref level, VBW, RBW, CF) were rrecorded with each scan readout
IMO, this was enough to construct the 21cm map of the southern sky..

Some results are presented below:
http://www.iceinspace.com.au/forum/s...4&postcount=74

I definitelly managed to observe the rotation of Milky Way

At firs I was considering Skypipe as a recording device but abandoned the idea mainly because I needed to build detector, ADC.. and I already had all that in a form of Spectrum Analyser (and associated HPIB controller).. so my approach at the time was much faster.

I would very much like to go to the next level with this work (motorization of the antenna, sky scanning..) but my experimental setup was simply too expensive (power bill).

Your work is giving me a new hope for cheaper gear and much easier data processing.
Reply With Quote
  #5  
Old 02-03-2016, 07:41 AM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108
Hi Alan,
I downloaded all and I have some troubles, probably not everything is placed in right folders..:

No library found for controlP5
No library found for rtlspektrum
Libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder.

Could you help?
Thanks!
Reply With Quote
  #6  
Old 02-03-2016, 07:59 AM
algwat (Alan)
Registered User

algwat is offline
 
Join Date: May 2012
Location: Melbourne, west
Posts: 286
Yeh, I had similar problems, let me get the info.

Did you get the master file from GITHUB, it has the source ode example and some of the library?

Will be a bit later today....

regards, Alan
Reply With Quote
  #7  
Old 02-03-2016, 08:46 AM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108
I downloaded all from GIT, just tried and ended up with those errors.

EDIT:
I found more here: https://github.com/pavels/rtl-sdr

Maybe this was missing?

By googling some more I found some promising apps:
http://eartoearoak.com/software/rtlsdr-scanner
http://zolli.altervista.org/rtl_sdr_...rum/index.html
https://github.com/keenerd/rtl-sdr
http://rfexplorer.com/touchstone/
https://github.com/xmikos/qspectrumanalyzer

The possible problem with them above is a general lack of source code.. so my hopes are with Pavel's code.
Attached Thumbnails
Click for full-size image (ScreenHunter_01 Mar. 02 08.45.jpg)
124.4 KB27 views

Last edited by bojan; 02-03-2016 at 09:12 AM.
Reply With Quote
  #8  
Old 03-03-2016, 09:11 AM
algwat (Alan)
Registered User

algwat is offline
 
Join Date: May 2012
Location: Melbourne, west
Posts: 286
Gidday Bojan,

Here is the simple steps to a working environment.

Get Processing 3.0.2 ( the latest download, either 64bit or 32bit version)
32bit is more portable to other users...later

expand to default locations, try to run an example sketch to test.

In the processing window menu , find
Sketch>import library>add library...

A list of many libraries appear...
Add ControlP5 library
Add Minim library

Find the location that these libraries are deployed to.
Should be something like the attached directory structure.

Add the spektrum library to this location as seen in the structure.

You may need to remove a controlp5 java exe from the spektrum library as we now should have the real bigger complete controlp5 that is used to build good user interfaces...

plug in you SDR. and try the example from pavel.

you could also download spekrtum-win64 the ready to work version, no source code though....

let me know, I should some what interactive today...
Attached Thumbnails
Click for full-size image (process-Screenshot.jpg)
61.1 KB26 views
Reply With Quote
  #9  
Old 03-03-2016, 09:21 AM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108
Thanks, I will try that later. I am on the meeting right now.
Reply With Quote
  #10  
Old 03-03-2016, 01:37 PM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108
Seems it wants to go to web server, but for some reason it can't.
Will try later from home

Source is more interesting, because I want the record in numerical form.. and probably a lot more that that .
In the meantime, I will try to play with compiled version.
Attached Thumbnails
Click for full-size image (spektrum.jpg)
125.4 KB30 views

Last edited by bojan; 03-03-2016 at 02:00 PM.
Reply With Quote
  #11  
Old 03-03-2016, 07:32 PM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108
Can't connect with server...
I will contact "Processing" guys for help

Last edited by bojan; 04-03-2016 at 07:07 AM.
Reply With Quote
  #12  
Old 04-03-2016, 08:04 AM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108
Precompiled version apparently works on my desktop, with DVB dongle.
Not sure if this is real, because previosly I couln't tune this dongle to 1.42GHz.

Terratec dongle (E4000) works OK (it needed drivers update), however the spektrum (no input) looks strange with those dips, this is probably interference from desktop.
However, with signal from network analyser (set to -50dBm) the screen looks more reasonable (display is interupted because the NA scans over the same frequency band with its own timing)
BTW, the input impedance of Terarec dongle at connector is around 25+j15ohms (it's supposed to be 75 ohms).. there will be a need for impedance matching to avoid standing waves on the cable, I can do it with resistive circuit (or 3-6dB pad) since I have plenty of gain available in LNA section so some loss at this location is acceptable.
Attached Thumbnails
Click for full-size image (ScreenHunter_05 Mar. 04 08.43.jpg)
118.5 KB39 views
Click for full-size image (ScreenHunter_09 Mar. 04 12.54.jpg)
132.1 KB18 views

Last edited by bojan; 04-03-2016 at 01:20 PM.
Reply With Quote
  #13  
Old 04-03-2016, 11:15 AM
algwat (Alan)
Registered User

algwat is offline
 
Join Date: May 2012
Location: Melbourne, west
Posts: 286
i am running the green noolec t2 , I think, but will be getting the newer blue or metal silver from based on this review info
http://www.rtl-sdr.com/rtlsdr4everyo...l-sdr-dongles/

a goood LNA is probably a must option now also.....

I a some small code additions to add buttons to move the freq window up and down by 2Mhz. Good for learning how this can be done. Will post soon

regaeds, Alan.
Reply With Quote
  #14  
Old 04-03-2016, 12:59 PM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108
For LNA, have a look at what minikits are offering:
http://www.minikits.com.au/

As for dongle, there are reports that RT820T based dongles are problematic at 1.4GHz and above, at elevated temperatres (not your problem, though).
http://www.rtl-sdr.com/tag/r820t/

Go for the one with TCXO.

Last edited by bojan; 04-03-2016 at 01:29 PM.
Reply With Quote
  #15  
Old 05-03-2016, 12:42 PM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108
Quote:
Originally Posted by algwat View Post
I a some small code additions to add buttons to move the freq window up and down by 2Mhz. Good for learning how this can be done. Will post soon

regaeds, Alan.
Some sort of ini file would also be good - currently it defaults to 88-108MHzn power up.
Also more different BW and averaging settings...

Existing "Relative mode" is actually calibration (with known noise source).
Reply With Quote
  #16  
Old 07-03-2016, 09:02 AM
algwat (Alan)
Registered User

algwat is offline
 
Join Date: May 2012
Location: Melbourne, west
Posts: 286
Gidday Bojan,

I have added five buttons that do,
- freq window shifting up and down
- widen or narrow freq window
- a basic preset button for Fav freq.

In the code at the top is the start and stop freq.
you can hard code for 1420Mhz like this 1420000000, double check the number of zeros..

I will place a link later today...

Also , ordered a Minikits LNA, here in a couple of weeks I hope.

regards, Alan
Reply With Quote
  #17  
Old 07-03-2016, 09:16 AM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108
Hi Allan,
Thanks for the update, those are good news

I spend my weekend fiddling with my spectrum analyser, attenuator control switch malfunctioned (it is a miracle it happened 35 years after manufacturing, considering the switch design).

I also had some progress with Processing at home - I managed to insert libraries (I had to disable firewall) but this was with 32-bit XP, the file structure is nothing like yours described earlier, and I couldn't locate where to put Pavel's libraries... It seems they are placed in some other user's directories... very strange.
Here at work (64bit w7 pro) I can't bypass company's firewall, so there is no hope Processing will ever work here. I wonder why this package is designed so, does it really need to have internet connection? I don't think so.
Is there a theoretical hope to use this code in some other environment? Visual C or Python or whatever, less spread all over the HD?

Anyway.. I hope I will have it all sorted in a day or two.

Last edited by bojan; 07-03-2016 at 09:43 AM.
Reply With Quote
  #18  
Old 07-09-2016, 07:33 AM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108
After some time I am back on this.. but still no joy...
It seems I can't setup the whole thing properly...
Attached Thumbnails
Click for full-size image (ScreenHunter_01 Sep. 07 07.20.jpg)
69.9 KB59 views
Reply With Quote
  #19  
Old 08-09-2016, 11:30 PM
mswhin63's Avatar
mswhin63 (Malcolm)
Registered User

mswhin63 is offline
 
Join Date: May 2009
Location: Para Hills, South Australia
Posts: 3,622
Hi Bojan, Have you looked at this site -

https://github.com/pavels/processing-rtlspektum-lib

seems the git hub name does not match the library but is from the same author.

Anyway good luck with it.
Reply With Quote
  #20  
Old 09-09-2016, 07:40 AM
bojan's Avatar
bojan
amateur

bojan is online now
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,108
Hi Malcolm,
yes, I know about this and I tried to place it here and there in subfolder architecture but no joy. It seems the material on github is not all that's needed.

I found another app (RTLSDR_Scanner), it is based on python v2.7... but again, some critical libraries are missing from installation so the package doesn't work on it's own. And when I found the instruction how to install missing library (mathplot) the installation refused because of some version issues.
It seems too often authors of open-source application are distributing half-baked products... or, the open-source environment can't keep the pace with speed of it's own evolution.. or most likely it's just me and my lack of patience and knowledge about programming

EDIT:
It was the lack of my patience... Also, Scanner executable must be placed in the subfolder created by extracting this archive: http://sdr.osmocom.org/trac/raw-atta...ithDebInfo.zip
Then apparently the application works (it seems it needs only MSVCR100.DLL from that package to run).
Author also published the source code...

It is possible to export the averaged scan (in numerical form, with timestamps) on HD for further processing, export in cvs format is provided in the main menu. To save the whole session, option "retain previous scans" must be enabled.

Below is example of collected data:

Time (UTC) Frequency (MHz) Level (dB/Hz)
1473388402 921 -34.7319
1473388402 921.002 -35.1576
1473388402 921.0039 -35.111
1473388402 921.0059 -35.0486
1473388402 921.0078 -35.0936
1473388402 921.0098 -35.1501
1473388402 921.0117 -35.0163
1473388402 921.0137 -34.9843

I am still not sure about the time stamp format.

This is actually the amount of data I was collecting with my HP setup two year s ago (and almost went bankrupt because of el power bill )

Last edited by bojan; 09-09-2016 at 01:58 PM.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time is now 11:18 AM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Advertisement
Bintel
Advertisement