Thursday, August 4, 2011

Source Code for GUI

Hosted here: https://github.com/goretkin/soundcard-radar

10 comments:

  1. >>https://github.com/goretkin/soundcard-radar
    >>spectrum.py

    Hi,Gustavo
    It's very good! I really enjoy it.
    I want to run your spectrum.py. But I did not have the sound input and hardware.
    So, I want to run spectrum.py with the recorded wav file. How can i get the wav file e.g.: radar20110120_103812_proc.wav'

    thanks & Regards
    eric.

    ReplyDelete
  2. Hi Eric,

    A link to that particular wave file exists here: http://goretkin.blogspot.com/2011/01/on-cars.html

    That file was acquired with the kit in Doppler mode (not ranging). The flags need to be set accordingly as follows:

    #only one of the two should be set True
    LIVE_INPUT = False #capture from soundcard
    PLAYBACK_RECORDING = True #playback a recorded PCM .wav file

    RADAR_RANGING = False #Doppler or Ranging?

    Let me know if there's anything else!
    Gustavo

    ReplyDelete
  3. Hi,Gustavo
    Happy new year!!!
    I download and add the audio,
    But It seems can't work.

    LIVE_INPUT = False
    PLAYBACK_RECORDING = True
    RECORD_LIVE_INPUT = False
    RADAR_RANGING = False

    log:
    IOError: [Errno Invalid output device (no default output device)] -9996

    My email:helloeric2008@gmail.com

    Thanks & Regards
    Eric.

    ReplyDelete
  4. Hi Eric,
    That's a problem in the pyaudio configuration, and I'm not sure how to resolve it. You can try these examples [1] and see if there's a problem there too.

    [1] http://people.csail.mit.edu/hubert/pyaudio/#examples

    ReplyDelete
  5. Eric, are you using the Enthought Python Distribution by any chance?

    ReplyDelete
  6. I directly installed the epd-7.2-1-rh5-x86.sh
    Thanks for your heartly support.

    ReplyDelete
  7. Did you try the examples on the PyAudio page? I experienced a similar problem with epd too, but I never got it resolved. I resorted to using my own Python installation. I think Ubuntu had all the packages I needed for this project.

    ReplyDelete
  8. Yes, I ran the examples(play and Record), It works well on my PC.
    I am checking the source code and trying to fix the problem now. I will update my investigation state.

    keep in touch:)

    ReplyDelete
  9. Can any one explain how to use the source code from beginning please?

    ReplyDelete
  10. Hello Gustavo.. I am from india... i am electrical engineering student.. I am working on the coffee canes radar.. But i don't have any such matlab programming and codes of this project.. and the second one is we have different voltage & frequency in india..230 voltage, 50 Hz fre. So tell me that any changes in output for radar for 230V ,50 Hz compare with yours 110 V,60 Hz .. plz i request you for give me programs and codes for my better work... thank you

    ReplyDelete