Forum Rule: Always post complete source code & details to reproduce any issue!
Page 2 of 2 FirstFirst 1 2
Results 26 to 37 of 37

Thread: AudioSDR - A single Audio block SDR (software defined radio) processor/demodulator

  1. #26
    Senior Member
    Join Date
    May 2016
    Posts
    245
    @robjohn...
    Nice looking unit. I really like the simplicity of your panel and display!! My unit(s) are still being built on protoboards with hand wiring underneath.

    I'll be delighted to share my control/display software with you. However, it's continually being updated, and is not quite as clean as I would like before being released. For example, I've (just this week) added a menu sytem for adjusting operating mode/band/adjusting operating parameters etc. It's working well but the code is still a bit untidy. It's a work-in-progress and always will be.
    The other thing is that the code is closely tied to my hardware. For example, I use an I2C port expander to communicate with the tactile switches on the front panel, and I have a home-brew RF front-end with an "SDR Cube" (which has 0/6/10/16 dB atten, and 4 octave-wide BPFs) and I use another port expander to control that. I am also using direct quadrature generation from the SI5351 (without the "divide by 4"). So you may have to make quite a few adjustments.

    How should we proceed? I'll start by uploading the SI5351 libraries to GitHub tomorrow. Maybe we should continue by PM? It'll take me a day or so to package up all my libraries...

    The things I'm working on right now are:
    1) Improving the panadapter display (graphics, smoothing, and algorithm). I had to compromise with the T3.6, but the extra speed of the T4 opens up new possibilities.
    2) As you say, the AM demod is not as clean as it might be, although I get a 120 Hz hum on the audio. It should be the simplest demodulator - it is just a quadrature envelope detector - but it has given me the most problems. Also, I'm not happy with the capture range in the PLL used in the SAM detector, and am looking at that.
    3) A bigger project is the design of a proper adaptive audio noise reduction filter. At the moment it simply uses the notch filter in an enhancement mode.

    BTW - what display are you currently using? Is it the PJRC ILI9341 2.8". I ask because I'm planning to move up to a 3.5", which will mean yet another bunch of software changes. It just never ends...

    Derek

  2. #27
    Junior Member
    Join Date
    Mar 2019
    Posts
    15
    Hi Derek
    The unit is only tidy on the outside using the ILI9341 3.5" with adafruit lib, has lots of nice fonts to choose. The serial interface does generate RFI though.

    Interest is mainly your audioSDR functions. My first coding attempt with PJRC audio library was a simple DC IF SSB demod phasing method but image reject was poor and never got round to figuring out AM. Then found yours to try and was fairly straightforward to implement. I have buttons to scroll through the detectors and BW. Should I be able to compile code for the panadapter? I took code from the doc but there's nothing in the lib header files for panadapter.

    I will definitely try out any updates you post, especially AM, panadater, AGC bar-graph and library for the SI5351 tuning.

    Cheers Rob

  3. #28
    Rob or anyone who cares to reply:
    Does anyone have a sketch that implements a. complete ssb/cw receiver using rhis library? I'd like to load it up and use it as a starting point for my own development.

    Regards
    Joe

  4. #29
    Junior Member
    Join Date
    Mar 2019
    Posts
    15
    Hi Joe

    Hmm, been several months since last comment, time fly's!
    I would highly recommend checking out Charlie Morris SDR projects, he has some great YouTube tutorials too.
    My efforts are built from this project.. https://zl2ctm.blogspot.com/2018/03/...03884390041220

    Regards, Rob

  5. #30
    Thanks Rob,
    Actually, I'm looking for an example sketch using DerekR's SDR Radio Library.

    Anyone?

    Joe

  6. #31
    Junior Member
    Join Date
    Jul 2020
    Posts
    1
    https://github.com/DerekRowell/AudioSDR Has some example sketches. There is also a document that has code snippets and a complete list of all the functions with a description in the DOC folder.

  7. #32
    Yes, anyone who knows the library exists will have seen these partial functionality test sketches. I was looking to see if anyone has built a complete radio system, along with their account of how the process went and how well the final result turned out. I have some questions that only someone who has actually done it (or the author) could answer.

    Thanks
    Joe

  8. #33
    Member
    Join Date
    Apr 2020
    Location
    Guelph Ontario Canada
    Posts
    66
    I've got a functional SDR up and running but would like to run this code ... Currently running teensy 4.0 / QRP Labs quadrature receiver and SI5351... my issue is I can't get it to compile due to the streaming.h file is missing .. I went into AudioLib and remarked out the streaming.h file ...however its still reporting the file missing .. I checked the AudioLib again and the streaming.h file is rem'd out ...am I missing something ?

    Thanks

    code looks great ! .. nice library you have created ...looking forward to running it up

  9. #34
    Member
    Join Date
    Apr 2020
    Location
    Guelph Ontario Canada
    Posts
    66
    Well ... I built the ZL2CTM time domain processing SDR .. but have scaled it up to a 5" touchscreen ..Spectrum display and Waterfall display, I'll let you know how it goes as a lot of my touchscreen will need to be re-mapped to leverage the features of Audio SDR.

    I have a step by step build post on the FB " Amateur QRP Radio" forum .. dated August 9 of this year .. if you have all the parts assembled you can build in in a long weekend..

    https://www.facebook.com/groups/qrpr...19924171604479

  10. #35
    Member
    Join Date
    Apr 2020
    Location
    Guelph Ontario Canada
    Posts
    66
    okay issue resolved ...had 2 copies of the library .. edited the wrong one ...(and then promptly deleted it when I figured it out) ..please ignore my post above

  11. #36
    Member
    Join Date
    Apr 2020
    Location
    Guelph Ontario Canada
    Posts
    66

    Some help on compiling AudioSDR to t4.0

    Okay .. teensy 4.0 .. followed the instructions for moving the files to the appropriate directories..(however 3 of the files were placed in the teensy3 directory .. not sure how to deal with the teensy 4 in this case..
    could use some direction ..not sure if Derek is around ...

    however I'm getting a compiling error AudioSDR.h ...
    .
    In file included from E:\libraries\AudioSDRlib/AudioSDRlib.h:1:0,from E:\AudioSDR\EXAMPLES\BareBonesWSPR\BareBonesWSPR.i no:5:

    E:\libraries\AudioSDRlib/AudioSDR.h: In member function 'float32_t AudioSDR::fast_sqrt_f32(float, int)':

    THE 2 BELOW ARE WARNINGS

    E:\libraries\AudioSDRlib/AudioSDR.h:381:34: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    uint32_t val_int = *(int*)&x; // Same bits as in the float, but as an int
    ^
    E:\libraries\AudioSDRlib/AudioSDR.h:383:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    out = *(float*)&val_int;
    ^
    Sketch uses 49888 bytes (2%) of program storage space. Maximum is 2031616 bytes.
    Global variables use 98996 bytes (18%) of dynamic memory, leaving 425292 bytes for local variables. Maximum is 524288 bytes.
    Last edited by Keith_M; 09-15-2020 at 02:19 AM. Reason: correction

  12. #37
    Member
    Join Date
    Apr 2020
    Location
    Guelph Ontario Canada
    Posts
    66

    ISSUE Resolved

    Issue resolved .. after reading some remarks in the AudioSDR.H File .. this does generate a compiler error but apparently ... ( its okay) ....

    So will test and see what happens ..

    please dis-regard my post re compiling error above ..

    Thanks
    K

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •