Search results

  1. J

    Best practice for many-button controller

    Thanks. I've updated it to use elapsedMillis instead of short delays. I'll see how it goes once I get all of the switches soldered. I've tried them all in isolation. If I need to switch to callbacks I can do that but the Button class is in the Bounce library I believe, and I'd rather stick with...
  2. J

    Best practice for many-button controller

    Hello, I have a project which has a mixture of 10 buttons and toggles, and 2 rotary encoders. The idea is that all of them will send joystick button presses. Some toggles will be on/off like a button, but some will send a momentary joybutton push when toggled. The rotary encoders will send a...
  3. J

    Input with LED switches

    So each switch will look like this: https://impur.com/a/b9xya I'll work on R to get the current through the LED to be 10-15mA. But each one of these switches would draw from the 3v3 pin which gets power from the regulator. Total I'm planning on 10-11 switches and buttons that are lit. So...
  4. J

    Input with LED switches

    I have no data sheet for these switches. I have a couple of different kinds with different sized LEDs, but I don't know their ideal operating current/voltage, or their maximum. Is there a rule of thumb for what current I should be aiming for? Also a factor that would play into that. What...
  5. J

    Input with LED switches

    Ok, so that seems to work. Both VIN and the 3.3v as high seem ok, the 3.2 Teensy copes woth both. I didn't put a resistor when using the 3.3v, the LED seems to have enough resistance. Unless anyone has any objections I think my above assumption works.
  6. J

    Input with LED switches

    Is the way to connect the top pin to a voltage source, the LED pin to a ground through a resistor (1k?), and the third pin as an input with the code set to PULL_DOWN? What pin is recommended for +ve voltage? VIN or a 3.3v one?
  7. J

    Input with LED switches

    I have some nice toggle switches with LEDs in the shaft. They didn't come with a diagram, but best I can tell it's essentially this: https://imgur.com/a/hngY4 What is the best practice for using this as a digital input? If I use the pull-up method then closing the switch and grounding the pin...
  8. J

    Power switch when using USB for power (Teensy 3.2)

    Hello, I'm using a Teensy 3.2 and I'm going to use the USB connector for power, but I'd like to switch on/off the device with a physical switch without having to remove the USB. Could I do that by holding the reset pad on the back side of the board low? What value of resistor should I use to...
  9. J

    Simple USB keyboard project

    Do people typically debounce in hardware or software? Since the Teensy is pretty smart it would seem that a software solution would work well.
  10. J

    Simple USB keyboard project

    Good question. I was planning to have the device look exactly like a keyboard for maximum compatibility and minimum software required. So there will be no feedback coming from the computer that I can think of. For example a covered flip switch that lights a light in the up position just from...
  11. J

    Simple USB keyboard project

    I've searched the previous project guidance posts, but so far nobody seemed to want to do something as simple as me :) I'm looking to make a switch box that will appear as a USB keyboard. The main purpose of which would be to make a nice control input for Elite Dangerous. It's a much simpler...
Back
Top