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.02 seconds.

  1. Yes, the T4.x and the T3.6 use the same amount of...

    Yes, the T4.x and the T3.6 use the same amount of audio memory: 229376 bytes

    Not sure if it helps to increase this number for T4.0 as it needs RAM for program.

    IMO, for longer delays you would...
  2. Replies
    2
    Views
    106

    I was once using a CSAC on a Teensy (3.3V, don't...

    I was once using a CSAC on a Teensy (3.3V, don't recall Teensy model) and it was working fine (maybe there is still trace of it on Forum),
    Never used it afterwards as these particular CSAC was known...
  3. @bicycleguy if you wanted to use the advantage...

    @bicycleguy
    if you wanted to use the advantage of VSCode (as I do), simply move all code from ino to a cxx file and let ino be empty.
    Obviously, your new cxx file must be logically correct an...
  4. Replies
    9
    Views
    523

    You can use Elm Chan's fatfs that uses the...

    You can use Elm Chan's fatfs that uses the fopen() etc API, that is used in non-Arduino environments
    There is a port to Teensy https://github.com/WMXZ-EU/uSDFS, which, however, has not been touched...
  5. Replies
    1
    Views
    213

    I would say, that does not work as intended. Not...

    I would say, that does not work as intended.
    Not for using DSPInt functions that are really not necessary for 32-bit operations, but compiler should be able to handle that.
    But for taking the 3rd...
  6. MTP can disabled/enabled using the device...

    MTP can disabled/enabled using the device manager, so I expect it can be done with "pnputil" a tool I was not aware of when we worked on PC-side refresh of MTP and I suggested the powershell script
  7. Replies
    6
    Views
    418

    No, only Teensy.exe can upload the bootloader...

    No,
    only Teensy.exe can upload the bootloader chip.
    Details of bootloader and Teensy.exe PJRC proprietary information.
    the Teensyloader CLI can only download a user program
  8. Replies
    8
    Views
    401

    most likely is it the python serial library that...

    most likely is it the python serial library that did not release serial port and act like a zombie.
    proof: reboot the system, does it resolve the issue?
  9. Replies
    107
    Views
    6,054

    I strongly support to split up according to board...

    I strongly support to split up according to board architecture types.
  10. Replies
    2
    Views
    115

    It is technically possible to combine different...

    It is technically possible to combine different USB devices. However, you have to write your own device driver (as we did with MTP+Serial)
  11. I also suggest that USB connection...

    I also suggest that USB connection (wiring/connector/length) is bad, even if cable is good (have been there also)

    T4.x run USB with 480 MHz while T3.x are running with 12 MHz
    Suggest testing by...
  12. Replies
    21
    Views
    1,024

    Why are you not simply process all in time...

    Why are you not simply process all in time domain? That gives you the location of the knock to the sample.
  13. Agree, solder need to be improved

    Agree, solder need to be improved
  14. Replies
    7
    Views
    506

    For the records Bill attributes this to a bug in...

    For the records
    Bill attributes this to a bug in SdFat that was removed with version 2.2.0
    see https://github.com/greiman/SdFat/issues/389
  15. Replies
    21
    Views
    866

    I guess you are right on the number. For the...

    I guess you are right on the number. For the rest, that was my idea also.
  16. Replies
    21
    Views
    866

    should work with custom software: T4.x has up to...

    should work with custom software:
    T4.x has up to 4 I2S data out ports, which could generate 16 out channels
    for 4 Audioboards you would need to use two different I2C controls ports.
  17. Kurt, Do I understand it correctly, you wanted...

    Kurt,
    Do I understand it correctly, you wanted to detect at compile time if the user inserts/removes a uSD card?
  18. my reply was triggered by (emphasis my me) but...

    my reply was triggered by
    (emphasis my me)
    but may KurtE was intending something different
  19. is the "__has_include("file.h") not testing if...

    is the "__has_include("file.h") not testing if "file.h" CAN be included and not if it is included by the sketch?

    gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005finclude.html :
    "The special operator...
  20. Replies
    11
    Views
    809

    yes it should fit Rev D Audio card has only the...

    yes it should fit
    Rev D Audio card has only the pins adapted to T4.x, while Rev C Audio card has pins adapted to T3.x
  21. can you check if the buffers are 32-bit aligned?

    can you check if
    the buffers are 32-bit aligned?
  22. If I understand correctly, this is your sequence...

    If I understand correctly, this is your sequence of operation:
    you start MTP
    you start Logger
    You stop Logger
    You do not see files added by Logger.

    This is how MTP works.
    The PC has under...
  23. Replies
    5
    Views
    267

    check https://www.pjrc.com/store/teensy41.html...

    check https://www.pjrc.com/store/teensy41.html close to bottom
    R2 470 Ohm
  24. Replies
    10
    Views
    1,146

    thanks changed read.me on...

    thanks
    changed read.me on https://github.com/WMXZ-EU/MTP_t4
  25. The reason for this implementation is that in MTP...

    The reason for this implementation is that in MTP the PC is the master and it can do what it wants. For example, PC does not need to refresh directories, and Windows behaves differently than Linux....
  26. Thread: Bat detector

    by WMXZ
    Replies
    1,001
    Views
    220,792

    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...
  27. You have also to consider the AudioInputI2S that...

    You have also to consider the AudioInputI2S that configures the SGTL5000
  28. 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....
  29. 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
  30. 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...
  31. 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,...
  32. 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...
  33. Replies
    2
    Views
    255

    search forum for MTP

    search forum for MTP
  34. Replies
    8
    Views
    657

    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....
  35. Replies
    8
    Views
    657

    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.
  36. 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.
  37. 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...
  38. @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
  39. 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.
  40. No, but there are different versions of *cli.exe,...

    No, but there are different versions of *cli.exe, that you can use to experiment
  41. 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...
  42. 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...
  43. Replies
    19
    Views
    1,114

    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)
    ...
  44. Replies
    29
    Views
    1,046

    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
  45. Replies
    6
    Views
    319

    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)
  46. Replies
    19
    Views
    1,114

    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...
  47. Replies
    19
    Views
    1,114

    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...
  48. Replies
    19
    Views
    1,114

    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...
  49. Replies
    19
    Views
    1,114

    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...
  50. Replies
    19
    Views
    1,114

    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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4