New project - MSFS C++ USB interface


+ Reply to Thread
Results 1 to 40 of 167

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,635


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    the pull down resistor is a bad idea, the hackaday article [if you wish to trust it] does not have one and does not suggest one.
    biasing cmos inputs to values inbetween logic high and logic low thresholds is a proven method for making oscillators , i would not recommend it as a debounce cct. the input pin in the article is never in a floating state regardless of button state, unused cmos input pins cannot be left to float, a completely different thing
    Warning I'm not a teacher

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    I guess you refer to post #89. There are no pull downs. It was a graphic design error that meant to be a capacitor, as designated by the letter C.

    Ioannis
    Last edited by Ioannis; - 15th January 2024 at 21:16.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    Quote Originally Posted by richard View Post
    the pull down resistor is a bad idea, ...
    Thanks for keeping an eye open for me. It's now removed.

    "Wat waz messa tinking." - Jar Jar
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    There's a god discussion on Reddit about JLCPCB.

    https://www.reddit.com/r/PCB/comment...than_everyone/


    - I remember a time when Made in Japan was a joke, and then they joined the leaders in electronics.

    - I remember a time when Korean cars was ridiculed, and now they made products that compare or surpass American models.

    - I remember a time when Made in China meant cheap crap that broke easily, and now they are rivaling and even beating some North American PCB fabricators.

    We keep sitting on our laurels while the planet passes us. I really want to encourage local businesses, but it's becoming impossible at these prices.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,635


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    This cropped up recently on arduino forum as a debounce in noisy [automotive] enviro as an effective debounce method

    Name:  big-debounce.jpg
Views: 3452
Size:  15.7 KB
    Warning I'm not a teacher

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    Quote Originally Posted by richard View Post
    This cropped up recently on arduino forum as a debounce in noisy [automotive] enviro as an effective debounce method

    Yeah, I've saved an article from February 2020 about this one too:

    https://www.eejournal.com/article/ul...bounce-part-3/


    I had even tried it without success, but I used a breadboard and that most likely caused me a ton of bad connections. This last batch I got from AliExpress leaves a lot to be desired.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    The reason why I'm sticking with the Hackaday design is because the front end is recommended by Bourns with their rotary encoders (page 3).

    https://www.bourns.com/docs/Product-...ets/PEC11R.pdf


    I figure if they can recommend this design with their products, it's gotta have some merit when you consider how easily liability lawsuits get thrown around in the US.

    Unless I'm mistaken, the Elliot Williams design from Hackaday that I'm using is exactly the same, but with the Schmitt Trigger added at the back end.


    About that other technique of just storing the state in a bunch of bits, and then checking for a "clean press", Elliot encountered a problem with a "janky button".

    https://hackaday.com/2015/12/10/embe...i/#more-180185
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  8. #8
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: New project - MSFS C++ USB interface

    If a button has serious problem, it has to be replaced.

    The usual, normal behavior of a metal contact switch is to bounce a few ms and then settle. That is why a 10ms debounce is most recommended. More may be better if you can spare the time, either in software or hardware.

    In your case, with so many buttons, you will be using too many components. All these can be just fine be replaced with a few more lines of code for free. And with less posibility for a component or soldering it ot pcb to fail.

    Ioannis

Similar Threads

  1. USB interface
    By Frozen001 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th December 2011, 19:37
  2. Host for USB interface?
    By Carrasco in forum Off Topic
    Replies: 4
    Last Post: - 3rd August 2007, 23:59
  3. USB Interface using PIC
    By Tissy in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 22nd May 2006, 16:04
  4. USB interface from PIC16F877 to PC
    By headshouter in forum USB
    Replies: 0
    Last Post: - 26th February 2006, 04:58
  5. USB project
    By NL2TTL in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 18th January 2005, 21:59

Members who have read this thread : 12

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts