Sto costruendo un handbrake per simulatori da affiancare al mio trustmaster t300, ho deciso di optare per un freno idraulico normale per poi adattarlo con un potenziometro lineare collegato ad Arduino (seguendo questo tutorial: HOW TO MAKE A USB ANALOG HANDBRAKE | SIM RACING DIY EBRAKE - YouTube); ora collegando il tutto ed eseguendo la taratura standard con Windows sembra funzionare regolarmente però ho un problema: il potenziometro è lungo circa 10cm e leggendo i valori del pin analogico A0 fluttuano fra un 80 e 1023, però già spostando il potenziometro di 1 cm si raggiunge il valore di 1000, quindi i restanti 9 cm mi restituiscono un valore fra 1000 e 1023.
Ora come freno a mano per sim racing impostato così appena applico una leggera forza il freno agisce subito invece vorrei che sia più progressivo lasciando più corsa a disposizione.
C'è un modo di regolare arduino in modo che legga i valori del potenziometro come voglio io?
Spero di essermi spiegato e grazie a chiunque mi dia una mano
Sounds like a logarithmic potentiometer. And connected 'the wrong way around'.
Google translate of opening post
Hi everyone I hope to be in the right section
I am building a handbrake for simulators to work with my t300 trustmaster, I decided to opt for a normal hydraulic brake and then adapt it with a linear potentiometer connected to Arduino (following this tutorial: YouTube = kv0FTpRLFMY); now by connecting everything and performing the standard calibration with Windows it seems to work regularly but I have a problem: the potentiometer is about 10cm long and reading the values of the analog pin A0 they fluctuate between 80 and 1023, but already moving the potentiometer 1 cm you reach the value of 1000, so the remaining 9 cm give me a value between 1000 and 1023.
Now as a handbrake for sim racing set up so as soon as I apply a slight force the brake acts immediately instead I would like it to be more progressive leaving more stroke available.
Is there a way to adjust the arduino so that it reads the values of the potentiometer as I want?
I hope I explained myself and thanks to anyone who gives me a hand
This image shows your Artduino clone, but it looks like the wires aren't soldered to the Arduino.
That's a great way to get unwanted results, so make sure there's a good connection by soldering the wires to the PCB (that's what those holes are meant for).
This image shows your slide-potentiometer.
You connected red (VCC) to pin 2, black (GND) to pin 3 and yellow (Analog in 0)to pin 1.
As sterretje suspected, that's the wrong way of connecting it.
Pin 1 and pin 3 get the power to your potentiometer, and pin 2 is connected to the slider so that's you variable resistance / voltage.
This is a link to a slide potentiometer with the same description (click !), so perhaps you could learn more about it that way.
Take a look at the field next to the field marked "Residual Resistance"; you'll see the pins mentioned and can find out how to connect it that way in case you doubt my remark above.
Of course you could also find out for yourself by utilising a multimeter in resistor mode.
I'm not really sure, but i think the B marking on your pot means it's a linear pot and not a logarithmic one.