2 optical sensors could be used to decode 4 positions of a white/black surface that could be read on powerup... an absolute position encoder (as opposed to the relative position encoder). The mechanics of it are up to you, and it may not be cheaper than the <$2 you mentioned earlier. Cat ----Original Message Follows---- From: BobGardner@aol.com Reply-To: AVR-Chat@yahoogroups.com To: AVR-Chat@yahoogroups.com Subject: Re: [AVR-Chat] Re: OT- Anybody know of a small 4 position slide switch? Date: Mon, 7 May 2007 20:43:13 EDT In a message dated 5/7/2007 5:58:00 P.M. Eastern Daylight Time, rcooke@digitalwavelength.com writes: I don't think I can make an encoder work. If the user happens to move the knob while the unit is powered off I don't think I can get the controller to figure out what position it is now in. Or do I have that wrong? ==================================================== The encoder just gives you an 'increment' or 'decrement' If you save where you are in eeprom, it stays there to next power on. Knob detent doesn't matter. 4 leds could give you position. Or 4 of those momentary schadow switches with the leds in them? Make them mutually exclusive in the sw ************************************** See what's free at http://www.aol.com. [Non-text portions of this message have been removed] Yahoo! Groups Links _________________________________________________________________ Get the Kung Fu Bunny Theme pack free! http://www.imagine-windowslive.com/Themes/Messenger/Reward/Default.aspx?Locale=en-CA#
Message
Re: [AVR-Chat] Re: OT- Anybody know of a small 4 position slide switch?
2007-05-08 by Cat C
Attachments
- No local attachments were found for this message.