Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Optical Encoder

Status
Not open for further replies.

YAN-1

New Member
Hello. I intend to buy an optical encoder in order to use it to calculate the speed of a rotating wheel. However, it says in the datasheets of the encoder that the operating current is around 80 mA but that "an inrush current of 9 Amps flows for about 0.3 ms when it is switched on". The power supply I am using at the bench provides a maximum current of 5 Amps. Will this be a problem? Will the encoder fail to operate if the initial current of 9 Amps is not fully received and could this damage my power supply? Thanks a lot.
 
Thanks. I have actually bought the encoder and it worked fine and nothing was burnt :D .

But now a new problem arises. The output phases of this incremental encoder are npn open-collector transistors. In order to input the pulses to my PIC so that it can count them, I used an opto-coupler that passes 5 volts to the PIC each time a pule occurs. But it seems that the opto-coupler I got has a very low frequency response becasue unless the encoder is turned very slowly, most of the pulses are missed. Is there another way of interfacing my encoder to my PIC (a fast MOSFET perhaps) and how? Or maybe there are faster types of opto-couplers available? I've never used an electronic device with an npn output before.
Thanks a lot.
 
YAN-1 said:
Thanks. I have actually bought the encoder and it worked fine and nothing was burnt :D .

But now a new problem arises. The output phases of this incremental encoder are npn open-collector transistors. In order to input the pulses to my PIC so that it can count them, I used an opto-coupler that passes 5 volts to the PIC each time a pule occurs. But it seems that the opto-coupler I got has a very low frequency response becasue unless the encoder is turned very slowly, most of the pulses are missed. Is there another way of interfacing my encoder to my PIC (a fast MOSFET perhaps) and how? Or maybe there are faster types of opto-couplers available? I've never used an electronic device with an npn output before.
Thanks a lot.

Just use a pull-up resistor to 5V, and feed the collector directly in to the PIC pin - it couldn't be much simpler?.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top