Search results

  1. M

    Accurate timing with RTC and timers

    That's about 5ppm out, not bad for standard quartz crystals (which are usually rated +/- 20, 30 or 50ppm). What accuracy do you need?
  2. M

    I killed my Teensy 4.1 - what did I do wrong?

    CMOS latchup is common in this sort of situation (phantom powering).
  3. M

    Is WAVEFORM_TRIANGLE_VARIABLE antialiased?

    Generate all the harmonics under 22kHz and sum them? Easy, not efficient...
  4. M

    Char array behavior w/T3.2

    Internally compilers will use hashtables for lots of things like names, constants and identifiers, so any arbitrary ordering could be down to the hash function on the day. Also optimization passes might order things by expected usage too...
  5. M

    Teensy Audio Library question

    For speed and for their saturating arithmetic...
  6. M

    MIDI On messages with velocity 0 being changed to Note Off

    Which begs the question what key release velocity is a note-on zero-velocity packet equivalent to?
  7. M

    Is WAVEFORM_TRIANGLE_VARIABLE antialiased?

    If I remember rightly triangle isn't bandlimited, but has much lower spurious tone levels as its not a discontinuous waveform (rather its derivative is discontinuous).
  8. M

    MIDI On messages with velocity 0 being changed to Note Off

    A note off message is equivalent to a note-on with zero velocity - you should always treat them identically (in an ideal world). What I'm not clear about is if the velocity value in a note-off message has any meaning...
  9. M

    Periodic click when saving ADC input to SD card

    Next to the ADC where you want the interference to be minimized.
  10. M

    Periodic click when saving ADC input to SD card

    SDcard pull heavy currents when writing and erasing, unless you have separate regulation for ADC and SDcard this will cause noise spikes on the ADC readings - adding lots of bulk capacitance can help (millifarads, not microfarads) by attenuating the voltage spikes.
  11. M

    Trying to read MSP from Flight Controller via Serial1 (pins 0,1) but can't

    Can you adding debugging output then?
  12. M

    Teensy digital mixer, will 4.1 have enough processing power?

    BTW 0.24ms latency is 8cm in air, which seems to be overkill really.
  13. M

    Trying to read MSP from Flight Controller via Serial1 (pins 0,1) but can't

    You are wiring TX <-> RX in both directions?
  14. M

    Battery for handheld devices

    Single LiFePO4 cell is 3.3V or so, although somewhat higher fully charged...
  15. M

    Trying to read MSP from Flight Controller via Serial1 (pins 0,1) but can't

    Is the flight controller 3.3V ? It needs to be to talk to the T4, otherwise it'll roast it.
  16. M

    Parametric eq when teensy is set to output audio to a computer

    Doesn't the datasheet show the signal paths?
  17. M

    Artifacts heard while playing computer audio through teensy

    Nearby mobile phone? Are you using an SD card on the Teensy?
  18. M

    grounding issues with ILI9341 and teensy 4.1

    The pciture shows the ground wire is not running alongside the other wires, so there's a whole heap of loop inductance that you don't want there. Every signal line should run alongside a ground return wire, ideally a return ground wire per signal wire. Keeping the ground apart from the signal...
  19. M

    Class D amp + AA battery = voltage drop

    Normally they top out at 1.35V each.
  20. M

    Class D amp + AA battery = voltage drop

    Try 4 NiMH rechargable AA batteries (about 5.3V), which should have better high current handling. 3 x alkaline AA is only 4.5V and thus much closer to undervoltage cutoff, and the max current is less than with good NiMH cells. 1000uF is not going to help a continuous overload much. 8 ohm...
  21. M

    Teensy 4.0 Sleep with CAN wakeup

    Well with only one active node the packet's don't get ACK'd and the single node will eventully fall into passive error mode if it sends packets regularly?
  22. M

    Part_3_02_Fourier_Transform Distorts Line In

    Post your code? A couple of snippets aren't enough... BTW a line input will low pass filter a guitar output as guitars want 1M input impedance typically.
  23. M

    Teensy 4.1 & FlasherX with large project hangs in flash_move()

    How hot is it getting with these continual erases?
  24. M

    Teensy 4.1 glitch on digital interrupt

    The cap will be reducing the level of noise - you don't need to slow down the edge (in fact the standard solution is normally a 74HC14 which has proper amounts of hysteresis, much less noise sensitive then). The noteworthy fact is that a CMOS logic input held at about 1/2 the rail voltage...
  25. M

    more durable micro-usb socket, revisited

    WD40 is not safe for many plastics, I would not risk it on electronics. Air-dusters or electrical contact cleaner are perhaps safer choices?
  26. M

    Lipo percentage guidance

    Just that 100nF is commonly stocked for decoupling caps by many, 10nF would be plenty too.
  27. M

    Lipo percentage guidance

    100k : (100k || 100nF). divider would be me choice, half the LiPo voltage to about 2V, 30uA drain.
  28. M

    Can one preset the state of a gpio pin before setting as an output?

    Perhaps the better question is what are you trying to actually do?
  29. M

    Can one preset the state of a gpio pin before setting as an output?

    Just do digitalWrite(pin, HIGH); pinMode(pin, OUTPUT); It unlikely to matter that a weak pullup got enabled a microsecond or so before the pinMode() call?
  30. M

    PID Library for Teensy 4.1

    Well that's an oscillator by definition, the system integrates the control input, which is the integral of the error (if only an I term), so 180 phase shift added to the negative feedback turning it to positive feedback... P term does the bulk of the work, I term exists only to drive the error...
  31. M

    PID Library for Teensy 4.1

    Its oscillating, so the I term is likely too large, and possibly the gain term too (P). Are you using the D term?
  32. M

    SparkFun To Manufacture Teensy

    I'll repeat those pink bags don't shield from ESD, they just don't generate much static when handled (compared to raw polythene etc). The silver/grey bags are Faraday cages, but non-shorting (the ultra-thin aluminium layer is sandwiched), so they are safe touching powered-up circuits (Unlike...
  33. M

    I2S microphone (ICS43434) to a Teensy 4.0 with cable? Length + type?

    I'd suggest using 1000+ ohm ferrite, and say 10 ohm resistor, then the mic can have less supply droop and good filtering?
  34. M

    Help with cleanly mixing multiple AudioSynthWaveform voices on Teensy 4.0

    Indeed the headphone socket is only for headphones/earbuds, not for outgoing signals.
  35. M

    I2S microphone (ICS43434) to a Teensy 4.0 with cable? Length + type?

    Something like this: The source sees about 120 ohms, but centre-biased, so that at 3.3V supply it only has to drive about +/-12mA, not 25mA This terminates the line well enough that reflections are not a problem. Its an old trick that saves current and power too of course, constant 20mW...
  36. M

    Serial ports through Ethernet

    That's a good point! I guess a raw TCP/IP connection is the closest match...
  37. M

    Audio Library disable/enable interrupts, why?

    IIRC updates are triggered by the first input or output class that initializes, such classes have synchronous I2S interrupts typically. Every buffer full of samples the class triggers a software interrupt on leaving its ISR I think. This then calls all the update() methods in the network of...
  38. M

    Serial ports through Ethernet

    SLIP? PPP? certainly are serial protocols, its a question of whether they are easily supported by Windows. https://en.wikipedia.org/wiki/Serial_Line_Internet_Protocol
  39. M

    Assistance Needed

    Ceramic MLCC 100nF caps are pretty standard, they have low inductance. Surface mount are best if you can manage it (1206 aren't hard to solder really). Keep them close to the supply pin of the chip they serve (within a few mm) for a reliable board. At the speeds these chips switch even 20mm...
  40. M

    Overheating and "dead" Teensy 4.1

    And don't use opamps as comparators (they are awful at it), the LM339 and similar are very cheap and do a far better job and have open-collector outputs to make interfacing to logic very easy and safe. They are likely to switch fast enough not to cause multiple transitions too, which the LM358...
  41. M

    Teensy register manipulation

    ote that a 74LVC245 run at 3.3V may have 5V tolerant inputs, but it cannot drive both directions with a voltage shift, that takes a proper bidirectional level shifter. 5V will destroy a T4, you have been warned.
  42. M

    LiPo charge controller board with power on and power off features?

    A 1N4148 diode could be the way to pull the active-low EN down safely?
  43. M

    I2S microphone (ICS43434) to a Teensy 4.0 with cable? Length + type?

    30cm? 50cm? You can pull various tricks for longer distances over cables, like series resistors to reduce overshoot and the risk of reflections, but I2S is pretty vulnerable due to most of the signals being clocks (double-clocking due to waveform distortion is a common issue). Good...
  44. M

    Audio Library disable/enable interrupts, why?

    Code protected inside a __disable_irq()/__enable_irq() bracket is called a critical section - datastructures shared with an ISR must be handled with critical sections, its quite simple. Then the ISR and the critical sections get serialized atomically without interfering with each other...
  45. M

    SparkFun To Manufacture Teensy

    Indeed pink is not protective, merely dissipative, the shiny metallic looking bags are a hard requirement for anti-static packaging. Someone is misinformed I suspect. https://en.wikipedia.org/wiki/Antistatic_bag
  46. M

    Audio Library disable/enable interrupts, why?

    That sort of low level interrupt stuff will be because there is an associated DMA completion interrupt which swaps buffers over.
  47. M

    Ensuring 5v stepped down to 3v3 for sync in on drum machine

    Typical signal diodes have reverse leakages measured in nanoamps, its perfectly OK to use them. High voltage is a very different environment where leakage power can be significant, but 1nA at 2V is not going to damage anything.
  48. M

    AM243x or LS1012 in future teensy?

    The Sitara appears to be for industrial use, no I2S at all on a quick search of the datasheet... Not clear if there's another peripheral that could substitute for I2S. The LS1012 is around 1W, the LS1046 is much more and requires heatsink and fan which is an issue!! I think the imXRT1062...
  49. M

    Failed to convert array Test1.WAV to "Test1.WAV" to playable in Teensy Wav player object !!

    8.3 filenames are uppercase only, maybe that's it?
Back
Top