CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

varible knob for input

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Nick
Guest







varible knob for input
PostPosted: Sun Mar 06, 2005 6:24 pm     Reply with quote

i need to get input from a knob, this knob needs to keep its position even when turned off and back on.

maybe a pot attached to a analog line?

Nick
dyeatman



Joined: 06 Sep 2003
Posts: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Sun Mar 06, 2005 6:39 pm     Reply with quote

Sounds like the teacher assigned this project again this year....

This has been covered in this forum before. Search on the word "pot"
Guest








PostPosted: Sun Mar 06, 2005 6:53 pm     Reply with quote

i did to a search and i found my old post from a few months ago, but didnt seem like i got a straight answer.

btw i'm not in school.


Nick
dyeatman



Joined: 06 Sep 2003
Posts: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Sun Mar 06, 2005 7:07 pm     Reply with quote

OK then, when you post something like this you need to give sufficient info to work with. Can you give some more information about the following:

1. what version of compiler are you using?
2. What PIC are you using?
3. can you describe the application and how the pot is intended to work?
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Sun Mar 06, 2005 8:07 pm     Reply with quote

How about asking a question? You made a couple of statements and a viable solution. What else are you looking for? Alternatives? What you have posted is probably the easiest. I don't think you want to go the route with an encoder.
Nick
Guest







PostPosted: Sun Mar 06, 2005 9:23 pm     Reply with quote

sounds good, I just wanted to know if it was a viable solution.

Nick
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Mon Mar 07, 2005 7:58 am     Reply with quote

There are "absolute" position encoders that give you a 3 or 4 bit indication of their current position. For very large $$$ you might be able to buy an 8 bit absolute encoder, but I have never seen one.
For almost all applications the pot and A/D is the way to go.
_________________
The search for better is endless. Instead simply find very good and get the job done.
sseidman



Joined: 14 Mar 2005
Posts: 159

View user's profile Send private message

PostPosted: Mon Mar 14, 2005 5:05 pm     Reply with quote

SherpaDoug wrote:
...
For almost all applications the pot and A/D is the way to go.



I'm moving away from this approach. An encoder is much more flexible, and you can use one encoder to control multiple parameters. Values can be save in ROM, and restored on boot. Noise is less of an issue, and you pretty much define the resolution of the encoder. You can use it for course and rough adjustments.

My digital oscilloscope is what sold this approach for me. It has a context-sensitive knob that I wouldn't change for anything.

Scott
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group