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

Search:

Type: Posts; User: jonr

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Note that the most elegant way to use the...

    Note that the most elegant way to use the FlasherX with a new input device is to implement a minimal Stream class for the device. Then update_firmware() works without any modifications.

    On the...
  2. Replies
    41
    Views
    1,341

    I only tool a very brief look, but I think a...

    I only tool a very brief look, but I think a LTC1157 has the right voltage specs and would drive the mosfets for two motors. I didn't check timing - but there might be similar 3.3V, dual gate...
  3. Replies
    41
    Views
    1,341

    For example, a SSM3K56CT has a 1 nC gate charge. ...

    For example, a SSM3K56CT has a 1 nC gate charge. Doesn't a teensy pin source and sink current, meaning that the mosfet will turn off about as fast as it turns on with no pull-down resistor?
  4. Replies
    41
    Views
    1,341

    IMO, it's worth learning to use LTSpice. It...

    IMO, it's worth learning to use LTSpice. It makes things like this easy and is good for visualizing the results.
  5. Last I knew, good teensy ADC practice was ...

    Last I knew, good teensy ADC practice was pinMode(xx, INPUT_DISABLE) and a low impedance source.
  6. I used the Paul R swept sine wave method here: ...

    I used the Paul R swept sine wave method here:

    https://stackoverflow.com/questions/22597392/generating-swept-sine-waves
  7. Replies
    12
    Views
    3,254

    With hardware time stamping, I'd expect excellent...

    With hardware time stamping, I'd expect excellent performance without a RTOS.

    PTPv2 is a required part of AES67.
  8. Once you do anything with undefined behavior, ...

    Once you do anything with undefined behavior, ANY subsequent behavior become legal. Crash, random values, etc.
  9. Consider using a teensy 4.1. Faster CPU and 16...

    Consider using a teensy 4.1. Faster CPU and 16 contiguous bits with a single read. I use a different ADC with different handshaking, but run a single channel at 12 Msps.

    The ADS8558 will...
  10. Replies
    18
    Views
    678

    When someone talks about red 12v leds, IMO it's...

    When someone talks about red 12v leds, IMO it's likely that there is some current limiting device included in that description.
  11. Replies
    18
    Views
    678

    I'd put a 1K resistor in series with the gate. ...

    I'd put a 1K resistor in series with the gate. As is, damage might be possible.

    +1 on using a small logic level mosfet rated for 3.3V VGS.
  12. > interrupt priority set to 0 on INPUT pin. ...

    > interrupt priority set to 0 on INPUT pin.

    This will jitter occasionally because various things unnecessarily turn *all* interrupts off and then do things for who knows how long. I propose that...
  13. Replies
    21
    Views
    774

    > Can we get higher frequencies? If so, how?...

    > Can we get higher frequencies? If so, how? thank you

    You could add a flip-flop clock divider circuit. But I second the recommendation to just use a teensy 4.0.
  14. > even if you have 2 sides each Seems to me...

    > even if you have 2 sides each

    Seems to me that with 3D, you could have 4 sides x 144 mm˛ = 576 mm˛.

    Thermally, one could put the IMXRT chip on the top. But it's not clear to me that...
  15. Replies
    2
    Views
    331

    Besides timing and deadlocks, the slightly...

    Besides timing and deadlocks, the slightly simplified answer is don't call any non-re-entrant function that might be called from elsewhere. I don't know of a list and non-re-entrant can be hard to...
  16. Replies
    31
    Views
    2,938

    I'd just remove the biquad calls (you don't need...

    I'd just remove the biquad calls (you don't need filters on top of a convolution filter), but here it is anyway:

    26138
    26139
  17. > Define a variable like: volatile bool...

    > Define a variable like: volatile bool data_update_in_progress = false;

    My understanding is that the compiler might re-order code around this, perhaps putting the set to true after your updates. ...
  18. What you are doing should be more common. Ie...

    What you are doing should be more common. Ie don't turn off any more interrupts than necessary.

    Also, don't turn back on interrupts that were off from previous code. Unfortunately, code like...
  19. I think you could use an IntervalTimer and then...

    I think you could use an IntervalTimer and then NVIC_DISABLE_IRQ(my_timer);
  20. Replies
    2
    Views
    282

    You could get more accuracy by multiplying...

    You could get more accuracy by multiplying millis() by some floating point adjustment value (close to 1.0).
  21. Generic advice - keep simplifying the software...

    Generic advice - keep simplifying the software until the problem goes away. So in this case, down to a single channel with no averaging.
  22. Replies
    31
    Views
    2,938

    Here is the code, provided without any support -...

    Here is the code, provided without any support - it will require changes. Your correction impulse response needs to be converted to a C array of floats.
  23. As much as possible, I'd stick to standard...

    As much as possible, I'd stick to standard protocols. Like RTP.
  24. Looks like flux residue - which you could clean...

    Looks like flux residue - which you could clean off with 99% alcohol.
  25. Replies
    57
    Views
    4,381

    I assume everyone has seen this: ...

    I assume everyone has seen this:

    https://forum.pjrc.com/threads/66201-Teensy-4-1-How-to-start-using-FlexIO
  26. Replies
    57
    Views
    4,381

    My application (fast ADC) needs 12 bits of...

    My application (fast ADC) needs 12 bits of parallel input at about 50 Mhz. I suppose it doesn't matter if the clock signal is generated by the teensy or externally. But it needs to be low jitter.
    ...
  27. Replies
    57
    Views
    4,381

    I'd like to see a FlexIO library that allowed...

    I'd like to see a FlexIO library that allowed fast input of parallel data with an external clock source.
  28. This should be helpful: ...

    This should be helpful:

    https://www.baldengineer.com/low-side-vs-high-side-transistor-switch.html
  29. Replies
    5
    Views
    585

    If you want individual cell (vs pack) monitoring,...

    If you want individual cell (vs pack) monitoring, then the diyBMSv4 approach is worth looking at.
  30. Be aware of the effect on total pack capacity. ...

    Be aware of the effect on total pack capacity. Without active balancing, you are limited by the lowest cell capacity. And by any imbalance.
  31. Replies
    5
    Views
    585

    An INA230 could be used to measure current with a...

    An INA230 could be used to measure current with a low side shunt. Maybe it could handle measuring 72V if you added a voltage divider.
  32. Replies
    16
    Views
    1,224

    Thanks for the info. So one shouldn't expect...

    Thanks for the info.

    So one shouldn't expect teensy Strings to act like a C++ std::string or according to Arduino documentation (where we find "reserve() Returns Nothing").

    @bvernham: this adds...
  33. Replies
    16
    Views
    1,224

    > you can mitigate much of the risk by using the...

    > you can mitigate much of the risk by using the reserve(size)

    This leads to how does one safely use reserve()?

    > reserve(): A bad_alloc exception is thrown if the function needs to allocate...
  34. > no one ever checks the return value of new...

    > no one ever checks the return value of new anyway, not even the standard library ... probably better off just enabling exceptions

    So if one uses a teensy and the standard library, this is the...
  35. The crash I saw was caused by this same bug.

    The crash I saw was caused by this same bug.
  36. Replies
    16
    Views
    1,224

    > String it supposed to drop data when it can't...

    > String it supposed to drop data when it can't allocate memory, so you get a proper String variable which is blank.

    Here is code that eventually drops data but doesn't result in a String variable...
  37. Replies
    16
    Views
    1,224

    I did some tests: Looks like "new" with no...

    I did some tests:

    Looks like "new" with no memory will return NULL which is non-conforming C++.

    String operations that can't allocate more memory generally quietly fail, with who knows what...
  38. Replies
    16
    Views
    1,224

    What is the proper way to detect an out-of-memory...

    What is the proper way to detect an out-of-memory failure of "new" or some std::string related statement (eg, S += "x") in a teensy program?
  39. Replies
    16
    Views
    1,224

    +1 on what Paul said. For some cases, the...

    +1 on what Paul said. For some cases, the MISRA-C policy of "Dynamic heap memory allocation shall not be used" is best.

    > the odds are very low,

    But note that if there is any chance of...
  40. Replies
    1
    Views
    301

    As I read the spec sheet, anything 3.6-5.5V...

    As I read the spec sheet, anything 3.6-5.5V should be OK.
  41. > connect 3 regular LEDs Of course application...

    > connect 3 regular LEDs

    Of course application matters, but I have found 1mA to be plenty bright for generic indicator LEDs.
  42. Replies
    1
    Views
    223

    Short answer, you should have them. Longer...

    Short answer, you should have them. Longer answer here:

    https://www.silabs.com/documents/public/application-notes/an0046-efm32-usb-hardware-design-guidelines.pdf
  43. Replies
    69
    Views
    3,865

    Changing the while loop would be consistent with...

    Changing the while loop would be consistent with the CMSIS-CORE implementation of SCB_InvalidateDCache_by_Addr(). But IMO, a ">0 multiple of 32" comment is OK.
  44. Replies
    10
    Views
    674

    Non-preemptive threads avoid state machine coding...

    Non-preemptive threads avoid state machine coding and most of the compatibility problems. Unfortunately, that isn't an option in the above library.
  45. The ETA3000 looks reasonable for balancing,...

    The ETA3000 looks reasonable for balancing, although the error can accumulate cell-to-cell. For the record, diyBMS is a completely open design with data from each cell being available to the master.
  46. Replies
    7
    Views
    620

    Here is an example program that adapts audio...

    Here is an example program that adapts audio rate. Not hard to change it to determine rate based on incoming audio.

    25768
  47. Replies
    7
    Views
    620

    > dropouts or glitches because each tries to use...

    > dropouts or glitches because each tries to use a slightly different sample rate

    I have had good results with matching the teensy audio clock to an external clock source. That source can be...
  48. Consider the "diyBMS New cell monitor module...

    Consider the "diyBMS New cell monitor module V4.40". Or a derived design.
  49. Replies
    69
    Views
    3,865

    Paul's comment is pertinent to understanding the...

    Paul's comment is pertinent to understanding the context:

    "Normally arm_dcache_delete() is used before receiving data via DMA or from bus-master peripherals which write to memory. You want to...
  50. Replies
    69
    Views
    3,865

    No, doing nothing is bad - it doesn't delete the...

    No, doing nothing is bad - it doesn't delete the specified address range from the cache and it's not harmless if you neglect to do this. Flush then delete will a) delete from the cache and b) not...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4