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

Search:

Type: Posts; User: mborgerson

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds; generated 44 minute(s) ago.

  1. Replies
    86
    Views
    1,830

    I haven't worked with external card readers on...

    I haven't worked with external card readers on the T4.0. I got out my binocular microscope, finest tweezers and soldering tip and coerced a micro-sd card socket to bond with the misfit pads on the...
  2. Replies
    86
    Views
    1,830

    Here is a link to the MTP library I am using. I...

    Here is a link to the MTP library I am using. I haven't posted it before because you have to edit some of the core USB libraries to get it to work. If you've gone through that before, you should...
  3. Replies
    86
    Views
    1,830

    I've attached a zip file with the latest...

    I've attached a zip file with the latest incarnation of the generic data logger. It has been updated to allow the use of more than one logger object in a program. I have added an example that...
  4. Replies
    86
    Views
    1,830

    With some simple mods to the generic logger, I...

    With some simple mods to the generic logger, I am now able to use two logger objects to save data to two different files at different collection rates. Apparently, SDFat 2.0B has no problems having...
  5. Replies
    86
    Views
    1,830

    Your comment that some applications really don't...

    Your comment that some applications really don't fit the timer-based buffering and storage model is spot on. The GPS logger is really a bit of a stretch. It might be be better done by increasing...
  6. Replies
    86
    Views
    1,830

    I've considered the possibility of...

    I've considered the possibility of event-triggered logging, and I think it could be implemented with a modification of the solar logger example. For event-triggered logging, the attached binary...
  7. Replies
    86
    Views
    1,830

    Sorry about the delay in response to...

    Sorry about the delay in response to questions---but I was on a camping trip where I tested a version of the data logger software to collect GPS data. GPS collection is a bit of a PITA in that you...
  8. Replies
    1
    Views
    71

    I suggest that you be very cautious when you try...

    I suggest that you be very cautious when you try to run multiple devices at high speeds on the same SCK line. The capacitive loading of many connected devices has caused problems for other users.
  9. Replies
    320
    Views
    39,967

    This afternoon I did some tests in a common data...

    This afternoon I did some tests in a common data logger configuration:

    * Logger is powered by an external power supply.
    * The trace on the bottom of the Teensy that connects USB 5V to VIN is...
  10. Replies
    320
    Views
    39,967

    Buried in the code for the base FSFile type is...

    Buried in the code for the base FSFile type is the following:


    /** The parenthesis operator.
    *
    * \return true if a file is open.
    */

    operator bool() {return isOpen();}
  11. Replies
    320
    Views
    39,967

    Integrating MTP Responder into Data Logger application

    I have taken the first steps toward integrating the MTP responder into my generic data logger application. One thing that was apparent early on was that having the data logger and the MTP...
  12. I am using SDFat 2.0b. I installed the latest...

    I am using SDFat 2.0b. I installed the latest version today---which still wants to include Time.h somewhere in the Fcntl.h chain. Fcntl.h is used by default in SDIOConfig.h in SDFat 2.0b on ARM...
  13. Warnings to use Timelib.h instead of Time.h

    These warnings started popping up in my generic data logger code after the install of Teenysduino 1.52. I finally tracked down the source of these warnings to the fact that SDFat 2.0b includes the...
  14. Replies
    86
    Views
    1,830

    I note that all the errors shown post #37 above...

    I note that all the errors shown post #37 above occur when the buffer pointer is ~0x70E12400. I think this is in the memory range occupied by the 2nd PSRAM, which is soldered onto pads normally...
  15. Replies
    17
    Views
    442

    The problem with all these proposals are some...

    The problem with all these proposals are some things I hadn't yet considered:
    1. Many speakers that have adequate output at 500 to 2500Hz are an inch or two in diameter. The resulting audio output...
  16. Replies
    86
    Views
    1,830

    Hmm, if the issue is something happening at...

    Hmm, if the issue is something happening at interrupt time, then increasing the IntervalTimer priority might have an effect. I think I will also
    investigate the code for reading the...
  17. Replies
    86
    Views
    1,830

    Errors that pop up just a few times in millions...

    Errors that pop up just a few times in millions of records are hardest to troubleshoot.

    I can think of several reasons that things like this might happen:

    * Something strange in interrupt land...
  18. Replies
    86
    Views
    1,830

    Another thought just occurred to me: How does...

    Another thought just occurred to me: How does the PSRAM handle storage of 33-byte structures? Is there some mechanism unknown to me that doesn't cope well with odd-sized writes?
  19. Replies
    86
    Views
    1,830

    Thanks for the notes. 1. I'll definitely...

    Thanks for the notes.

    1. I'll definitely check for proper spelling of file names. Windows HAS made me a bit lazy in that respect.

    2. A 33-byte packed structure??? I've always avoided...
  20. Replies
    86
    Views
    1,830

    This update to the data logger has the following...

    This update to the data logger has the following changes:

    1. Used method proposed by @defragster to avoid blocking interrupts on every call to CheckLogger.

    2. Added code which checks free...
  21. Replies
    86
    Views
    1,830

    On the subject of SD Cards: Five to 10 years...

    On the subject of SD Cards:

    Five to 10 years ago, I used a lot of SanDisk cards with good results. Then about five years ago SanDisk cards started getting counterfeited on a large scale. A...
  22. Replies
    86
    Views
    1,830

    I'll work over these issues today: 1. type...

    I'll work over these issues today:

    1. type casts to make sure the buffer needed calculation is done with uint64_t internally.
    2. Investigate ways to handle "disk Full" situations. The logger...
  23. Replies
    86
    Views
    1,830

    Here is an update library source and some new...

    Here is an update library source and some new examples that illustrate file playback. One program is designed to log timing data very quickly on a T4.1, then verify that no records were skipped...
  24. Replies
    86
    Views
    1,830

    Xfer and defragster: I took your comments to...

    Xfer and defragster: I took your comments to heart and made the following changes:

    1. The internal calculations for the buffer size now use a uint64_t and check for values out of the uint32_t...
  25. Replies
    86
    Views
    1,830

    The calculation of bufferneeded does need some...

    The calculation of bufferneeded does need some work. Your example of:

    bufferneeded = ((structsize * collectionrate ) / 1000) * mSecLen;

    Is OK for very fast collection, but will return zero...
  26. Replies
    86
    Views
    1,830

    I'll be trying out some of the T4.1 tests later...

    I'll be trying out some of the T4.1 tests later today. I got the headers and PSRAM chip soldered on yesterday, so the hardware is ready to go.

    I agree that there should be some way to verify...
  27. Replies
    86
    Views
    1,830

    First release of DataLogger class

    The DataLogger class provides the collection, buffering and storage elements for a generic data logging application. It has the following characteristics:

    * A user-defined storage structure...
  28. Replies
    17
    Views
    442

    I just caught on to the fact that you want to...

    I just caught on to the fact that you want to measure the distance between the microphone and the speaker. That's somewhat easier than the problem I was working on: measuring the distance from the...
  29. Replies
    17
    Views
    442

    I think you're out of luck trying to measure with...

    I think you're out of luck trying to measure with 1mm resolution using sound at frequencies below 100KHz. Given that the speed of sound is about 343mm/millisecond,
    one mm resolution means a time...
  30. Replies
    6
    Views
    229

    There was another thread about connecting to...

    There was another thread about connecting to multiple SPI devices sometime in the last few months.:...
  31. Replies
    86
    Views
    1,830

    Generic data logger object

    After posting some example data logger code in other threads, I have decided to try to write a generic logger object which can become the basis of a data logger library.

    One of the first things I...
  32. I've included an updated version of the timing...

    I've included an updated version of the timing logger. This one has a single #define USE_EXFAT
    and some #ifdefs sprinkled through the code where there are differences between SD file access and...
  33. Wow! Those long times at 44810 and 131850...

    Wow! Those long times at 44810 and 131850 indicate that there must be some significant block erase and remap times. The faster times on the low end (~11-12mSec) show the increased speed of the T4.1...
  34. Since I was less than complimentary about the...

    Since I was less than complimentary about the capabilities of that simple logger example, I decided to add some code to back up my comments.

    The following data logger example has the elements I...
  35. Replies
    17
    Views
    442

    The major problem with your code is that you are...

    The major problem with your code is that you are waiting 50milliseconds after your tone starts and then starting to read the ADC values, but you don't really know the phase relationship between your...
  36. This data logger is missing so many of the...

    This data logger is missing so many of the elements of a true data logger that it really doesn't deserve the name "data logger"---but that's another discussion altogether.

    The intermittent longer...
  37. [QUOTE=martianredskies;237898]I had an idea that...

    [QUOTE=martianredskies;237898]I had an idea that an ongoing forum post containing little optimization tricks might be a benefit to the community, and just an interesting read overall. Certainly there...
  38. Replies
    5
    Views
    130

    As you have discovered, a single-precision float...

    As you have discovered, a single-precision float is only good to about 7 significant figures. That's due to the limitations of having only 23 (or 24, depending on normalization) bits for the...
  39. If you want data read, transmitted and received...

    If you want data read, transmitted and received with low jitter, you should probably consider collecting your data with an IntervalTimer, accumulating a buffer with a number of time-stamped...
  40. Replies
    12
    Views
    412

    I see KurtE's point about maintaining multiple...

    I see KurtE's point about maintaining multiple files. We should all remember that these #ifdef issues apply primarily to library code and need not pop up in a user program for a particular...
  41. Replies
    12
    Views
    412

    Thanks for that. To twist another oft-used...

    Thanks for that. To twist another oft-used trope: You can take the programmer away from the sea, but you can't take the sea away from the programmer. Between my Navy years, my oceanography years,...
  42. Replies
    12
    Views
    412

    A potential problem with vsCode and other such...

    A potential problem with vsCode and other such smart editors is that, for a Teensy library, the processor isn't defined in the library file, but in a board file that is selected by Arduino when you...
  43. Replies
    12
    Views
    412

    Adrift in a sea of #ifdefs

    I have 4 different models of Teensy (3.2, 3.5, 3.6, 4.0) and they have all provided many hours of educational and interesting hardware and programming projects. There are lots of excellent...
  44. Replies
    4
    Views
    233

    printf() and sprintf() are not C++ functions. ...

    printf() and sprintf() are not C++ functions. They are documented in my original K&R "The C Programming Language" from 1988. As long as you have the C stdio library, you can use the
    ...
  45. Replies
    4
    Views
    233

    My first advice would be: Don't open and close...

    My first advice would be: Don't open and close your file every time you write to it. Opening and closing can consume a lot of CPU cycles and are not really necessary in the loop().

    Instead,...
  46. While browsing though the source for the timers...

    While browsing though the source for the timers and ADCs, I think I saw something about the ADC Setup changing some system clock dividers to allow the higher sampling rates. Perhaps changing the...
  47. Another possibility is to find a 'quiet spot' in...

    Another possibility is to find a 'quiet spot' in your processing scheme and do your ADC sampling at that time. One way to do this might be to take the ADC samples just before you start your SPI...
  48. Your quest for better than 10 effective bits on...

    Your quest for better than 10 effective bits on the T4.0 ADC is probably doomed to failure with the setup you have. There are a number of reasons for this pessimistic view:

    1. You will never...
  49. Replies
    3
    Views
    266

    There's some apparent conflict in the description...

    There's some apparent conflict in the description you provide. You say

    If you are using the micro-SD slot on the T3.5, it is not intended to be used as an SPI bus device. It should be...
  50. Replies
    10
    Views
    450

    If using SPI flash turns out to be too much of a...

    If using SPI flash turns out to be too much of a problem, you might consider this approach:

    Create a one GByte pre-allocated contiguous EXFat file and treat it like a 1GB flash.
    Once you have...
Results 1 to 50 of 111
Page 1 of 3 1 2 3