Search results

  1. F

    Drawing using Mouse object in MacOS

    I'm working on a touch tablet using a resistive touchscreen under MacOS for drawing in an MS Paint style program (it seems TouchscreenUSB doesn't work in MacOS). Using Teensy 3.5. While I can get single point clicks to work, I can't hold the left mouse button down to draw continuously-- it...
  2. F

    Keypad library seems to be broken on Teensy LC at least ~ clock speed

    This implementation appears to work correctly: https://www.baldengineer.com/arduino-keyboard-matrix-tutorial.html Unfortunately it's very barebones.
  3. F

    Keypad library seems to be broken on Teensy LC at least ~ clock speed

    Hmm changed line 68 of Keypad.cpp from INPUT_PULLUP to INPUT and put a 10k pull up on the row pin (15) since it's the rows that were set to INPUT_PULLUP. DMM on pin 15 and it's always 3.3v. Hmm am I missing something else? relevant lines from Keypad.cpp void Keypad::scanKeys() { //...
  4. F

    Keypad library seems to be broken on Teensy LC at least ~ clock speed

    That seems to let me make it worse but not better. I have DMM on it and the switch reads 180 ohms when pressed. I can press it 7 times in a row and I'll get usually about 4 key presses acknowledged. If I lower debounce time below 10 not surprisingly I sometimes get multiple presses for one...
  5. F

    Keypad library seems to be broken on Teensy LC at least ~ clock speed

    It's just the CustomKeypad example Arduino provides. Below is the example with some extra debugging lines added and changed to a 1x1 matrix. I feel like I should be logging a bug somewhere, but no idea where. I tried poking around the library but not seeing why it might stop working at faster...
  6. F

    Keypad library seems to be broken on Teensy LC at least ~ clock speed

    Hi all, Keypad library appears to be at least semi-broken on Teensy LC. Lowering clock speed appears to help somewhat. Wondering if anyone has suggestions for alternatives? I had a 4x6 matrix keypad fully working with I think a Teensy 2.0 some time back. I wired the same matrix up to a...
  7. F

    4-Wire Resistive Touchscreen - Bogus X/Y data on touch and lift off screen

    So I'm returning back to a project I shelved a few months ago-- basically a digital drawing pad using a large 4 wire resistive touch screen stuck to an LCD, interfaced to a Teensy LC. The wiring is very basic for a 4 wire resisitve touch screens, it's just two variable resistors, one for X and...
  8. F

    Digital inputs switching on their own in a very electrically noisy environment

    I ended up using a combination of software and low pass filtering. Since I had so many input lines to filter, I couldn't use very big caps. I tried three different combos of cap and resistor and was able to determine the cut off frequency needed to filter out the noise. Added functionality to...
  9. F

    Teensy 4.0 USB-MIDI host issue

    Oh lord am I happy Google found this post. I upgraded to Teensy 1.52 on MacOs and after recompiling and pushing to a customer's Teensy based device that I have for repair, the Teensy would freeze after sending a few dozen MIDI messages. I tore my hair out all afternoon trying to figure out...
  10. F

    Digital inputs switching on their own in a very electrically noisy environment

    I have a Teensy 4.1 in a shielded environment, with a 25 foot cable run connected to many switches in a very electrically noisy environment (acoustically, too). Have previously used Teensy 2++ and one of the Teensy 3 models (I forget which) successfully at least a dozen times; not sure if that...
  11. F

    Generating 10 independant square waves

    Well I managed to create 10 pretty good square waves using just the interval timer set to 5ms. I tried 1ms but the wave was not consistent. I had to really optimize my timer function so that it is just one loop and one simple if. Next up, I'll throw serial comms into the mix and see how...
  12. F

    Generating 10 independant square waves

    I'm guessing it's not possible to generate 10 square waves of different frequencies with one Teensy, but wanted to see if I was wrong about that - maybe some software way to get around it. I am currently using a Mega to generate 4 such square waves in the range 15hz to 2khz. I actually had to...
  13. F

    MIDI+serial profile for Teensy 3.1?

    My projects seem to require different profiles than are provided... I've already hacked a joystick only profile (from the USB HID profile that also included a keyboard and mouse) but now I need to communicate with Teensy 3.1 based MIDI device via a virtual COM port. This is due to a limitation...
Back
Top