I'm using an Arduino servo motor and two sets of potentiometers. I have a linear potentiometer and a second potentiometer which determines the position of the ball on the beam This second potentiometer consists of two conductors in parallel; an aluminium rod (10mm x 1000mm) that is connected to the 5V DC supply, and a nichrome ribbon of 5mm x 1000mm glued to a wooden dowel for support. The circuit construction is based on this picture:
The goal is to change the resistance on the linear potentiometer and have the system actuate to match the position of the metal ball to the output of the linear potentiometer as demonstrated in the video. My attempts to construct the circuit so far have failed. The output voltage from the system is the same even when the ball is at opposite ends of the beam. I've come to suspect that there is something missing in my apparatus.
I'd like some assistance with the circuit configuration and any additional apparatus that might help me to recreate the system in the video, be it some kind of opamp or the nature of the circuit itself, I think I can figure out the code after that.
What is the total resistance of the resistive wire in the sensor? Make sure that you do not draw more than 20 mA from an output pin.
The Arduino is not a power supply, and the 5V output cannot be used for motors or servos. You will eventually damage the Arduino if you try, so use a separate power supply for the servo.
I am using a completely different 5V power supply for the servo and the resistive beam. I just uploaded the picture to illustrate the circuit I'm using to set up my system. I am not sure if it is the correct circuit connection which is why I am asking. I want help with the proper circuit configuration and the apparatus involved.
Please do not waste your own and forum members' time by posting incorrect circuit details. In your next post, post a wiring diagram (hand drawn is preferred) of the actual circuit you have constructed.
The nichrome wire then is just for an electrical contact and the aluminum rod plus steel ball is a resistive voltage divider. Doesn’t the aluminum wire get pretty warm?
With no current flowing in the nichrome wire, there is no voltage drop to measure.
With 1V across a 38 Ohm resistor, the current is 26 mA, which is quite reasonable. Use an ADC with a 1.1V voltage reference to obtain about 900 steps of position resolution.
I am trying to make sense of post #10. I don't fully understand what it means, could you please break it down for me so I don't make tea with my stuff?
Must be quite long then.
0.75 mm^2 thin aluminium rod/wire is 35.3 ohms per 1000m.
Aliminium oxide is also a good insulator, so aluminium seems to be a poor choice for your project.
Leo..
I exchanged the nichrome and aluminium and I'm finally having a voltage difference. The resistance of the aluminium rod was too small for the task I was using it for and was connected where the nichrome should have been. When I connect everything to a 5V supply, the output on one end is 4.5 and 0.6V at the opposite end. Since it's nichrome it does get quite warm but it's manageable. Thank you, I can't believe the solution was something so simple. Thanks