Search results

  1. M

    Internal ADC on T4, different value using ON/OFF button

    Have you considered waiting some time before reading the analog value? The internal capacitor may take a while to get saturated after a complete power loss.
  2. M

    Teensy 4.1 + MCP23017 examples

    I use a MCP6002. I was advised to use that due to the 3V3 voltage I am using in my circuit.
  3. M

    Teensy 4.1 + MCP23017 examples

    I am about to do exactly the same - MIDI controller, 4067s, resistance values (from FSRs). I had to put an opamp in between to have a low impedance signal at the analog pin, that improved things greatly.
  4. M

    Teensy 4.1 + MCP23017 examples

    Glad to hear that. I am at a similar task but have to read many analog inputs in short intervals and I am going to try that by polling as well.
  5. M

    Teensy 4.1 + MCP23017 examples

    Yeah, whatever serves your purposes best. I was just calculating that 5ms would cover 200BPS (that is, 12000BPM) - most probably you will not be able to press and release pads that fast. And the 5ms in between are a lot of time for the Teensy to do something different.
  6. M

    Teensy 4.1 + MCP23017 examples

    Interesting! One question, though: you are reading the multiplexer in the version without interrupts every loop cycle. Given the speed of the Teensy 4.1, I reckon this will be much too often to only catch button presses. Worse, it will slow down the loop while waiting for the I2C transfer to...
  7. M

    print cumulative histogram of measurements of analog pin via Teensy 4.x to serial

    Thank you for these reports. They came just in time for my endeavours!
  8. M

    ADC library, Teensy 4.1: setSamplingSpeed() errors

    Ah, so I will have to set both ADCs separately? I was under the impression that there are calls affecting both and separate for each. There is no common call to set both in one, I suppose?
  9. M

    ADC library, Teensy 4.1: setSamplingSpeed() errors

    I am starting to use the ADC library (https://github.com/pedvide/ADC) on the Teensy 4.1. The basics seem to work, but when I tried to change the sampling speed by adc.setSamplingSpeed(ADC_SAMPLING_SPEED::LOW_SPEED); I get thrown the following error: src\main.cpp: In function 'void setup()'...
  10. M

    Teensy 4.1, USB MIDI init failing

    Thanks! I will try that today - I found a resource in the meantime stating the same. There seems to be a predefined usbMIDI device then, that will not need any declaration.
  11. M

    Teensy 4.1, USB MIDI init failing

    Thanks, Paul. I know that page, but it relies on the Arduino IDE menu. I am using PlatformIO and would like to learn what to write without the help of that menu. I already added the "UUSB_SERIAL -DUSB-MIDI" flags to platformio.ini.
  12. M

    Teensy 4.1, USB MIDI init failing

    Hi, I am trying to bring my T4_1 to send out MIDI messages via USB. I have the following statement at the begining of my code: MIDI_CREATE_INSTANCE(HardwareSerial, SerialUSB, midiB); (I picked it from an example I found on the net) But this is giving me a compiler error (on PlatformIO): In...
  13. M

    FastLED, SK6805, Teensy 4.1 and a Teensy rookie = full white only

    Would that work for the SK6805 as well?
  14. M

    FastLED, SK6805, Teensy 4.1 and a Teensy rookie = full white only

    Hi there, I am new to the Teensy world (while somewhat experienced with Arduinos and ESP32s) and doing my very first steps on the Teensy 4.1. I tried to play a little with three SK6805 RGB LEDs, the FastLED lib and the Teensy. THe following sketch ran on an Arduino Nano (except different pin...
Back
Top