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

Search:

Type: Posts; User: UhClem

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    149

    I suspect that this depends more on the software...

    I suspect that this depends more on the software (which you don't describe) than on the SD card.

    Any FAT library is going to create occasional pauses when it needs to search for a new cluster. If...
  2. Thread: Emmc

    by UhClem
    Replies
    15
    Views
    403

    MMC cards (and presumably eMMC) are a bit...

    MMC cards (and presumably eMMC) are a bit different and will require changes to the SD card drivers.

    I still have a 64MB MMC card gathering dust around here somewhere. I can't recall if I ever...
  3. Thread: Emmc

    by UhClem
    Replies
    15
    Views
    403

    The SDHC clock divisor is limited so for best...

    The SDHC clock divisor is limited so for best performance you need to carefully select the main clock. At 256MHz divide by six is the best you can do which means that the SD clock is slower than it...
  4. Replies
    2
    Views
    128

    There is a lot of code there, more than I really...

    There is a lot of code there, more than I really care to go through but a few things that jump out:

    You have no protection from writing data to a buffer after it is full. This will clobber...
  5. Replies
    16
    Views
    416

    You are doing it differently. I have a group of...

    You are doing it differently. I have a group of buffers. When one gets full, data goes into the next one. The main loop watches for a buffer to be full. When that happens, it writes the data to the...
  6. Replies
    16
    Views
    416

    It is about speed. Ideally interrupt service...

    It is about speed. Ideally interrupt service should be fast so that it doesn't hold up the rest of the code. As for calling other functions, the only problem I have noticed is the C compiler getting...
  7. Replies
    16
    Views
    416

    Yes. Writes to SD cards do that. Made worse by...

    Yes. Writes to SD cards do that. Made worse by using a FAT file system. Allocating a new cluster triggers a scan of the FAT (1 or more reads) and update. Which takes time. Dependent on the state of...
  8. Replies
    5
    Views
    199

    By writing to a lot of different files you bring...

    By writing to a lot of different files you bring the dynamics of that into play. FAT file systems have just so many entries in the initial directory table and will have to allocate more space after...
  9. I have to wonder why you are using an SPI...

    I have to wonder why you are using an SPI interface to the SD card when there is a dedicated SDHC high speed interface available.
  10. Replies
    33
    Views
    1,838

    According to the MPU9250 block diagram the I2C...

    According to the MPU9250 block diagram the I2C connection to the internal slave should be visible from the MPU9250 aux I2C pins. Monitoring that might give you some insight into where the problem...
  11. Replies
    5
    Views
    255

    I think you have an unrealistic expectation for...

    I think you have an unrealistic expectation for low pass filter performance.

    If you set the corner frequency to 200Hz and use a 400Hz sample rate then the attenuation will never be better than 3dB...
  12. Replies
    3
    Views
    348

    http://home.earthlink.net/~schultdw/logger/eforth....

    http://home.earthlink.net/~schultdw/logger/eforth.html
  13. Replies
    23
    Views
    952

    Which is a problem because getting the...

    Which is a problem because getting the connections correct is most of the battle. From your description it still isn't clear if the shunt is on the high or low side and just exactly how the Teensy is...
  14. Replies
    23
    Views
    952

    I dug into the data sheet and the ADC has a...

    I dug into the data sheet and the ADC has a differential input mode which is perfect for this application. I have no idea if the library code supports this hardware capability. If not, you will have...
  15. Replies
    19
    Views
    427

    I assumed that you were running 5V to the Teensy...

    I assumed that you were running 5V to the Teensy to provide power. There really is no other reason to do so since those pullups are best located with the master.
  16. Replies
    19
    Views
    427

    [QUOTE=merrillii;195183] If I removed the...

    [QUOTE=merrillii;195183] If I removed the pullups from the slave teensy then wouldn't the pullups on the master just try to supply power to the regulator in the same way? /QUOTE]

    No. The path is...
  17. Replies
    19
    Views
    427

    The data sheet claims that there are ESD...

    The data sheet claims that there are ESD protection diodes to ground only so there is no clamp to Vdd causing trouble.

    Your pullups on the disconnected slave board are odd. I2C requires just one...
  18. Replies
    23
    Views
    952

    I know that this old DATAQ serial data logger...

    I know that this old DATAQ serial data logger (DI-194R) I have can do +/-10V using a 0-5V ADC in a PIC using just resistors in its front end. This of course makes assumptions about the output...
  19. Replies
    2
    Views
    346

    The internal voltage reference output is on...

    The internal voltage reference output is on VREF_OUT and the data sheet says that the capacitor should be 100nF +/-25%. I wouldn't exceed that because it might overload the reference buffer amp.
    ...
  20. Replies
    234
    Views
    63,870

    MMC5883 (http://www.memsic.com/magnetic-sensors/)...

    MMC5883

    Digi-Key shows it as active with thousands in stock.
  21. Replies
    234
    Views
    63,870

    It also requires a new hardware interface as...

    It also requires a new hardware interface as Vddio is limited. While the chip is happy running on up to 3.6V, the interface isn't.

    For me this is a step down in capability. The maximum clock...
  22. The absolute levels of A and B don't matter...

    The absolute levels of A and B don't matter nearly as much as their difference. Capture the difference between A and B for a few data packets.

    Another option besides idle state biasing (which is...
  23. OK, it wasn't clear from your drawing but it...

    OK, it wasn't clear from your drawing but it looks like you have the RS-485 ground reference covered.

    One thing to check is the power supply. Just how much current can you get from the 12V supply?...
  24. That is a problem. Unless there is a fault...

    That is a problem.

    Unless there is a fault there is zero current in the safety grounds other than perhaps some high frequency hash from input filters on equipment. With no current and everything...
  25. The piezo isn't so much of a voltage source as it...

    The piezo isn't so much of a voltage source as it is a charge source. The usual thing to do is to include a charge amplifier which will have a low output impedance suitable for driving the ADC input.
  26. Replies
    33
    Views
    1,838

    I hadn't bothered with the magnetometer on the...

    I hadn't bothered with the magnetometer on the MPU-9250 since I was interested in high rate gyro data and a previous bad experience with the MPU-9150.

    When using an SPI interface with the MPU-9250...
  27. Replies
    33
    Views
    1,838

    I have always liked the Honeywell parts but they...

    I have always liked the Honeywell parts but they seem to have scaled back their offerings while I wasn't looking. The HMC5843 had ~1600 counts/uT but was I2C for example.I couldn't find any similar...
  28. Replies
    33
    Views
    1,838

    Then why did you buy the MPU-9250? The...

    Then why did you buy the MPU-9250? The magnetometer is a third party chip grafted onto the accel/gyro. (Hence the I2C.) Worse, the magnetometer is horrible. Not quite as bad as the one in the...
  29. Replies
    33
    Views
    1,838

    Reading the magnetometer is about the hardest...

    Reading the magnetometer is about the hardest thing to do. Start with something simpler.

    Configure the accel and gyro. Set the sample rate and such. Then get data. Which brings up the point of...
  30. Replies
    33
    Views
    1,838

    It is an error in the header file. Looking at the...

    It is an error in the header file. Looking at the code, it doesn't use this definition. In any case, the data sheet is correct.
  31. Replies
    33
    Views
    1,838

    You have to configure the MPU-9250 to buffer data...

    You have to configure the MPU-9250 to buffer data in a FIFO. Otherwise the data appears in the registers and waits to be read.

    I don't know how this library handles it but I remember what I did....
  32. Replies
    33
    Views
    1,838

    1) Figure out how to talk to the SPI hardware....

    1) Figure out how to talk to the SPI hardware. Configure the hardware for what you want to do.
    2) Try to read the "who am i" register on the MPU-9250. If you get the expected value you can move on...
  33. Replies
    4
    Views
    371

    If the problem is another interrupt with higher...

    If the problem is another interrupt with higher priority, change your priority. But I find it hard to believe that there is an ISR that requires 96us to execute.
  34. There are two levels of delays in writing to an...

    There are two levels of delays in writing to an SD card. First there is the overhead imposed by the file system. Imagine the delays you can get when you have to allocate a new cluster. Just finding a...
  35. Replies
    4
    Views
    397

    The transmitter input does not have a voltage...

    The transmitter input does not have a voltage divider. There is a 47K to Vcc and 100K to ground. Your input signal will pull the MAX485 pin to 0V and 3.3V, more or less, and those resistors will not...
  36. Then you misunderstood. It is designed as an...

    Then you misunderstood. It is designed as an interface between the 3.3V uSD card and a 5V device. The 5V side will not work reliably with 3.3V devices. Look at the data sheet for the level shifter...
  37. I don't understand why you are using a board...

    I don't understand why you are using a board designed to shift between 5V levels from the micro-controller (the Teensy 3.2 is 3.3V) to the 3.3V levels of the uSD card.
  38. Replies
    5
    Views
    506

    Best write performance requires using the...

    Best write performance requires using the mult-block write command in RU (Recording Unit) sized chunks. For large SD cards this is quite large. (RU is a multiple of 16KB)

    When I test write speed...
  39. An eForth system...

    An eForth system
  40. Replies
    4
    Views
    578

    Shouldn't be a problem unless the file system...

    Shouldn't be a problem unless the file system causes trouble. Imagine what would happen if when allocating a new cluster it had to skip over a large group of clusters already in use.



    Write...
  41. Replies
    4
    Views
    578

    You never specify what data rate you require. ...

    You never specify what data rate you require.

    As a data point, I record at 256KB/sec with no trouble. But I skipped a file system and libraries.
  42. For most applications I like the MIC5018 because...

    For most applications I like the MIC5018 because it has a charge pump that generates enough voltage to fully enhance most NFETS. But since you need speed, it isn't appropriate.

    The MIC4416 can...
  43. Replies
    9
    Views
    1,904

    So the 78M05 shown supplying the XBee isn't a 5V...

    So the 78M05 shown supplying the XBee isn't a 5V regulator?
  44. Replies
    6
    Views
    2,457

    It looks like you have some research/learning to...

    It looks like you have some research/learning to do.
  45. Replies
    6
    Views
    2,457

    The 3.6 has two ADCs but both can be configured...

    The 3.6 has two ADCs but both can be configured to read more than one channel. The 3.6 should be adequate for your project.

    I used it to record data from a MPU9250 with 32,000SPS on three gyro...
  46. Replies
    6
    Views
    1,190

    I took a look at the code generated by the C...

    I took a look at the code generated by the C version using objdump -S and I don't see that the assembly language version is an improvement:



    648: 0443 lsls r3, r0, #17
    64a: ...
  47. Replies
    6
    Views
    1,190

    That appears to be using the ARM instruction set...

    That appears to be using the ARM instruction set and will have to be converted to the Cortex M4 (thumb mode) set.

    At the very least you will have to insert "it mi \n" before the rsbmi...
  48. Replies
    3
    Views
    890

    The FPU must be enabled via the SCB_CPACR...

    The FPU must be enabled via the SCB_CPACR register before attempting to use it.

    I haven't looked into flash protection but chapter 9 (Security) of the K66 family reference manual would appear to...
  49. I just tried out my Teensy 3.6 based rocket data...

    I just tried out my Teensy 3.6 based rocket data logger of MPU9250 data yesterday. It captures data from the MPU9250 over SPI in an interrupt routine and records at ~256KB/sec.

    The program...
  50. Replies
    234
    Views
    63,870

    I had difficulty talking with the magnetometer...

    I had difficulty talking with the magnetometer and ended up using the MPU9150s internal slave controller to do the job. I configured one channel to trigger a conversion and another to gather the...
Results 1 to 50 of 70
Page 1 of 2 1 2