You should simply have 6 separate toggle switches - and for real geek charm, arrange the Pi to read them as a binary number - 64 different speeds - or just 3 toggle switches will give you 8 settings...EtanSivad wrote:I'm looking for an add on part that I'm not even sure what to call it. Which makes it really hard to google for it.
Basically, I want a knob that can be turned to about 5 or 6 different values. Like a volume knob, but with a finite number of steps not an analog scale.
So, the knob could be set at values 1 through 6, and then I'd read the value with a shell script to control another script I'm running
(The ultimate goal is to make a timelapse box where I can specify the frame rate. So, setting 1 would be 1 frame per second, setting 2 would be 1 frame per minute, etc, etc.). I'm looking for a solution that I can set the exposure time, power up the box, it'll get read by the automation scripts and run from there.
The switch will have a common pin and 6 position pins. Connect the common pin to the 0v pin on the Pi, connect the 6 other pins to 6 of the Pi's GPIO pins, enable the internal pull-up's on the GPIO pins and off you go. A separate switch acting as an "enter" key could be wired up in the same way. So turn the rotary switch, push the "enter" key, and off you go - the Program on the Pi is watching for the Enter key to be pushed, then it will sample the rotary inputs...EtanSivad wrote:The rotary knob looks to be exactly what I'm looking for. Though, I'm at a loss on how I would wire this to the Pi board itself. Any suggestions for what hardware to use to interface with it?
The toggles would be cool, but less serviceable. My goal is to make a setup so simple my mom could use it.
Users browsing this forum: No registered users and 5 guests