![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
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.
__________________ World.......behold........YAN is coming | |
| |
| | #2 |
|
Don't worry about it, it's only 300uS, and the capacitors in the PSU will provide that.
| |
| |
| | #3 |
|
Thanks. I have actually bought the encoder and it worked fine and nothing was burnt .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.
__________________ World.......behold........YAN is coming | |
| |
| | #4 | |
| Quote:
| ||
| |
| | #5 | |
| Quote:
And so use the pull up. You need not take care of logic high on the port pin (Major advantage of open collector output)
__________________ Microcontroller codes, schematics, and diagrams! | ||
| |
|
| Tags |
| encoder, optical |
| Thread Tools | |
| Display Modes | |
| |