M
Reaction score
4

Latest activity Postings About

    • M
      At its simplest clone the relevant repository to a local repo of yours, create your change branch, create a pull-request, and start a thread about it...
    • M
      So long as both sides of the comparison are cast to the same signed or unsigned type it should work, but unsigned is preferred.
    • M
      File > Examples > then search for the "Custom Library" ones...
    • M
      TTL?
    • M
      Sounds like a job for DMA driven SAI unit perhaps.
    • M
      MarkT replied to the thread Teensy 4.1 reliability issues.
      One suggestion: buck convert down to 8V, then use a linear regulator to get a clean 5V from there. Defence in depth. Simple buck converters have a path between input and output that becomes a short circuit if the inductor saturates. Inductors...
    • M
      For most uses rollover is immaterial if you compare timestamps correctly and never want to wait too long, using the idiom: if (micros() - previous_timestamp >= DELAY) { previous_timestamp += DELAY; // do stuff } The key point is the...
    • M
      MarkT replied to the thread Teensy 4x current sink.
      Its symmetrical, typical full drive outputs are +4mA and -4mA. This is for the specified output voltage droop, note, you can probably pull more, but don't expect too much from the IO pads they have to be very small indeed on a chip like this...
    • M
      Simpler symmetrical method, no LM4040 needed: I picked the AD8656 because I know its properly rail-to-rail on the inputs and outputs, cheaper options exist. Decoupling cap omitted, it is not optional though.
      • opamp_circuit.jpg
    • M
      MarkT replied to the thread Teensy 4.1 MEMS INMP441.
      Put in a high-pass filter if DC offset is an issue? Some I2S sources are already high pass filtered and some are not, just like real audio signals :)
    • M
      MarkT replied to the thread Favorite Lead-Free Solder paste?.
      Well chipquik SMD2915NL10 comes in a convenient syringe and is no-clean.
    • M
      MarkT replied to the thread Teensy 4.1 MEMS INMP441.
      Normal - the output is 2's complement so even a small offset can lead all samples to be negative during a quiet patch (or all positive, or a mixture, luck of the draw).
    • M
      Yes, that's one big issue. Sensors are fine, servo's are power hungry, each probably needs 1A minimum if the small sort. The other is the standard commodity battery holders are of low-quality riveted construction and don't work well with large...
    • M
      UK Hobby suppliers for microcontroller stuff include skpang, coolcomponents, pimoroni, probably many more these days. Stuff on eBay is pretty much entirely counterfeit these days alas, and undocumented usually.
    • M
      MarkT replied to the thread Teensy 4.1 Digital Input Tolerance.
      TVS diode on an input isn't the best protection (very soft voltage knee) - Schottky diodes to the rails really prevent excess voltage hitting the internal protection diodes, and you might want TVS protection for the voltage rail itself so it...
    • M
      MarkT replied to the thread Encoder with RC filter.
      The RC filter should be followed by Schmitt-trigger circuit otherwise it can cause issues - logic level inputs should never be slowly varying voltages, this can lead to oscillations and/or excess dissipation on the input buffer. Fast CMOS logic...
    • M
      MarkT replied to the thread PIN Definition.
      explicit pin numbers (either #define or const) allow the compiler to optimize for the specific pin.
    • M
      MarkT replied to the thread Encoder with RC filter.
      You've not said which encoders you are using. Most encoders switch to ground with low impedance, so pull-ups are a sensible default.
    • M
      I think almost all power banks do this - they are designed for charging phones and cut-off once the trickle-charge phase is reached to save power for the next use. Its definitely annoying.
    • M
      MarkT replied to the thread do..while inquiry.
      Or use a for loop with a local variable. do-while is rarely needed, and can be a trap as here.
    • M
      MarkT replied to the thread comms over USB serial.
      The tty device handles one character at a time perhaps, rather than block transfers. Its designed to interface to a human or modem...
    • M
      How complete are the images? A simple approach would have the Teensy poll for a new image, then do all the work offline. But that requires the image data is small enough to store locally.
    • M
      The DSE is only used when direction is output. The DSE is set up ready for future use such as toggling the direction for pseudo-open-drain. The DSE is part of the configuration of the pad, GDIR and DR operate the pad. One thing to remember is...
    • M
      Note that you can drive data into the GDIR register with DMA directly if you want, which would be the fastest way to get "open drain" data pushed out. DMA rather assumes a single destination register...
    • M
      So when input mode is set the library has no idea what you want to do, so its best to configure everything so you're ready.
    • M
      No, "open drain" is usually faked on a microcontroller by toggling the direction register while leaving the output register low, as this involves only touching one register. True open-drain requires the pad hardware to be open drain which it...
    • M
      MarkT replied to the thread Midi To Servo.
      That might be it hitting the end-stop and getting hot quickly... Most servos have a very limited range of angles, 120 degrees or so, try to move past the physical end-stop is likely to cook the servo quite quickly as it pulls full current.
    • M
      Definitely GDIR controls direction. The drive strength needs to be setup ready for open-drain operation I think - you don't want to have to configure a bunch of different registers to do open-drain signalling, and open drain is basically toggling...
    • M
      MarkT replied to the thread Teensy 4.0 DC Motor Noise.
      For motor supply decoupling start at 1000µF and work up... For logic rail use both 100nF for each chip/module and 100µF overall. These motors are high current and the wiring will be producing copious EMI unless you add good decoupling, and use...
    • M
      Just to clear (future?) confusions, m = milli, M = mega, its best to get this right. Also b = bit, B = byte. So MHz, Mb and MB
    • M
      A 1k : 2k2 divider will work with something like 10ns delay. If 10 nanoseconds counts as long timescales, then perhaps use 74LVCxx family which are 3.3V logic with 5V tolerant inputs, to get more like 3ns.
    • M
      Voltage divider and RCRC low-pass filter? Have you tried searching for "class d measurement filter"?
    • M
      MarkT replied to the thread Teensy 3.2 End Of Life.
      My guess is because the CMOS process used wasn't able to support sufficient analog performance within a realistic die area.
  • Loading…
  • Loading…
Back
Top