using an analog potentiometer to activate digital inputs?
so i have 4 mjsgadgets usb-io-1's and im using all of the outputs which gives me 16 unused digital inputs.
i have a hydrofoil that rotates 90 degrees and i'd like to have a better idea of where it is at any moment. I plan on hooking up a waterproof potentiometer or a hall effect ic that can detect rotation and give a linear analog output.
i could always get a phidget 1011 but was thinking about reducing the amount of parts and cost of the project by utilizing the digital inputs.
i was wondering how i would convert the 90 degree sweep into 16 digital switches. could i do it with a resistor ladder type setup? For instance. if the hydrofoil rotates from 0 degrees to 10 degrees the pot (which is attached to at the pivot point) would rotate and therefor increase the voltage from 0 to say 1v. then when it went to 20 degrees it would go up to 2v. how would i toggle a digital input when it hit 1v and then a second one when it hit 2v and so on?