👉 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 😃
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.
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?
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.
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.
@@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!
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.
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 😃
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
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!
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 😃
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.
👉 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 😃
If we use exponential function of input, we can get linear result. It is very easy to convert from log to linear.
Can you connect a led to fade with sliding the pontetiometer???
Sure! The potentiometer just gives you a value, you can use it any way you'd like 😃
@@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.
When I combine the codes it make a lot of noise to one pont. Signal
There is a configuration in the pin-out for only uset like a potentiometer without voltage?
Sorry I don't really get your question. Could you maybe give some more details?
Goede video, ga zo door!
Thanks! 😃
Hi can you help find potmeter datasheet and how can I convert voltage output into mm
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.
In seral monitor I cant get the value as 0 can u please suggest how to rectify this
What is the range of the values you can get in the serial monitor?
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?
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.
Bas on Tech I am using the Leonardo with a multiplexer. Will this work?
If you only need 10 analog inputs, you don't have to use a multiplexer since the Leonardo has 12 analog inputs. 😃
Hi Sir. can you please tell me which sliding potentiometer ist smooth-running? i bought one but its tough
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.
Is there a way to do this purely through hardware without the analogRead()?
What do you mean by "purely through hardware"?
@@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!
Can I measure a short distance (4mm), Resolution 0,1mm with that?
The measurement is about the Position of a valve
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.
How Can i See the Solution of the challenge?
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 😃
Heyy! How could I read direct digits like if 1000-1022 for example. If you could please provide code you will be AMAZING!
Can this be used without the PCB without problems?
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
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!
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 😃
@@BasonTech the logarithmic ones can still be used for this purpose but the math is a little bit more difficult.
Fair enough, although I think buying a lineair one could save you some headache figuring out the math 😉
@@BasonTech the function is already made by others
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.
According to the specs on arduino-tutorials.net/r/mleya8 this sliding potentiometer supports both 5V and 3.3V.
If you're looking to use this as a game controller, you need a Leonardo or Pro Micro. Uno won't work
Didn't knew the Leonardo could also be used as a HID, thanks for sharing! 😃