Ep: 9 - How to Wire and Code Potentiometers for Arduino | Build Your Own Flight Simulator

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Learn the fundaments of the humble potentiometer so you can efficiently and effectively use potentiometers in your cockpits and future projects! This tutorial will be the basis for Ep.10!! Then learn how to easily code your arduino to read the value of the potentiometer 😃
    0:00 - Intro
    0:19 - What is a Potentiometer
    0:40 - How To Read Code on Potentiometer
    1:31 - How to Wire a Potentiometer
    7:05 - How to Code with a Potentionmeter (analogRead)
    10:00 - How to Use Arduino Serial Monitor
    13:41 - Understand Values from Potentiometer
    Download the latest design files for our previous tutorials here!
    cults3d.com/en/users/aHornets...
    ✏️ Fusion 360: www.autodesk.com/products/fus...
    - Download Free Trial / Personal Use
    🕹 Digital Combat Simulator: www.digitalcombatsimulator.com
    - Free Trails on most aircraft!
    🎶 Music: www.epidemicsound.com
    Instagram: / ahornetsnest
    Facebook: / ahornetsnest
  • Hry

Komentáře • 30

  • @19PipoGarcia
    @19PipoGarcia Před 6 měsíci +2

    "Thanks again, Scott, for the new tutorial. We are now moving on to the practical part. Greetings."

    • @aHornetsNest
      @aHornetsNest  Před 6 měsíci

      🙌🏻🙌🏻 looking forward to it!! See you next episode

  • @kenny9446
    @kenny9446 Před 6 měsíci +3

    These are really excellent, informative videos re the Arduino wiring and coding. Thanks very much. And the design and build stuff is very impressive!

    • @aHornetsNest
      @aHornetsNest  Před 6 měsíci +1

      Thankyou!!! I’m glad you like them 😃

  • @wardker
    @wardker Před 6 měsíci +1

    These are amazing tutorials. They belong to the best on CZcams. You give us the tools and knowledge to start building our own. Thank you very much!!!

    • @aHornetsNest
      @aHornetsNest  Před 6 měsíci

      Thank you so much!! I really appreciate that 😃 see you next episode 🙌🏻🙌🏻

  • @HeliShed
    @HeliShed Před 6 měsíci +1

    Excellent!! I can see already how the potentiometer would be used for lighting. Thank you!!

    • @aHornetsNest
      @aHornetsNest  Před 6 měsíci +1

      🙌🏻🙌🏻 thank you! I should have a backlighting episode coming up soon :)

  • @Serhy0
    @Serhy0 Před 6 měsíci +2

    Amazing as always! Thank you for these videos!😁

    • @aHornetsNest
      @aHornetsNest  Před 6 měsíci +1

      Thank you!!! 🙌🏻🙌🏻🙌🏻

  • @goutchgoutch
    @goutchgoutch Před 6 měsíci +1

    And one more great tutorial. Thanks a lot. I’m eagerly awaiting the next one😊

    • @aHornetsNest
      @aHornetsNest  Před 6 měsíci

      Thank you!!! See you next episode 😃😃 only a few more left until we start building the FA-18 !

  • @Jambock86
    @Jambock86 Před 6 měsíci +1

    Thanks a lot for the vídeo! Always learning something new here!

    • @aHornetsNest
      @aHornetsNest  Před 6 měsíci +1

      Thanks mate!!! See you next episode where we learn to pass 8 inputs through 1 input pin! Saving heaps of pins 😃

    • @Jambock86
      @Jambock86 Před 6 měsíci +2

      @@aHornetsNest Cool! Thats a trick for sure I want to learn! 😲

    • @aHornetsNest
      @aHornetsNest  Před 6 měsíci

      🤓

    • @MrDjmid
      @MrDjmid Před 6 měsíci +1

      Anther great video ❤
      How about to connect this Pot to DCS module?

    • @aHornetsNest
      @aHornetsNest  Před 6 měsíci +1

      Thanks for the comment!!! That’ll be coming next lesson when we look at adding Analog Inputs to DCS Bios!!! See you next episode 😃😃

  • @MrChuckNorris1984
    @MrChuckNorris1984 Před 6 měsíci +1

    I just found this channel and its exactly what I am looking for. Are you going to build a entire F18 Cockpit and continue to provide free stls? Cause if so I am hopping on this train!

    • @aHornetsNest
      @aHornetsNest  Před 6 měsíci

      Hey mate! Thank you for comment :D yeah it will be a full F-18 cockpit! 😃 I will show you as we progress where to get all the files so you can build along as well 😃

  • @reservoirdog1099
    @reservoirdog1099 Před 6 měsíci +1

    Scott , I love the videos. Very new to all this but super excited to dive in. Do you use the k40 laser engraver and what laser head do you have / recommend?

    • @aHornetsNest
      @aHornetsNest  Před 6 měsíci

      Thanks mate! I use what could be called a K50. It’s a 50 Watt version of the K40 with a larger bed and couple extras
      It runs a 50.8mm focal length lens, which allows a nice mix of engraving and cutting

  • @technomattanbadbollisch1113
    @technomattanbadbollisch1113 Před 5 měsíci +1

    Thanks Scott, for all your great videos.
    I have come along with my Viggen-cockpit thanks to you, and now its Potentiometers turn for my Arduino Uno.
    I didn´t got any value from any of my Analog PINs so i wounder...
    1. Does the viper on the pot. have to stand on zero when the sketch is uploaded?
    2. Can the Arduinoboard´s PINs damage if they get -voltage? (For example if I connected the ground and +5V to the wrong sidepins on the pot.)?
    (And, Yes, I have measured and tested the Collective wire from the pot. ;).
    3. Can this sketch be used to test if the Analog PINs A0-A5 works, by connecting a wire from the board´s +5V to Analog PIN (that number of the potPin in the sketch)?
    Thx! : )
    / "Mattan".

    • @aHornetsNest
      @aHornetsNest  Před 5 měsíci +1

      Hey mate
      The wiper can be at any position, as it’ll just read automatically after upload
      You shouldnt damage the pin doing that, purely because when the pot is full clock wise it’ll be inputting 5V through that pin anyway
      Can you send me your code on Instagram?
      Yeah you can definitely test it that way

  • @Magpie...
    @Magpie... Před 5 měsíci +1

    Are hall sensors similar to this?

    • @aHornetsNest
      @aHornetsNest  Před 4 měsíci

      Hey mate! Similar but they have a different way of sensing - I’ll make tutorial about them so people can see the difference :)

  • @Magpie...
    @Magpie... Před 4 měsíci +1

    Say if you had a 3 turn switch but you wanted to match the rotation 1:1 for say the p47 trim wheel that only needs 2 spins. How would you map that in dcs bios?

    • @aHornetsNest
      @aHornetsNest  Před 4 měsíci

      Mmmmmm an option could be gearing the potentiometer so it gears down the spin
      So it matched
      this would be an interesting one to try 😃

    • @Magpie...
      @Magpie... Před 4 měsíci +1

      @@aHornetsNest in dcs I’d just put a dead zone at say 15 percent from each end of the axis. I just don’t know how to do it in bios

    • @aHornetsNest
      @aHornetsNest  Před 4 měsíci

      Ahhhh folllowing! Nice one 😊