r/AskElectronics • u/Dabaduck • 7d ago
Omron E6B2 Encoder + External Power Supply: why did I fry my Arduino UNO?
I have a Chinese Omron E6B2-CWZ6C NPN open-collector rotary encoder. Although the datasheet specifies a supply voltage range of 5–24 VDC, in reality, the encoder only starts working at around 5.5 V. So I uesed an external 5.5 V power supply connected to the brown (+) and blue (GND) wires, with pull-up resistors (2k Ohm) on the A (black), B (white), and Z (orange) signal outputs.
When measuring the signals with an oscilloscope (no arduino connected and manually rotating the encoder), I get a square wave ranging from 0 V to approximately 3.5 V (the probe/measurement points are indicated by the red circles in the tinkercad image near the resistence).
However, when I connected the outputs to Arduino pins D2 (A), D3 (B), and D4 (Z), I measured up to 10 V. I assumed the voltage was higher because the power supply and the Arduino did not share a common ground. I decided to connect the Arduino GND to the power supply GND, which ended up frying my Arduino ...
How can I interface the Omron encoder with an Arduino using an external power supply? And why did I fry my Arduino?
I'm a beginner any help would be greatly appreciated



2
u/NBC-Hotline-1975 7d ago edited 7d ago
I see three obvious problems.
1
u/SoManyDeads 7d ago edited 7d ago
How are you powering the arduino? Is it plugged into the wall?
Judging by how you set up the drawing, I believe this to be what you have done. You may have two separate power sources but the grounds can be completely different can make things be very bad. You can try something similar and make a simple votage divider from 5.5 -> 3.5 to power the Arduino. This should give a common supply and perhaps fix the issue.
1
u/nixiebunny 7d ago
You forgot to connect encoder Gnd to Arduino Gnd. This is essential.