For an artistic project, I’m trying to make a sensor, like a potentiometer to get 0-1024 values, using a metal or an iron ball. I’ve made a sketch to explain it (attached jpeg file). On the sketch, it’s a line, but in fact, the ball will have to turn around a circle of 190 cm of circumference (with a stop at both ends).
What I’m looking for is the best way to build it, to get enough resistance in the GND to 5v loop to generate a 0 to 1024 value that can be interpreted by the arduino. It’s like making a sensor with graphite and reading the value true the A0 pin.
I tried with different materials:
- cutting wire (for resistance); it becomes to hot, but I do have my values, even in 5V with high amperage. And if I’m using low amperage, such as the 5V output of an arduino, it doesn’t work (maybe I did’nt use it well),
- conductive vinyl; the idea is nice, but I get some weird values (it’s not stable),
- graphite or bare conductive; could do the job, but it will wear out quickly for an intense use.
Any idea of materials ?
Thank you for your help !