SLIDING POTENTIOMETER / DJ FADER - Arduino tutorial #23

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 39

  • @BasonTech
    @BasonTech  4 года назад

    👉 Don't forget to check arduino-tutorials.net for more Arduino tutorials and projects.
    If you have questions, don't hesitate to ask them in de comments. Remember: There are no stupid questions 😃

  • @fatihcemalcan3280
    @fatihcemalcan3280 Год назад +1

    If we use exponential function of input, we can get linear result. It is very easy to convert from log to linear.

  • @JackiBoomer2
    @JackiBoomer2 8 месяцев назад

    Heyy! How could I read direct digits like if 1000-1022 for example. If you could please provide code you will be AMAZING!

  • @Dennis4Videos
    @Dennis4Videos 4 года назад +1

    Goede video, ga zo door!

  • @franciscorequenaavila9088
    @franciscorequenaavila9088 Год назад

    There is a configuration in the pin-out for only uset like a potentiometer without voltage?

    • @BasonTech
      @BasonTech  Год назад

      Sorry I don't really get your question. Could you maybe give some more details?

  • @charliealgert646
    @charliealgert646 4 года назад +1

    How could I connect multiple potentiometers to one Arduino all for different functions? I have 10 pots and I want to make a set of volume faders. Would I need more than one Arduino?

    • @BasonTech
      @BasonTech  4 года назад +1

      Hi Charlie, the easiest is an Arduino Mega which has 15 analog-in pins. However with an UNO it is possible as well, using a techniques like multiplexing.

    • @charliealgert646
      @charliealgert646 4 года назад

      Bas on Tech I am using the Leonardo with a multiplexer. Will this work?

    • @BasonTech
      @BasonTech  4 года назад

      If you only need 10 analog inputs, you don't have to use a multiplexer since the Leonardo has 12 analog inputs. 😃

  • @mortezakhedri5915
    @mortezakhedri5915 Год назад

    Hi Sir. can you please tell me which sliding potentiometer ist smooth-running? i bought one but its tough

    • @BasonTech
      @BasonTech  Год назад

      Haven't tried these myself: uk.farnell.com/c/passive-components/potentiometers-trimmers-accessories/slide-potentiometers I think the more expensive ones could be a lot smoother.

  • @Stagmike
    @Stagmike Год назад

    Can you connect a led to fade with sliding the pontetiometer???

    • @BasonTech
      @BasonTech  Год назад

      Sure! The potentiometer just gives you a value, you can use it any way you'd like 😃

    • @Stagmike
      @Stagmike Год назад

      @@BasonTech I did a program that takes values from lightsensors to give number's to pure data on pc and I made an other program that use 3 ponts.

    • @Stagmike
      @Stagmike Год назад

      When I combine the codes it make a lot of noise to one pont. Signal

  • @investin_selfcare1612
    @investin_selfcare1612 Год назад

    Hi can you help find potmeter datasheet and how can I convert voltage output into mm

    • @BasonTech
      @BasonTech  Год назад

      I guess you have to measure this yourself. In order to have a very accurate mapping in mm and the resistance you'll need a more "professional" sliding potentiometer.

  • @lambdasigma7429
    @lambdasigma7429 2 года назад

    Can I measure a short distance (4mm), Resolution 0,1mm with that?
    The measurement is about the Position of a valve

    • @BasonTech
      @BasonTech  2 года назад

      This potentiometer has nothing to do with distance, but with resistance. Therefore it is not possible to determine a certain movement of the slider and convert this into mm movement.

  • @poojithavaddinuru8393
    @poojithavaddinuru8393 Год назад

    In seral monitor I cant get the value as 0 can u please suggest how to rectify this

    • @BasonTech
      @BasonTech  Год назад

      What is the range of the values you can get in the serial monitor?

  • @micahlingle1060
    @micahlingle1060 2 года назад

    Is there a way to do this purely through hardware without the analogRead()?

    • @BasonTech
      @BasonTech  2 года назад

      What do you mean by "purely through hardware"?

    • @micahlingle1060
      @micahlingle1060 2 года назад

      @@BasonTech I was doing a project and using the Mozzi library which doesn't allow you to use most interrupt functionalities. Luckily I realized the authors implemented their own version of analogRead() called mozziAnalogRead(). Thanks for the help though!

  • @bidomo
    @bidomo 3 года назад

    Can this be used without the PCB without problems?

    • @BasonTech
      @BasonTech  3 года назад

      I can not guarantee anything 😉 but basically it is just a variable resistor, like a potentiometer. So I don't see what kind of problems it could give when used without the PCB

  • @reivsinim7031
    @reivsinim7031 4 года назад +1

    How Can i See the Solution of the challenge?

    • @BasonTech
      @BasonTech  4 года назад

      Hi, in the description of the video you'll find a link to the course material. This contains the .ino file for the challenge. Make sure you've tried it yourself first, otherwise you've learnt to copy/paste 😃

  • @gaby1491
    @gaby1491 4 года назад

    if you use this as a digital caliper you can get a resolution of 0.01mm which is not bad because the Arduino ADC is 10bit, but the ADC on a ESP32 is 12bit, so the possible resolution is 0.005mm which is even better!

    • @BasonTech
      @BasonTech  4 года назад

      Keep in mind that using a sliding potentiometer will only work as a caliper when it has a linear scale. The non-lineairs will give you the wrong values 😃

    • @gaby1491
      @gaby1491 4 года назад

      @@BasonTech the logarithmic ones can still be used for this purpose but the math is a little bit more difficult.

    • @BasonTech
      @BasonTech  4 года назад

      Fair enough, although I think buying a lineair one could save you some headache figuring out the math 😉

    • @gaby1491
      @gaby1491 4 года назад

      @@BasonTech the function is already made by others

  • @Boslandschap1
    @Boslandschap1 3 года назад

    I have a question: what happens when you use 3.3v instead of 5v to connect the potentiometer?
    The project I am working on uses a Teensy 4.1, and they only have 3.3v available.

    • @BasonTech
      @BasonTech  3 года назад

      According to the specs on arduino-tutorials.net/r/mleya8 this sliding potentiometer supports both 5V and 3.3V.

  • @jacasoasheland6815
    @jacasoasheland6815 4 года назад +1

    If you're looking to use this as a game controller, you need a Leonardo or Pro Micro. Uno won't work

    • @BasonTech
      @BasonTech  4 года назад

      Didn't knew the Leonardo could also be used as a HID, thanks for sharing! 😃