Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Thread Tools Display Modes
Old 17th April 2004, 07:18 AM   (permalink)
Default Problems with Digital Potentiometer

I'm having problems with a digital potentiometer. I'm not sure what it is, but I can't get the potentiometer to decrease and increase the resistance right. The resistance keeps jumping around, sometimes randomly. Sometimes it will start decreasing and then it will increase and then decrease and back and forth again and again. I really don’t know what’s wrong with it. Anyone have any ideas? Could it be that I need a debouncing circuit? But I don’t think it matters since I’m using a Function Generator or a microprocessor to create the pulses. Is there something else that I need? Thanks in advance for any help.
MrWho252 is offline   Reply With Quote
Old 17th April 2004, 01:15 PM   (permalink)
Default Re: Problems with Digital Potentiometer

Quote:
Originally Posted by MrWho252
I'm having problems with a digital potentiometer. I'm not sure what it is, but I can't get the potentiometer to decrease and increase the resistance right. The resistance keeps jumping around, sometimes randomly. Sometimes it will start decreasing and then it will increase and then decrease and back and forth again and again. I really don’t know what’s wrong with it. Anyone have any ideas? Could it be that I need a debouncing circuit? But I don’t think it matters since I’m using a Function Generator or a microprocessor to create the pulses. Is there something else that I need? Thanks in advance for any help.
Can you post a schematic of how it is hooked up with a part number of the digital pot as well? I'm sure there is an easy explanation.
Optikon is offline   Reply With Quote
Old 18th April 2004, 09:01 AM   (permalink)
Default

I'm using the X9C103 from Xicor. Right now I don't have any schematics. I'm just trying to figure out how it works so I can see how I'm going to use it in my project. So far this is what I have hooked up to the digital pot.

Pin 1 (Inc): Clock generated by Function Generator
Pin 2 (U/D Bar): Right now it's low for down
Pin 3 (VH/RH): + Lead of a DMM measuring Resistance
Pin 4 (Vss): Gnd
Pin 5 (Vw/Rw): It's hooked up to RL
Pin 6 (VL/RL): - Lead of a DMM
Pin 7 (CS Bar): Kept Low so that no value would be stored so resistance can be adjusted
Pin 8 (Vcc): +5v

The pulse that is generated by the Function Generator is 0-3.3V

I hope this is enough information. If there's something else that I'm missing or you need clearification on please let me know.
MrWho252 is offline   Reply With Quote
Old 18th April 2004, 02:55 PM   (permalink)
Default

I don't see anything wrong with your hookup. Perhaps this URL will be helpful:

http://www.xicor.com/app_notes.php
__________________
see my website: www.geocities.com/russlk
Russlk is offline   Reply With Quote
Old 18th April 2004, 07:58 PM   (permalink)
Default

I think I found out what type of problem I have. It's a walking wiper. The solution for that is that I use a pull-up for CS Bar on power up. What does it mean by that? Do I tie it to Vcc during power up? Or do I use something else? Thanks.
MrWho252 is offline   Reply With Quote
Old 19th April 2004, 12:28 AM   (permalink)
Default

A capacitor to VCC and resistor to GND. The cap pulls the pin up temporarily and the resistor pulls it down.
__________________
see my website: www.geocities.com/russlk
Russlk is offline   Reply With Quote
Old 19th April 2004, 12:54 AM   (permalink)
Default

How big of a cap to use?
MrWho252 is offline   Reply With Quote
Old 19th April 2004, 03:56 PM   (permalink)
Default

A wide range of values will work, try .01uF and 10K
__________________
see my website: www.geocities.com/russlk
Russlk is offline   Reply With Quote
Old 20th April 2004, 01:09 AM   (permalink)
Default

The wiper still walks. It even walks when it digital pot isn't even powered. Is that supposed to happen?
MrWho252 is offline   Reply With Quote
Old 20th April 2004, 02:12 AM   (permalink)
Default

It can get power thru the clock input, but if there is no input then you must have a high impedance that is picking up noise.
__________________
see my website: www.geocities.com/russlk
Russlk is offline   Reply With Quote
Old 20th April 2004, 03:02 AM   (permalink)
Default

Is there something I can do to reduce the noise? Is it possible that the noise could be coming from a moniter or computer?
MrWho252 is offline   Reply With Quote
Old 20th April 2004, 07:41 PM   (permalink)
Default

Your connections are not what you think they are. Take it apart and put it together again. It may not solve the problem, but it will be different.
__________________
see my website: www.geocities.com/russlk
Russlk is offline   Reply With Quote
Old 23rd April 2004, 03:42 AM   (permalink)
Default

Quote:
Originally Posted by Russlk
Your connections are not what you think they are. Take it apart and put it together again. It may not solve the problem, but it will be different.
I agree, this is worth doing since its only a couple of connections. I think you can forget about external noise from monitors etc.. this sounds like wiring. Verify your supply voltages right at the pins (not on the wires going to the pins) also.

Also, if you re-wire, double check each connection right after you make one, just to be 100% sure that it is wired correctly and the device has a good power and ground connection to the supply.
Optikon is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 03:13 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.