[{"element_type":"text","content":"\n  \n  \n  \n        \u003cp\u003eI was working with one of Adafruit's \u003ca href=\"https://www.adafruit.com/product/5734\"\u003eCNC Rotary Encoders\u003c/a\u003e and made a mistake wiring. Well, long story short, I killed it. I am not sure exactly what I did, but I suspect I accidentally drove its outputs with an improper voltage.\u003c/p\u003e\n\u003cp\u003eTo prevent the experience from being a total loss, I took the time to partially disassemble it.\u003c/p\u003e\n      \n\n\n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/001/562/original/PXL_20250205_214546748.MP.jpg?1738793418","metadata":{"caption":""}},{"element_type":"text","content":"\n  \n  \n  \n  \n        \u003cp\u003eThe plastic cover around the screw terminals can easily be removed, exposing a PCB. 3 pins hold this PCB onto the rest of the assembly. After desoldering them, the component side of the board can be seen.\u003c/p\u003e\n\u003cp\u003eThe board features a \"\u003ca href=\"https://www.alldatasheet.com/datasheet-pdf/view/64480/HOLTEK/HT7550.html\"\u003e7550\u003c/a\u003e\" voltage regulator. The incoming supply is regulated down from whatever it is to 5V for the internal circuitry. C2 is the input smoothing capacitor, and C1 is the output smoothing capacitor.\u003c/p\u003e\n\u003cp\u003eD1 and D2 are light emitting diodes in series (likely IR) which are positioned under matching sensors in the upper part of the assembly. A \"331\" (330Ω) resistor limits the current through the LEDs.\u003c/p\u003e\n\u003cp\u003eThe 3 soldered positions are a supply and 2 returns from the sensor package in the upper part of the assembly. Resistors R2 \u0026amp; R3 are pull ups, while caps C3 and C4 smooth out any spurious transitions of the signals. It seems most likely that the sensor assembly consists of two phototransistors, which can pull the pins of the \"\u003ca href=\"https://www.ti.com/product/SN74HC14#tech-docs\"\u003eHC14\u003c/a\u003e\", a schmitt-trigger inverter. This creates the signals A and B at a dependable logic level, and also the inverted A/ and B/ signals.\u003c/p\u003e\n\u003cp\u003eDiode D3 is a reverse current protection diode; in case VCC and GND are swapped, no current can flow. Interestingly it's on the GND side, while I thought it was more common to see on the VCC side.\u003c/p\u003e\n\u003cp\u003eIf I cared to determine which component(s) I damaged, this is totally a board that could be reworked by hand. However, I don't plan to spend the time and instead will just pick up a fresh encoder from the store—and double check my wiring next time.\u003c/p\u003e\n      \n\n\n\n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/001/563/original/PXL_20250205_214656856.jpg?1738796850","metadata":{"caption":""}},{"element_type":"text","content":"\n        \u003cp\u003eIt might be fun to further disassemble the upper part, but the ring is glued on so I couldn't get into it in a hurry. However, you can see the 100 positions in the outer wheels. When the wheel moves, the different slots are either opened or obscured. When a slot is exposed, the phototransistor inside allows current to flow, creating the quadrature waveform.\u003c/p\u003e\n\u003cp\u003eI'm not sure, but the other slits \u0026amp; holes might be used for other encoder configurations.\u003c/p\u003e\n      ","metadata":{}}]