'POT' issues with long cable


Closed Thread
Results 1 to 40 of 41

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    448

    Default 'POT' issues with long cable

    I have designed a circuit around the 16F887, with a resistor/capacitor combination on PortA.6 being read with the 'pot' command.

    Earlier, I had these connected to PortA.5, had wierd results, and realised that that pin was a Schmitt input.

    Now, things are fine on the workbench. However, the capacitor is to be located remotely as a sensor (about 50 meters), and when I did this using a standard non-shielded 2 core wire, the readings are no more consistent.

    My question, before I buy the cable, is would shielded cable perhaps help?

    Or would co-ax cable, the kind used for cable TV be even better?

    Or neither, I need to look at another solution altogether?

    Also, if I use either of the above, can this cable be run in close proximity of the mains without the readings going haywire again?

    Any advice would be highly appreciated, folks!

    Regards,

    Anand Dhuru

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I think you need another solution. The long wire will have capacitance of it's own.

    But, the same setup may work using the ADC on your chip.

    Capacitor as a sensor? What exactly are you doing?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    I think you need another solution. The long wire will have capacitance of it's own.
    Yes, I thought of that. But this shouldnt be a problem, I can calibrate the unit once to compensate for the cable capacitance.

    Its actually a string of 10 capacitors in series immersed in a water tank. The water shunts out each capacitor as the level rises.

    I did have an earlier version with the resistance being a variable, using the ADC, but this tends to get corroded within a few weeks.

    The capacitive version seems to work well, but for this problem; and seems to have no corrosion issues either. Would be a pity to have to abandon this design.

    Any other ideas?

    Anand

  4. #4
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    I did have an earlier version with the resistance being a variable, using the ADC, but this tends to get corroded within a few weeks.
    You can tray with stainless still electrodes if you will use AISI 316 type you will not see any corrosion whatever liquid you will use.

    The sensor could be designed as per the attached example.

    Al.
    Attached Images Attached Images  
    All progress began with an idea

  5. #5
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Al, how did you manage to connect the resistor(s) to the stainless rods? I couldnt figure that out, short of using specially tooled terminals, which was the only reason I couldnt continue with my DC model.

    BTW, since you seem to have worked on a similar technique, did you find the readings highly non linear over the range? At times it is difficult to resolve the levels, especially at the lower end.

    Regards,

    Anand

  6. #6
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    how did you manage to connect the resistor(s) to the stainless rods
    You thread one end of the rod and use 2 nuts and two washers to hold the resistors wires.

    did you find the readings highly non linear over the range? At times it is difficult to resolve the levels, especially at the lower end
    Linearity depends on the liquid in use (how many ions you have in suspention) but don't expect very high linearity from it.

    You can always correct the reading via software knowing the real values taken on the bench shorting the electrodes one by one.

    Al.
    Last edited by aratti; - 18th July 2009 at 18:22.
    All progress began with an idea

Similar Threads

  1. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 16:45
  2. A/D, Pot, Input, A,B So lost now....
    By Helmutt in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th March 2008, 22:23
  3. Measure cable length with a PIC?
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th July 2007, 18:45
  4. Replies: 4
    Last Post: - 24th January 2007, 22:20
  5. pot controlled pwm -- help
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 29th January 2006, 12:29

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts