Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: WMXZ

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: Bat detector

    by WMXZ
    Replies
    974
    Views
    202,235

    Logarithmic frequency scales are very common in...

    Logarithmic frequency scales are very common in bio-acoustics as they reflect the hearing capabilities of animals.
    However FFT is common in signal processing as it is fast but results in a linear...
  2. You have also to consider the AudioInputI2S that...

    You have also to consider the AudioInputI2S that configures the SGTL5000
  3. The I2S microphone has LSB bot 0 while the...

    The I2S microphone has LSB bot 0 while the I2SInput (from audio library) uses as LSB bit 16 (uses top 16 bit)
    you can hear only very loud signals
    test: hit on microphone, you should hear something....
  4. AFAICS, usb_mtp_status is only introduced in...

    AFAICS, usb_mtp_status is only introduced in latest beta.
    At least, on my production system TD 1.56 it is not there
  5. Not sure if the RAWHID_* and DEVICE_ * are needed...

    Not sure if the RAWHID_* and DEVICE_ * are needed and what they are doing
    they com from USB_EVERYTHING

    they are used in part for
    USB_SERIAL_HID (DEVICE_*)
    USB_RAW_HID (RAWHID_*)
    but...
  6. One issue with MTP+Serial is that it uses for the...

    One issue with MTP+Serial is that it uses for the moment the PID of Everything
    Even if MTP+Serual is not yet ready to be included for full, I continue to suggest that Paul defines a dedicated PID,...
  7. About 3 years ago, I made a FAT free FS called...

    About 3 years ago, I made a FAT free FS called ZeroFS
    https://github.com/WMXZ-EU/zeroFS
    Not that I suggest you to use this, but it may be easier to digest what I did than analysing FatFs
    In...
  8. Replies
    2
    Views
    149

    search forum for MTP

    search forum for MTP
  9. Replies
    8
    Views
    203

    From T4.1 card, I see SCK,MOSI,MISO...

    From T4.1 card, I see
    SCK,MOSI,MISO
    SCK1,MOSI1,MISO1
    SCK2,MOSI2,MISO2

    You should be able to use any set for talking to uSD cards
    HOWEVER, you must then adapt the SD card interface accordingly....
  10. Replies
    8
    Views
    203

    For SPI, you always should check that...

    For SPI,
    you always should check that CLK,MOSI,MISO and chip select of your board correspond to your program. The Teensy card may help to figure out the standard values.
  11. Thanks Bill, I tried with new disk and it worked...

    Thanks Bill,
    I tried with new disk and it worked also here.
    sane configuration (SdFat 2.1.2, Teensyduino 1.56 with Arduino 1.8.19)
    must have screwed up my earlier testing.
  12. Just downloaded actual version and without...

    Just downloaded actual version and without further editing of SdConfig.h and activating build-in debug messages, I get

    test exFAT logger
    sd.begin() done
    file FILE_A.txt, pos=8192, adding 8192...
  13. @sicco You can easily switch on the internal...

    @sicco
    You can easily switch on the internal debug information of SdFat by uncommenting
    setting

    #define USE_DBG_MACROS 2

    in

    ...\hardware\teensy\avr\libraries\SdFat\src\common\DebugMacros.h
  14. OK, as the teensy loader can do more than simply...

    OK,
    as the teensy loader can do more than simply loading, so it is significant IP of PJRC.
  15. No, but there are different versions of *cli.exe,...

    No, but there are different versions of *cli.exe, that you can use to experiment
  16. I remover the two files and restarted program ...

    I remover the two files and restarted program

    test exFAT logger
    sd.begin() done
    file FILE_A.txt, pos=8192, adding 8192 bytes, written 8192
    file FILE_B.txt, pos=8192, adding 8192 bytes, written...
  17. I tried the example it fails here with ...

    I tried the example
    it fails here with

    FFFFFFFF EB3A9
    DBG_FAIL: ExFatPartition.cpp.195
    DBG_FAIL: ExFatFileWrite.cpp.108
    DBG_FAIL: ExFatFileWrite.cpp.663
    file FILE_A.txt, pos=65536, adding...
  18. I could not resist to adapt to Teensy 4.0 with...

    I could not resist to adapt to Teensy 4.0 with AudioCard

    /**
    * @brief Circular Buffer definitions
    *
    */
    #define NBUF_ACQ 70
    #if defined(ARDUINO_TEENSY41)
    ...
  19. Replies
    29
    Views
    601

    Suggest to inspect main.cpp in both ...

    Suggest to inspect main.cpp in both
    ....\hardware\teensy\avr\cores\teensy(3/4)
    which does what joepasquariello described
  20. Replies
    6
    Views
    160

    It would be important that you also provide a...

    It would be important that you also provide a copy of the compiler output (including errors and warnings)
  21. Here is the version that writes directly to csv...

    Here is the version that writes directly to csv files


    /**
    * @brief Circular Buffer definitions
    *
    */
    #define NBUF_ACQ 70
    #define MAXBUF (10*512)
    EXTMEM char...
  22. this way you may need a more complex program: -...

    this way you may need a more complex program:
    - acquire data and control vehicle.
    - convert data.
    of course, you can download two different programs, 1 for acquisition and one for converting.
    but...
  23. Yes that is the idea, you want size to be a...

    Yes that is the idea, you want size to be a multiple of 10 and a multiple of 512 (128 *4)



    If you have the possibility, I would take the disk out from teensy ad plug into PC.
    Alternatively you...
  24. As a proof of concept I compiled the following ...

    As a proof of concept I compiled the following


    /**
    * @brief Circular Buffer definitions
    *
    */
    #define NBUF_ACQ 10
    #define MAXBUF 1280
    EXTMEM uint32_t...
  25. IMO, you should redesign your approach to use...

    IMO, you should redesign your approach to use interrupts even if that happens 2000 times per second. this way you can do your 150 us processing at interrupt level, accumulate your data at a write...
  26. On a T4.1 with 16MB ERAM buffer and 33 MHz SPI...

    On a T4.1 with 16MB ERAM buffer and 33 MHz SPI clock, you can easily record 2.75 MB/s continuously to microSD (about 75% SPI duty circle)
    From time to time some buffer will be needed and used when...
  27. Replies
    3
    Views
    70

    I have my T4.1 also behind a bulkhead and can...

    I have my T4.1 also behind a bulkhead and can easily program it.
  28. Not on T4.0 (yes on T3.x and T4.1) on T4.0 the...

    Not on T4.0 (yes on T3.x and T4.1)
    on T4.0 the two pads are for USB2 and not USB1 that is used to download programs.
  29. Replies
    5
    Views
    152

    I have not tried it recently, but if you set the...

    I have not tried it recently, but if you set the baud rate of the comport of the teensy in question to 134 baud, then Teensy should go into program mode.
    Idea is that loader detects first teensy in...
  30. I would simply try it out. OK, one needs a...

    I would simply try it out.
    OK, one needs a signal generation, but this could be a another teensy with audio out :-)
  31. b'cause 2V equiv to 0 dB as you can see from...

    b'cause 2V equiv to 0 dB as you can see from Table and which may depend on other settings of the SGTL5000
  32. from figure 2 of...

    from figure 2 of https://www.nxp.com/docs/en/data-sheet/SGTL5000.pdf
    you see that line-in goes to a 0 to 22.5 dB amplifier

    so I would say, if you select SG = 0 for the sgtl5000 then you attenuate...
  33. All connections are labelled. there is no need to...

    All connections are labelled. there is no need to connect equal labels with lines. AFAIK, this is the preferred style.
  34. I only refer to the schematics SNAP(2) is using....

    I only refer to the schematics SNAP(2) is using.
    Depending on your application a SGTL5000 my not be suitable without additional amplification. Additional 20 dB may be useful for very quiet...
  35. Yes, I'm sure, I have a SNAP myself.

    Yes, I'm sure, I have a SNAP myself.
  36. The SNAP2 connects hydrophone to line-in of...

    The SNAP2 connects hydrophone to line-in of SGTL-5000

    BTW,
    if you wanted to build your own SNAP2 compatible recorder, simply use a Teensy with Audioboard, you only miss the display

    Edit:...
  37. https://github.com/WMXZ-EU/USB2 It is for T3.6...

    https://github.com/WMXZ-EU/USB2
    It is for T3.6 and could be used as starting point for T4.1
  38. @vindar There is nothing magic about Linear...

    @vindar
    There is nothing magic about Linear Algebra, so I would not expect that CMSIS library is significant faster than own code. In most cases compiler is smart enough.
    If you have not done yet,...
  39. Replies
    11
    Views
    342

    @DM5SG not sure, it is a good idea to have...

    @DM5SG
    not sure, it is a good idea to have destination buffer smaller than source buffer.
    It is not obvious from example code that transfer count is being determinate by last buffer call (here ...
  40. Connect all pins or at least the one shown in...

    Connect all pins or at least the one shown in
    Signals to Teensy: https://www.pjrc.com/store/teensy3_audio.html

    3.3V is output when powered with USB (VUSB) or VIN
    As you can see from Teensy...
  41. Replies
    16
    Views
    405

    I know, but in in code in #5 is no elapsedMicros...

    I know, but in in code in #5 is no elapsedMicros (I know, I'm too picky) and you were saying "disassembly of my test code (below)", followed by a code snippet

    OK I see it now, thesr IS a...
  42. Replies
    16
    Views
    405

    Sorry Lutz, but asm does not seem to fit code...

    Sorry Lutz, but asm does not seem to fit code (asm mentions 'micros')
  43. Replies
    8
    Views
    896

    If you find one (a good one)

    If you find one (a good one)
  44. what exactly means "nothing works"? Serial port...

    what exactly means "nothing works"?
    Serial port does not print?
    File on sd card is empty?
    SD card is not detected?
    etc. etc.

    The way you programmed setup, you NEED a usb line connected
    ...
  45. @mborgerson, with LittleFS is should be no...

    @mborgerson,
    with LittleFS is should be no issue, simply register RAM based LittleFS as first disk.

    Now, the originator of the MTP responder assumed that RAM is very precious and limited, so he...
  46. Replies
    9
    Views
    532

    Only if you wanted MTP + Serial MTP + Seremu...

    Only if you wanted MTP + Serial
    MTP + Seremu does NOT need mods to cores
    BTW, I do it for all new TD Versions.
    It does not change cores behaviour, only adds functionality

    A PR to Paul's cores...
  47. You always can unmount/mount teensy in unix and...

    You always can unmount/mount teensy in unix and deinstall/install Teensy portable device with the device manager (it does not touched the com line)
    The first event implemented was indeed a...
  48. Except for the MSC part, for the MTP part, there...

    Except for the MSC part, for the MTP part, there is NO way Windows can decide to do a virus scan. The protocol does not foresee this.
    of course, once copied file to PC, PC indeed can and will...
  49. Replies
    9
    Views
    532

    It is simply and working since years the...

    It is simply and working since years
    the following is still working
    https://github.com/WMXZ-EU/MTP_t4
    you can also use @KurtE's fork, but he should advice on stable version

    you can use ...
  50. Do the platformio people not respond to this...

    Do the platformio people not respond to this question?
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4