New project - MSFS C++ USB interface


+ Reply to Thread
Results 1 to 40 of 170

Hybrid View

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


    Did you find this post helpful? Yes | No

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

    you sketch is incorrect , with button pressed v test == 0.45 v

    Name:  de.jpg
Views: 4336
Size:  259.4 KB
    Warning I'm not a teacher

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


    Did you find this post helpful? Yes | No

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

    Quote Originally Posted by richard View Post
    you sketch is incorrect...

    I used this guys design.

    https://hackaday.com/wp-content/uplo...uncing-sch.png


    His explanation is here:

    https://hackaday.com/2015/12/09/embe...uttons-part-i/


    I've seen this design in other places. The 3rd resistor is to prevent the input pin from floating.
    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!

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,695


    Did you find this post helpful? Yes | No

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

    i see , you need to know the leakage current from the ST gate input to calculate the voltages . after the rc time constant is allowed for of course
    seems messy to me , at 100k the button may never work depending on ST characteristics
    Warning I'm not a teacher

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


    Did you find this post helpful? Yes | No

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

    Quote Originally Posted by richard View Post
    ..., at 100k the button may never work depending on ST characteristics

    That's why I tested using a pushbutton and checked the voltage out the RC circuit.

    The reading did fall to 0V for all configurations.
    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
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

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

    Better be on the safe side. Richards #91 is the one I would use.

    But then you can ditch all that stuff if your ports support internal pull up and just read them in software as described in #86.

    Ioannis

  6. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    2,695


    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

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    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 22:16.

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


    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!

Similar Threads

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

Members who have read this thread : 7

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