Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • CorBee's Avatar
    10-07-2019, 06:11 AM
    This is another option
    6 replies | 69 view(s)
  • CorBee's Avatar
    10-06-2019, 04:23 PM
    Yeah, in the GUI they do not show until you place the component on the drawing-board.
    6 replies | 69 view(s)
  • CorBee's Avatar
    10-06-2019, 04:08 PM
    Hi, This should work, you only need to set the mixer-values to get the signal more/less on right/left. regards Cor
    6 replies | 69 view(s)
  • CorBee's Avatar
    09-26-2019, 05:18 PM
    CorBee replied to a thread Bat detector in Audio Projects
    When you look at the schematic it is not clear.
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-26-2019, 04:46 PM
    CorBee replied to a thread Bat detector in Audio Projects
    The digital stream is MONO when using MIC_IN according to me. The docs tell that we can even switch to a LEFT_ONLY mode when using MIC_IN. This is controlled in bit 6 of the CHIP_ANA_POWER register. In the current setup...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-26-2019, 05:20 AM
    CorBee replied to a thread Bat detector in Audio Projects
    When line-in will be used for tests be aware that there are quite some reports on the difference between the line-input L and R see: https://community.nxp.com/thread/467119 It seems line-in L has cross-over talk from...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-26-2019, 04:24 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi at Thanks for that info. I was simply not aware of that and after reading up on the internet I see the 1st harmonic is used as another name for the fundamental-frequency. My explanation of what was tested is...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-25-2019, 10:31 AM
    CorBee replied to a thread Bat detector in Audio Projects
    REF_CTRL, 1st/2nd HARMONIC This is the final part of the analysis based on the files Edwin has collected for many different samplerates, gains and REF_CTRL settings. The graph below shows on the Y-axis the value in...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-24-2019, 05:45 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, Its Edwin's setup and the reason for the relay is simple ... we needed to be able to record many test-sequences in a row without having to manually connect/disconnect anything. Collecting many 100s of files needs...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-24-2019, 05:23 PM
    CorBee replied to a thread Bat detector in Audio Projects
    You can read that all in the first posting I made after we have done the tests, post #464.
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-24-2019, 05:18 PM
    CorBee replied to a thread Bat detector in Audio Projects
    We have not used the MIC and preamp in our tests ...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-24-2019, 05:05 PM
    CorBee replied to a thread Bat detector in Audio Projects
    The current BIAS is part of the REF_CTRL setting of the SGTL. Default it is set to 2 which means 12.5% above nominal. This setting can be changed to 0% (nominal) and down to -50%. We have tested this but the effects...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-24-2019, 05:01 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, I am sure Edwin will have a look at your remarks. And when you build one, it will be absolutely simple to switch to line-input and no-gain is a software setting ! Cor
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-24-2019, 03:37 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, I think now understand your question. The narrow peaks you see are not visible in the spectra I have seen, they might be present but can also be swamped by other noise. We have looked at disabling the HP before...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-24-2019, 03:16 PM
    CorBee replied to a thread Bat detector in Audio Projects
    I have seen those before, but it does not answer (at least for me) what you would like to see from the samples we collected. You want to see a spectrum of the so-called "silence" ?
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-24-2019, 02:46 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi Chip, Thanks for having a look. Going through the bullets although I dont mind getting these ;) 1) I was using contrast as a term as we simply show the difference between for instance peakvalues and the...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-24-2019, 06:13 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Noise in the silent sections After splitting the wav-files into signal and "silence" I calculated the median and the 5%,95% percentiles of the "silence" to get an idea of the bandwidth of the noise. The above...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-24-2019, 05:05 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi Welcome to this forum ! I am interested to hear and see your progress in building the batdetector. Several people have been building the system using either the transistor or the IC opamp and it would be nice to...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-22-2019, 06:47 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi Walter, I know you did those tests but the discussion at that time more or less ended rather fast. Since we had all this data - with the purpose of testing the effects of using REF_CTRL - I thought it would be...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-22-2019, 03:38 PM
    CorBee replied to a thread Bat detector in Audio Projects
    REF_CTRL tests The REF_CTRL setting on the SGTL5000 has two parts that can be changed, the VAG (VAG is the internal voltage reference for the ADC and DAC) and BIAS which controls the bias currents for the ADC). The...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-22-2019, 03:09 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Testing the frequencyresponse We are using the SGTL5000 well above its normal specifications to record the frequencies of the incoming signals. Since it was unclear if the SGTL5000 could handle all frequencies equally...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-22-2019, 02:34 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi Remis, Maybe wait with this until you have been able to inspect the results of this work ... I am going to show step by step the process and the results. Doing this all in a single post would be too long ;)
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-22-2019, 02:33 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Initial Processing The WAV files were directly loaded into the jupyterlab-environment using the SciPy library. After loading the data was scaled to a maximum -1..1 range by dividing with 32768. All data was then...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-22-2019, 01:47 PM
    CorBee replied to a thread Bat detector in Audio Projects
    What happened before ? At the beginning of september I tested if changing the MIC_CTRL and REF_CTRL settings on the SGTL5000 had effects on signalstrength and spectrum. My tests were showing clear effects but it was...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-15-2019, 12:31 PM
    Hi Thanks for the reply. As I was going through the possibilities for the bat-detector playing so playing CLK_CTRL settings was something I had not tried yet. It was the difference in harmonics between 44.1Khz and...
    14 replies | 855 view(s)
  • CorBee's Avatar
    09-15-2019, 07:32 AM
    Hi, Just by chance I see you have been testing different setups to change the samplerate, have you done any further work on this ? One of odd things your spectrum graphs show is that with a SR of 44.1Khz (default for...
    14 replies | 855 view(s)
  • CorBee's Avatar
    09-08-2019, 08:27 AM
    This is the output I get (I tried with teensy3.1 but this gives the same issues as teensyLC) compilation terminated. Archiving .pio/build/teensy31/lib08f/libWire.a Indexing .pio/build/teensy31/lib08f/libWire.a...
    21 replies | 277 view(s)
  • CorBee's Avatar
    09-08-2019, 07:49 AM
    Hi, I just tried to use your code and got the same errors. The direct link between NXPmotionSense and util/crc16 seems to be inside Nxpmotionsense.cpp. Just adding CRC16.h to your project does not seem to solve this...
    21 replies | 277 view(s)
  • CorBee's Avatar
    09-08-2019, 06:46 AM
    Can you share your full code ?
    21 replies | 277 view(s)
  • CorBee's Avatar
    09-08-2019, 06:02 AM
    You could simply copy this: https://github.com/PaulStoffregen/cores/blob/master/teensy3/util/crc16.h into the library-section of your project as a fast solution
    21 replies | 277 view(s)
  • CorBee's Avatar
    09-08-2019, 05:39 AM
    If you look at: https://github.com/PaulStoffregen/NXPMotionSense/blob/master/examples/CalibrateSensors/CalibrateSensors.ino You see that the program starts with: #include <NXPMotionSense.h> #include <Wire.h>...
    21 replies | 277 view(s)
  • CorBee's Avatar
    09-07-2019, 04:20 PM
    if you look at the examples in the github for this library you will find out ...
    21 replies | 277 view(s)
  • CorBee's Avatar
    09-07-2019, 03:22 PM
    Just open the embedded terminal in VSCODE (rightmost icon on the statusbar on the bottom)
    21 replies | 277 view(s)
  • CorBee's Avatar
    09-07-2019, 01:13 PM
    Question is if the nxpmotionsense lib has been installed from platformIO or not PlatformIO has a system to install libraries, you can first check from the terminal if a library exists: $platformio lib search...
    21 replies | 277 view(s)
  • CorBee's Avatar
    09-07-2019, 11:41 AM
    Hi, In the dependency-graph you see its using <NXPMotionSense> 1.0 and states that the function _crc16_update (from which library ?) was not declared. So NXPMotionSense must be depending on another library. Why did...
    21 replies | 277 view(s)
  • CorBee's Avatar
    09-07-2019, 11:18 AM
    Hi, If you want specific libraries to be used you can edit the platform.ini of your project (you need to first create a project), here's an example of one of my platform.ini files where I do use a specific directory...
    18 replies | 1621 view(s)
  • CorBee's Avatar
    09-06-2019, 09:27 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, If anybody is willing to do such a test and record the data in a raw-audio file I will be volunteering to do the analysis of the datasets in a standardized way. For this I will be studying some python code to...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-06-2019, 07:10 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, I invite anybody who has this kind of equipment to try and test this. For me this was a test and I am allready happy with the progress I made. Another option would be to generate (using the SGTL5000) a sine,...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-06-2019, 05:46 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, Isnt the data you can see in the files (raw files on github) allowing that ? Cor
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-05-2019, 06:43 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi Remis, I do not have equipment to do that kind of testing but maybe others can. The "generator" is as stated a simple MCU generating a PWM signal for a given frequency that is than transmitted using a UST. The...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-05-2019, 09:01 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, In the past few days I have been trying to find out if the settings for the microphone on the SGTL5000 codec can be changed to improve the quality of the incoming ultrasound signals. For this I have used a...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    09-03-2019, 04:07 PM
    That can be done also using PlatformIO but its always wise to follow a choice you are allready accustomed to. I merely wanted to signal that PlatformIO is often overlooked whilst it can make things (especially when you...
    26 replies | 273 view(s)
  • CorBee's Avatar
    09-03-2019, 01:49 PM
    Try using PlatformIO from within VisualCode ... it will make uploading very simple.
    26 replies | 273 view(s)
  • CorBee's Avatar
    09-01-2019, 10:25 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, I have uploaded the source an hex to Github. No major changes, some cosmetic improvements in the screens (settings). Added a option to change the libraries used during compilation, #define COMPILER xxxx. As I...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    08-31-2019, 02:38 PM
    I am using PlatformIO in MS Visual Studio Code for some time to program a Teensy 3.6 and I have seen that support for the teensy 4.0 has been added recently:...
    11 replies | 621 view(s)
  • CorBee's Avatar
    08-25-2019, 06:09 AM
    Hi, I have recently added a Lipo to a Teensy Batdetector (see https://forum.pjrc.com/threads/38988-Bat-detector). Next step was adding a simple routine that keeps track of the voltage coming from the Lipo to the...
    0 replies | 46 view(s)
  • CorBee's Avatar
    08-24-2019, 08:48 AM
    CorBee replied to a thread Bat detector in Audio Projects
    I think Edwin has removed C2 from his design later on. But the simulation with LT-spice does show this is probably not going to change the amplification
    527 replies | 36994 view(s)
  • CorBee's Avatar
    08-24-2019, 08:13 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, The amplitude will be depending on the distance from the key-ring to your detector, the loudness of your ring (intensity), the gain for the one-transistor amplifier (which design ?) and the mic_gain setting of...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    08-24-2019, 06:28 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, I have just uploaded a proper working hex and also updated the sourcecode. In the lib subdirectory I have added the most recent setup of the libraries I am using for those that are compiling the sourcecode...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    08-24-2019, 06:06 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, Comparing detectors is not a very simple thing unless it is done in a controlled environment. Can you tell which pre-amplifier you used ? How is your microphone constructed ? Frank (DD4WH) has posted some tests...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    08-23-2019, 03:28 PM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, Without me realizing V096 suddenly had a problem when used. So currently I have pulled off both the source and hex from the site until the repair is done ... regards Cor
    527 replies | 36994 view(s)
  • CorBee's Avatar
    08-23-2019, 06:38 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, I have just uploaded both the source and the compiled hex for V096. As mentioned before this contains a large amount of changes. Edwin (pe1pwf) and Seriesman71 have been testing this also and I hope this works...
    527 replies | 36994 view(s)
  • CorBee's Avatar
    08-23-2019, 05:29 AM
    CorBee replied to a thread Bat detector in Audio Projects
    Hi, Thanks to @Seriesman71 and @pe1pwf for testing, I will try today to wrap up the work on 0.95 and release the sourcecode and an updated hex. The current hex will be removed as it still contains some issues. ...
    527 replies | 36994 view(s)
No More Results
About CorBee

Basic Information

About CorBee
Location:
Netherlands

Statistics


Total Posts
Total Posts
257
Posts Per Day
0.52
Last Post
Is there a way to isolate/swap/boost just the left or right channel? 10-07-2019 06:11 AM
General Information
Last Activity
Today 03:27 PM
Join Date
06-12-2018