New project - MSFS C++ USB interface


+ Reply to Thread
Results 1 to 40 of 163

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,825


    Did you find this post helpful? Yes | No

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

    Fortunately PCBs have two sides! Use the other now!

    Ioannis

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


    Did you find this post helpful? Yes | No

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

    At first I went "Aaaaah crap".

    Then I went "YAY! I can use the other side for my tests".

    And then I found out the support pins are staggered and not reversible, "Aaaaah crap".

    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
    Nov 2003
    Location
    Greece
    Posts
    3,825


    Did you find this post helpful? Yes | No

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

    Well, you are not alone! Happened to all!

    Ioannis

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,625


    Did you find this post helpful? Yes | No

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

    So I have a need to override a pushbutton (from ON to OFF) and came up with this concept; a solenoid piggyback on a pushbutton switch with a 3D printed cap held by a strand of wire.




    The system works, except the switch needs about 330 grams of force (according to specs, and my digital scale). The 5V solenoids are nowhere near strong enough, and this 12V variety comes up short. It struggles, but doesn't get the job done.

    I sure could use ideas. It needs about 5mm travel to complete the stroke, and must not interfere with normal switch operations.
    Last edited by Demon; - 25th April 2024 at 23:23.
    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


    Did you find this post helpful? Yes | No

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

    Hall effect switch with small magnet or if there is magnetic field around solenoid coil that the hall effect device can sense

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,625


    Did you find this post helpful? Yes | No

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

    One of the suppliers that had quoted me for that switch with the red shaft has a model with 100gf to operate. The model I am testing now uses 330gf.

    It would be easier to use that switch cause I already have the circuit board tested, as well as a batch of white and yellow caps.

    I just have to test to see if my solenoids can operate it properly (I have a stronger 12V batch coming in).
    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
    2,625


    Did you find this post helpful? Yes | No

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

    Quote Originally Posted by amgen View Post
    Hall effect switch with small magnet or if there is magnetic field around solenoid coil that the hall effect device can sense
    I've never used those types of switches before. Do you have a link?

    I need a latching pushbutton switch to simulate these controls. They have to remain down when pressed ON, and pop out when pressed again OFF.

    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
    3,825


    Did you find this post helpful? Yes | No

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

    Maybe you can use a small stepper motor with linear motion like the ones on the CD head mechanism?

    Like this one https://www.aliexpress.com/item/1005...Cquery_from%3A

    Ioannis

  9. #9


    Did you find this post helpful? Yes | No

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

    not sure if I am understanding what you need, but if you need an indicator that the mechanism is in one position or another then a hall effect switch is just a simple 'proximity sensor'..... when the small magnet moves within range of the IC, that 'trips' the transistor to on until the magnet moves away..... one manufacturer, Allegro

    [URL="https://www.allegromicro.com/en/Insights-and-Innovations/Technical-Documents/Hall-Effect-Sensor-IC-Publications/Hall-Effect-IC-Applications-Guide" [/URL]

  10. #10
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,825


    Did you find this post helpful? Yes | No

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

    The design is based on a classic switch (On/Off) but if I understand correctly, in special cases, the push button should be in a specific state and user is not allowed to change that.

    Ioannis

  11. #11
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,625


    Did you find this post helpful? Yes | No

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

    Quote Originally Posted by amgen View Post
    not sure if I am understanding what you need, but if you need an indicator that the mechanism is in one position or another then a hall effect switch is just a simple 'proximity sensor'...
    I need to override the switch position in software. MSFS will disable one of those leftmost yellow switches under a certain circumstance.

    My first idea was to use momentary switches, and have an LED indicate ON or OFF. But I'd really like to override the switches physically from software.

    And that's why I'm looking at that solenoid design; I can operate the button manually without disruption from the solenoid, and activating the solenoid for a short burst can turn ON or OFF the switch.

    One of my main goals with this product is to simulate as much as possible the visual switches in MSFS - within budgetary reason.
    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, 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 : 25

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