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. You can use the following example to adapt your...

    You can use the following example to adapt your program


    //MCLK =12.288Mhz, BCLK=1.024Mhz (64xLRCLK) and LRCLK = 16khz (2 Bytes/word)

    #define FSAMP 16000
    #define NCHAN_I2S 2
    #define N_BYTES...
  2. maybe this snippet helps //PLL: ...

    maybe this snippet helps

    //PLL:
    int fs = fsamp;
    int ovr = 2*(NCHAN_I2S*32);

    // PLL between 27*24 = 648MHz und 54*24=1296MHz
    int n0 = 26; // targeted PLL...
  3. I did not realize that T4.1 is Out of Stock. I...

    I did not realize that T4.1 is Out of Stock.
    I guess Paul will get soon replacement, but if you need urgently, yes you are right.
  4. why not ...

    why not
    https://www.pjrc.com/store/ethernet_kit.html ?
    OK, its USA and not CAN, but you get all what you need
  5. Thread: Disable USB Port

    by WMXZ
    Replies
    3
    Views
    127

    I would try SIM_SCGC4 &= ~SIM_SCGC4_USBOTG; ...

    I would try

    SIM_SCGC4 &= ~SIM_SCGC4_USBOTG;

    to switch off the USB clock
    (check usb_init() in usb_dev.c on switching on USB)

    Caveat
    I have tried it and I do not know anything about side...
  6. with latest TD (1.54b7) you do NOT include...

    with latest TD (1.54b7) you do NOT include SdFat-beta, but you use SD.h, which is now an interface to SdFat-V2 (prev SdFat-beta)
  7. Maybe the following may help you...

    Maybe the following may help you
    https://github.com/WMXZ-EU/MTP_t4
    where a new device is added to USB
    in order to see that modification in Arduino IDE, you must modify also boards.txt
  8. Replies
    547
    Views
    36,805

    AFAIK, this thread addresses the use of Teensy as...

    AFAIK, this thread addresses the use of Teensy as a host to a mass storage device, and not the teensy or its microSD card as a mass storage device.
    I have not seen that someone implemented a mass...
  9. Replies
    3
    Views
    138

    I was there and decided to go with exFAT....

    I was there and decided to go with exFAT.
    problem with FAT32 is that you have to maintain the file allocation table (i.e. whenever you write to a new cluster you have to modify the FAT). So what you...
  10. Replies
    11
    Views
    434

    I'm just wondering if a simpler program than the...

    I'm just wondering if a simpler program than the microSoundRecorder would be more appropriate for you application.
    e.g. starting with the audio/examples/Recorder
    which does nearly what you wanted.
  11. Replies
    11
    Views
    434

    The above should not happen, how did you install...

    The above should not happen, how did you install Arduino, TD on which OS?


    Yes

    Don't edit Audio Library but call the relative methods


    That would need some code in loop().
    There are a...
  12. This is asked over and over again. Let me...

    This is asked over and over again.

    Let me answer this way:
    the definition of a Teensy, among others, is that you only upload program via USB. For this it uses a dedicated bootloader chip.

    Of...
  13. Replies
    912
    Views
    76,487

    Colleagues of mine have used MTP successfully...

    Colleagues of mine have used MTP successfully with linux (ubuntu)
    please note: MTP responder answers to a proper implemented MTP initiator. It seems that not all Linux implementations behave the...
  14. Looking quickly through your code (have no time...

    Looking quickly through your code (have no time now to run program, adapt to my hardware) could not see a smoking gun.
    Obviously you know that for 384 and 768 kHz you must reconfigure your channels...
  15. Please provide FULL code to reproduce the problem...

    Please provide FULL code to reproduce the problem
    (including the routines you modified in TD)

    I'm using the same ADC, it may not be the same connection but rest could be similar
  16. Replies
    12
    Views
    363

    In your Filter Decimation object, I would not...

    In your Filter Decimation object, I would not re-use the input data blocks, but allocate a new one for output. This way you have better control on what is transmitted further.
    you will then transmit...
  17. Replies
    16
    Views
    1,234

    I do not understand the purpose of this...

    I do not understand the purpose of this logarithmic transformation (call it wave-shaping or "compression")
    being non-linear it creates a lot of intermodulation products, that cannot be un-done (as...
  18. Try with less current (e.g. 33k/(16k+33k))

    Try with less current (e.g. 33k/(16k+33k))
  19. Replies
    11
    Views
    434

    An audio recorder that is activated by button...

    An audio recorder that is activated by button press (record while button press), if that is what you want, could easily be added.
  20. Replies
    4
    Views
    176

    should that not be inverted: MISO Master In Slave...

    should that not be inverted: MISO Master In Slave OUT (DO of SD)?
  21. Thread: Fft

    by WMXZ
    Replies
    19
    Views
    504

    You have two options: - start with examples of...

    You have two options:
    - start with examples of ADC libraries.
    - use Audio library
    in both cases try to read first a single channel,
    if that works increase numbers of channels to three
    if you...
  22. Thread: Fft

    by WMXZ
    Replies
    19
    Views
    504

    The Arduino FFT implementation is using double,...

    The Arduino FFT implementation is using double, which is OK for Teensy 4.x

    Now we see also the whole code, which is not clear and most likely will not work as intended.
    e.g. you call from...
  23. Thread: Fft

    by WMXZ
    Replies
    19
    Views
    504

    which teensy are you using?

    which teensy are you using?
  24. Replies
    12
    Views
    313

    also, it is useful to study exactly...

    also, it is useful to study exactly implementation (direct I or direct II, use of b0 etc)
    In other words, compare the CMSIS implementation with the routines (e.g. Matlab) used to create biquads
  25. Thread: Fft

    by WMXZ
    Replies
    19
    Views
    504

    implicit periodicity due to FFT is one of these...

    implicit periodicity due to FFT is one of these assumptions that is not always satisfied.
    But, some scientific areas (seismology, vibration testing, acoustics, etc) like to work in spectral domain.
  26. Thread: Fft

    by WMXZ
    Replies
    19
    Views
    504

    As you know accelerometer give you length/sec^2...

    As you know accelerometer give you length/sec^2 (acceleration). If you wanted velocity (mm/s in your case) you need to integrate your data
    The so-called spectral method does not integrate the...
  27. Thread: Fft

    by WMXZ
    Replies
    19
    Views
    504

    what's the application?

    what's the application?
  28. Thread: Fft

    by WMXZ
    Replies
    19
    Views
    504

    multiply FFT value with sensitivity and divide by...

    multiply FFT value with sensitivity and divide by i*omega to integrate accelerometer to get particle velocity
  29. Thread: Fft

    by WMXZ
    Replies
    19
    Views
    504

    can you also give a reference for the FFT class?

    can you also give a reference for the FFT class?
  30. I would try BCLK - SCK LRCLK - WS IN1 - SD ...

    I would try

    BCLK - SCK
    LRCLK - WS
    IN1 - SD


    See also https://github.com/WMXZ-EU/microSoundRecorder/wiki/Hardware-setup
    for attachment of other MEMS microphones
    Edit: The pin numbers in...
  31. Replies
    492
    Views
    56,647

    Only if there are no bottom mounted components,...

    Only if there are no bottom mounted components, or you must use cut-outs and then it does not matter much if there are through holes.
  32. That information is a typo (aka wrong) AFAIK:...

    That information is a typo (aka wrong)

    AFAIK:
    T4.x:
    MCLK 23
    BCLK 21
    LRCLK 20
    IN1 8
  33. Replies
    4
    Views
    383

    Ahh, you mean IMXRT10xx, that makes more sense....

    Ahh, you mean IMXRT10xx, that makes more sense.
    Concerning Bootloader chip, history showed that Paul is only supporting (hard coded) MCU chips he is using for Teensies. Different models of the same...
  34. @DD4WH, If you wanted to use I2S and also use...

    @DD4WH,
    If you wanted to use I2S and also use LED for messaging, You should use

    CORE_PIN13_CONFIG = PORT_PCR_MUX(4); // PTC5, I2S0_RXD0

    after you are done with LEDing and move on...
  35. Replies
    98
    Views
    9,507

    Please stick with title of thread (comments on,...

    Please stick with title of thread (comments on, issues with TD1.54b7) and create different thread for detailed discussion on your program implementation
  36. After Paul integrated SdFat-V2 I updated code to...

    After Paul integrated SdFat-V2 I updated code to include directly TD SdFat.h (no -beta anymore)
    No need to download Bill's beta version.
    Best to remove SdFat-beta from local Arduino Libs and only...
  37. Anyhow, this is a question to TeensyThread...

    Anyhow, this is a question to TeensyThread (ftrias)
    maybe you cannot have TeensyTread AND loop together?
    I would first try another thread that only does delay(1000);
  38. The error is in the code you do not show

    The error is in the code you do not show
  39. I though granularity is 16?

    I though granularity is 16?
  40. Replies
    6
    Views
    293

    It's already included in latest Teensyduino...

    It's already included in latest Teensyduino (1.54-beta7) (don't worry about beta)
  41. Replies
    11
    Views
    434

    Good, Do you have a particular application,...

    Good,
    Do you have a particular application, microphone, sensor?
    If you are using a Windows PC you may try to use VisualCode to open directory.
  42. Replies
    11
    Views
    434

    Normally I would say: - download code - edit...

    Normally I would say:
    - download code
    - edit config.h to reflect your adc situation
    open microSoundRecorder.ino with Arduino IDE and compile (Verify)

    Don't get worried about include files....
  43. Replies
    19
    Views
    551

    You will be surprised, how much you can do with a...

    You will be surprised, how much you can do with a lower CPU speed.
  44. Replies
    19
    Views
    551

    Did changing the CPU clock change anything on RF...

    Did changing the CPU clock change anything on RF interference?
  45. Replies
    2
    Views
    137

    It seems that the example was using a very...

    It seems that the example was using a very transient implementation of SdFat as indicated by


    SdioCardEX card;

    maybe you try first the SDFormatter examples provided with SdFat library.
    or ask...
  46. Replies
    7
    Views
    437

    would it be easy to colour code histogram legend?

    would it be easy to colour code histogram legend?
  47. Replies
    16
    Views
    492

    @defragster, he said not sure if the...

    @defragster, he said

    not sure if the wipe+reload test is already implemented last summer?
  48. Replies
    16
    Views
    492

    Did pressing the program mode button help? Is...

    Did pressing the program mode button help?
    Is there another connection to Teensy running as zombie and locking USB port?
  49. I did some correction and updated ...

    I did some correction and updated https://github.com/WMXZ-EU/MTP_t4/
    For @KurtE et al that have WIP forks, this is the new code

    void MTPStorage_SD::removeFile(uint32_t store, char *file)
    {
    ...
  50. @sw_hunt I hooked up a T3.6 and run mtp_test,...

    @sw_hunt
    I hooked up a T3.6 and run mtp_test, deleted test1.txt using MTP, removed uSD and checked on PC. File is still there. I will investigate.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4