Search results

  1. N

    U4 Chip gets extremely hot when 4.1 is connected to power.

    No, they are PWM pins able to generate PWM signals.
  2. N

    BUG: OneWire missing GPIO definition with ESP32-C6

    This might be caused by a missing util/OneWire_direct_gpio.h Note the comment in that code: #elif defined(ARDUINO_ARCH_ESP8266) // Special note: I depend on the ESP community to maintain these definitions and // submit good pull requests. I can not answer any ESP questions or help you //...
  3. N

    Measured performance of line in and line out of SGTL5000

    There is a little more spread at the base of the odd harmonics, although the FFT sizes are also different. I had expected more of a difference, and I was wrong.
  4. N

    Measured performance of line in and line out of SGTL5000

    I would expect to see a big difference, if the sine wavelength is not an integer multiple of the exact sampling frequency. See https://www.pjrc.com/high-precision-sine-wave-synthesis-using-taylor-series/
  5. N

    usbMIDI does not send polyphonic aftertouch message when I call sendAfterTouch(note, pressure, channel);

    @Paul Here is a replacement USB MIDI web page, derived from the current page and adding guidance on this aftertouch issue. Feel free to use this, if you would like. I didn't see the website on GitHub, so could not send a pull request.
  6. N

    usbMIDI does not send polyphonic aftertouch message when I call sendAfterTouch(note, pressure, channel);

    This differs from the Arduino MIDI library, which overloads the function name (and thus, can't be extended to allow an optional cable number) https://fortyseveneffects.github.io/arduino_midi_library/a00032.html#ga8f9445f1808b7aa80535aec7d38de6bb void MidiInterface< Transport, Settings, Platform...
  7. N

    usbMIDI does not send polyphonic aftertouch message when I call sendAfterTouch(note, pressure, channel);

    From the Teensy usb MIDI documentation https://github.com/PaulStoffregen/cores/blob/master/usb_midi/usb_api.h void sendAfterTouch(uint8_t pressure, uint8_t channel, uint8_t cable=0) { send(0xD0, pressure, 0, channel, cable); and void sendAfterTouchPoly(uint8_t note, uint8_t pressure...
  8. N

    Windows help wanted - trying PJRC's new code signing cert

    Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows PS C:\Users\chris\Downloads> .\hello3.exe Hello Defragster So it runs fine from a shell; double clicking it still gives the...
  9. N

    Potentiometers not giving full range: 4 - 1008 only

    I thought that on T4.1 AGND and GND are identical?
  10. N

    Teensy 4.1 USB Host issues

    White is D+, no?
  11. N

    DAC recommendations for Digital Oscillator project.

    > The MCP4822 is only dual but Edges has 5 audio outs, so how is it doing this? Out 4, which can be a triangle wave, uses the DAC; outs 1 to 3 are digital pulses so don't need a DAC. Out 5 is simply the analog mixture of the other four.
  12. N

    Teensy Web Page

    Yes, http://forum.pjrc.com/forum.php used to be correct but needs to be edited to http://forum.pjrc.com/ (or http://forum.pjrc.com/index.php )
  13. N

    Teensyduino 1.59 Released

    Okay nevermind. I did "copy link" from the link in the announcement post, and that actually is https://www.pjrc.com/teensy/td_156/package_teensy_index.json which is different to the text of the link
  14. N

    Teensyduino 1.59 Released

    I'm getting an update failure in Arduino IDE 2.3.0
  15. N

    freq measure multi on teensy 4.0

    From Github: Does that mean that each pin used for FreqMeasureMulti needs to use a different FlexPWM timer? Or just not share a timer with a different function, like PWM? I wasn't sure, reading the docs. (I have a project that needs two FreqMeasureMulti pins and six PWM outputs, so I was...
  16. N

    Full-range PWM for RGB LED control

    My current project needs two RGB LEDs as indicators. I'm using Adafruit Pirhana common-anode LEDs driven by PWM. https://www.adafruit.com/product/1451 I'm using at 146.48kHz to get 10 bit analogWrite resolution. I notice on a scope that the PWM duty cycles varies between 0.67% and 99.82% at...
  17. N

    Need advice on PCB manufacturers

    My first board was hugely wasteful of space, poorly routed, and I could do a lot better now. The important thing though was that I did it, and it worked, and I learned stuff. Autorouting tends to give poor results, KiCad makes manual routing simpler by guiding you. Running an electrical rules...
  18. N

    Miditransfer between USB-C port and Teensy

    Indeed, good point.
  19. N

    Did someone try a Teensy 4.1 MIDI with iOS?

    Are you sure that your iPad app is listening on channel 10?
  20. N

    Miditransfer between USB-C port and Teensy

    Why would it need a hub? This seems to just need a USB-C to USB-B cable, which is readily available, plus the USB host panel connector which has a USB-B socket.
  21. N

    T4.1 - USB Hosts – trouble getting started.

    You do need to use a standard 5-wire cable. The 5th wire is not just a shield; it is the 0V reference. Once you have done that, verify that =5V power is being supplied to the USB device. If not, you are likely missing the begin() command to enable power: USBHost myusb; void setup () {...
  22. N

    Teensy 4.0 DAC Function

    You would probably want to use an SPI DAC in that case. There are many options at various bit depths (from 12 to 18 bits) , both single and multi-channel. Most are surface-mount, but a few through-hole DAC chips still exist.
  23. N

    Question about MIDI modwheel & pitch bend control wiring

    No, because the Sustain pedal might be pressed (which delays acting on Note Off) and recently released keys may still be sounding due to the release phase of an ADSR envelope.
  24. N

    ornament & crime beta testing

    The bill of materials and build guide is online if you want to source yourself https://ornament-and-cri.me/build-it/ You could also try a kit, with all smd soldered already https://www.thonk.co.uk/shop/plum-audio-ocp/ If you plan on using the extra pins on a 4.1 then I would ask on the...
  25. N

    test thread

    UTF-8 test Το Teensy είναι μια εξαιρετική πλατφόρμα
  26. N

    Teensy 4.1 SPI SCK pin13 (LED) issue

    I have wondered whether an SD card extension cable like this could be butchered to bring out the SPI2 pins (SCK2, CS2, MOSI2, MISO2) without having to solder onto the QSPI memory pads. Anyone tried that?
  27. N

    Teensy 3.2 End Of Life

    This was a classic board, sad but understandable that is now at end of life.
  28. N

    MIDI 2.0 Support?

    MIDI 2.0 is still very new and there are zero commercial MIDI 2.0 controllers available. This thread may be helpful https://forum.pjrc.com/threads/55239-Midi-2-0?highlight=MIDI+2.0
  29. N

    MIDI 2.0 Support?

    MIDI 2.0 is still very new and there are zero commercial MIDI 2.0 controllers available. This thread may be helpful https://forum.pjrc.com/threads/55239-Midi-2-0?highlight=MIDI+2.0
  30. N

    How do I introduce real-time soft and hard clipping to an audio input?

    You might find these helpful: - Help with waveshaper effect - Adding harmonic distortion with Arduino Teensy - TeensyDist
  31. N

    16ch CV out project

    Oh and you should look at https://www.pjrc.com/better-spi-bus-design-in-3-steps/
  32. N

    16ch CV out project

    You would use a 5V supply (like V USB) to power the DAC and a level translator like 74AHCT125 to convert the 3V3 Teensy logic to 5V0. You would also need something like 4.7μF + 100nF supply bypass caps on AVdd. DAC8568C outputs up to 5V (2 * Vref) and has a zero-scale reset. Do you really need...
  33. N

    16ch CV out project

    For CV out you do need DC accuracy which means audio DACs are not a good choice. Have a look at something like the DAC8568 from Texas Instruments; it gives you eight reasonable quality 16-bit outputs (4LSB INL, 0.004% typical Initial Accuracy), has an internal voltage reference that is good...
  34. N

    Building a USB MIDI 2.0 Device

    Good to see the platforms (MacOS X, Linux, Android) building support, but there is still not a single MIDI 2.0 controller on the market (that includes the somewhat flawed Roland A-88Mk2 which maybe, maybe is hiding 16-bit velocity and 32-bit parameter support inside it's current, MIDI 1.0...
  35. N

    External ADC and DAC recommendations for T4.1

    By the way for people needing guidance on high precision DAC, this article from Analog.com on the 20-bit AD5791 is excellent, and broadly applicable to other DACs: The 20-Bit DAC Is the Easiest Part of a 1-ppm-Accurate Precision Voltage Source I'm (slowly, as ever) working on a project that...
  36. N

    External ADC and DAC recommendations for T4.1

    Audio components are optimized for audio applications (streaming data at a constant rate, low total harmonic distortion, etc). That particular codec especially (zero-crossing gain modification to eliminate clicks, high-gain microphone amp with microphone bias, etc). The datasheet may be entirely...
  37. N

    Using the SPI library for AD5686R DAC with Teensy 4.1

    Oh, I considered asking about that but forgot. The datasheet, section Layout Guidelines, says there should be 10μF plus 100nF at the power pins (digital and analog). Those would be a low-ESR electrolytic and a C0G ceramic, typically.
  38. N

    Using the SPI library for AD5686R DAC with Teensy 4.1

    SPI.transfer expects one byte (8 bits, uint8_t). To send a 16bit quantity you can send two bytes, MSB first. I don't have the particular DAC you are using but I looked at a couple of sketches using other DACS to see what I did: AD5542, and LT1658C. Try this: // Control AD5686R quad 16bit SPI...
  39. N

    Using the SPI library for AD5686R DAC with Teensy 4.1

    In terms of accuracy, it depends whether you got the A grade or the more expensive B grade. For A, the relative accuracy is ±2 LSB typical, ±8 LSB max. Assuming you have a gain stage that takes the 2V5 or 5V0 DAC output to 11V, then 1 LSB is 11 / 2^16 = 168μV = 0.2 cents (1200 cents to 1 volt)...
  40. N

    Using the SPI library for AD5686R DAC with Teensy 4.1

    Your setup does not work because you are sending command 0000 which is "No operation". You need 0001 which is "Write to input Register". So int setDacChannelLevel(int address, int value) { digitalWrite(slaveSelect, LOW); SPI.transfer(address + 16); SPI.transfer(value)...
  41. N

    MIDI all notes off

    Yes, it does. This has the feel of "great new idea, nice in theory", spoiled by backwards compatibility and divergent implementations in practice. Also the "not in OMNI mode" caveat at least has some justification.
  42. N

    MIDI all notes off

    From the MIDI 1.0 spec (my emphasis): So it is efficient if implemented but the safe and secure method, assuming you have a list of notes turned on, is (sadly) sending all the corresponding Note-Off messages. The specification wording is classic post-hoc standardization:
  43. N

    SPI Bus only first declared chip select board reads properly.

    The voltage divider on MISO is a test, not a solution. What voltage did you measure? If your SPI slave devices do not tristate correctly, you will need to add a tristate buffer such as SN74AHCT125. You can then drive the output enable pins to allow data to flow to the selected slave SPI device.
  44. N

    Mixed voltage sources

    > I have a bunch of TL074 quad op-amps around, so I would use one of them since it works with 5V just as well. No, it doesn't. TL072 and TL074 do not work well a couple of volts away from the rails, which is fine with a ±10V swing on ±12V or ±15V rails; not so great with ±5V rails. In...
  45. N

    cannot get FreqMeasure Library to work on Teensy 4.0

    Do you have any input conditioning, filtering, squaring circuitry such as this or is the signal generator connected directly to the pin?
  46. N

    filter cut off frequency and keyboard tracking

    You are doing calculations in the linear, frequency domain: converting MIDI note to a frequency then adding a scaled offset. That will not work because perception of pitch is logarithmic, not linear. Instead convert your example filter resonant frequency (here 1000 Hz) into a MIDI note and then...
  47. N

    different MIDI Channels Out via USB or 5 Pin

    Deleting a post is not helpful to others. Posting what solution you found, on the other hand, is. I assume you found that Teensy has many serial outputs and thus, sending some messages on channel 1 to one DIN MIDI and others on channel 2 to a different DIN MIDI is fairly easy?
Back
Top