PaulS's latest activity

  • PaulS
    PaulS replied to the thread Teensy 3.0 or 4.0 for I2C?.
    One thing to keep in mind is that Teensy 4 has 3V3 input/output only, while a Teensy 3 is 5V tolerant in its inputs [but outputs 3V3]. Paul
  • PaulS
    PaulS replied to the thread Teensy 3.0 or 4.0 for I2C?.
    A Teensy3.0 is perfectly capable of doing I2C transactions. There is still a lot of support and knowledge on this forum. But if you want to expand your circuitry/design in the future and need more processing power, or move your project to large...
  • PaulS
    PaulS replied to the thread Teensy 4.1FreqMeasureMulti Library.
    Yes, 5V from Teensy Vin pin to the encoder 5V VCC. And no, no external pullups to 3V3 - just use pinMode(5, INPUT_PULLUP); to enable Teensy's internal pullup. Right, that thought crossed my mind. That capacitor is there as a bulk capacitor to...
  • PaulS
    PaulS replied to the thread AUDIO BOARD.
    You may want to have close look at this page where all the information about the audio adapter is available [schematic, wiring, mounting, reference to the Audio library, etc]. The audio adapter can be used for both the Teensy 4.0 and the Teensy...
  • PaulS
    PaulS replied to the thread Teensy 4.1FreqMeasureMulti Library.
    You don't need to use a levelshifter since the output stage of the encoder you referenced above has "NPN open collector output circuit". See this thread for more info. So just power it by 5V. But do I correctly understand that you want to drive a...
    • 1719257612645.jpeg
  • PaulS
    PaulS reacted to submo's post in the thread Shorting 4.1 in midi interface with Like Like.
    Woah! Woah! Slow down there. You're shorting Ground to 5v!!! Remember that the numbered rows on a breadboard are electrically connected. No wonder your Mac ain't liking it. Remove that ground wire next to the cap, and just put the capacitor...
  • PaulS
    PaulS replied to the thread Teensy 4.1FreqMeasureMulti Library.
    I first tried to use the IntervalTimer but it does not seem to play nicely with the Encoder libary? Hence my use of the elapsedMicros function. Paul
  • PaulS
    PaulS replied to the thread Teensy 4.1FreqMeasureMulti Library.
    Using the Encoder library has never failed me. Did you include INPUT_PULLUP to the inputs? Here is a little setup and piece of code that reads the number of encoder clicks every 1 msec and prints them out. Direction of the encoder is shown by...
    • IMG_20240623_073101.jpg
    • 1719121358713.png
  • PaulS
    PaulS replied to the thread Shorting 4.1 in midi interface.
    I hope you do have a multimeter. If so, what does it read at the orange line when the error ocuurs? Is your 0.1uF capacitor indeed a capacitor? What does "it winds up shutting down" exactly mean? Teensy runs fine but when you connect the...
  • PaulS
    PaulS replied to the thread Teensy 4.1FreqMeasureMulti Library.
    From your description of 4 wires I assume that you have one those 600 or 800 ppr encoders, like this one below? And you want to measure how many pulses per second? I was about to advice the Encoder library as well. It's not that much effort to...
    • 1719078161074.png
  • PaulS
    PaulS replied to the thread Teensy 4.0 C29 and L3 components?.
    C29 is a 10uF decoupling capacitor that could be omitted for getting the Teensy to work again. L3 is a filtering coil. You could "replace" that part by shorting the 2 corresponding PCB pads. Paul
  • PaulS
    PaulS replied to the thread Teensy 4.1FreqMeasureMulti Library.
    What kind of encoders are you experimenting with? I'm trying to get a picture of what your application is and what you want to achieve. Paul
  • PaulS
    PaulS replied to the thread sketch self-delete in runtime.
    When your Teensy is locked, your sketch is encrypted in the flash memory. Why would you bother overwriting when tampered with? Paul
  • PaulS
    PaulS replied to the thread Connect Mulitplexer and Teensy 4.0.
    You're welcome. Feel free to share your schematic (preferably in PDF format) and code for review when you come to that point. There is also a ready-to-go library for the ADG731: here. Paul
  • PaulS
    PaulS replied to the thread tone() question...
    Tone() uses a timer interrupt. Teensy 3.2 has 3 available timers (FTM0,1,2). More info here and here. Paul
  • PaulS
    PaulS replied to the thread Connect Mulitplexer and Teensy 4.0.
    A lot of information can be found at https://www.pjrc.com/store/teensy40.html. The ADG731 multiplexer information can be found here. It is controlled by SPI. More info on SPI and Teensy can be found here. Teensy 4.0 Eagle library here. Paul
  • PaulS
    PaulS replied to the thread Midi interface + Control Surface?.
    Probably 'midi' is used already in the Teensy MIDI library, so instantiating like this USBMIDI_Interface midi_usb; gets rid of the compilation error. Also got rid of the CCButton 'brace-enclosed initializer list' error by changing Channel_1 to...
Back
Top