- #1
shushi_boi
- 45
- 0
Hi,
In this Raspberry Pipboy Project,
Niel Corbett attempted to recreate the pip boy as a real life functional device, and in this project he is using two rotary encoders.
Here' the link to the code for his project,
https://bitbucket.org/selectnone/ra...ls.ino?at=master&fileviewer=file-view-default
and the micro controller that he is using for this project is the Teensy++ 2 [uses 5V for its pins] which is connected to the Raspberry Pi (although currently he decided to just us the Raspberry Pi GPIO i/o pins directly instead).
So, I was interested in taking the circuitry for the rotary encoders a step further and I'm trying to debounce the circuit.
Generally this is how one wires an encoder's circuit in order to debounce it;
+5V > Resistor > Encoder + Teensy > Capacitor > Ground
Based off of that, I drew this schematics on how I believe this circuit should look.
For the Resistor, I am using a 10K Ohm 1/2 Resistor, and between the capacitor and the encoder, I am using an 1N4001 Diode
http://www.engineersgarage.com/electronic-components/1n4001-diode
Based on how I have the circuit set up, does this circuit appear to work?
Also, about the polarized capacitor that I am using, I'm not too sure on what specific ratings to look for on capacitors for this project as I hardly ever deal with them as a hobbyist. In order to find a capacitor that will make the rise time slow enough so as to filter out switch bounce but also fast enough to allow the encoder to work fast enough, what kind of ratings should I look for in a capacitor for this project?
Thank you for your time, and I apologize for asking, I'm barely new to electronics and I have a passion to learn about them :)
In this Raspberry Pipboy Project,
Niel Corbett attempted to recreate the pip boy as a real life functional device, and in this project he is using two rotary encoders.
Here' the link to the code for his project,
https://bitbucket.org/selectnone/ra...ls.ino?at=master&fileviewer=file-view-default
and the micro controller that he is using for this project is the Teensy++ 2 [uses 5V for its pins] which is connected to the Raspberry Pi (although currently he decided to just us the Raspberry Pi GPIO i/o pins directly instead).
So, I was interested in taking the circuitry for the rotary encoders a step further and I'm trying to debounce the circuit.
Generally this is how one wires an encoder's circuit in order to debounce it;
+5V > Resistor > Encoder + Teensy > Capacitor > Ground
Based off of that, I drew this schematics on how I believe this circuit should look.
For the Resistor, I am using a 10K Ohm 1/2 Resistor, and between the capacitor and the encoder, I am using an 1N4001 Diode
http://www.engineersgarage.com/electronic-components/1n4001-diode
Based on how I have the circuit set up, does this circuit appear to work?
Also, about the polarized capacitor that I am using, I'm not too sure on what specific ratings to look for on capacitors for this project as I hardly ever deal with them as a hobbyist. In order to find a capacitor that will make the rise time slow enough so as to filter out switch bounce but also fast enough to allow the encoder to work fast enough, what kind of ratings should I look for in a capacitor for this project?
Thank you for your time, and I apologize for asking, I'm barely new to electronics and I have a passion to learn about them :)