Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Electrical Engineering (https://www.askmehelpdesk.com/forumdisplay.php?f=497)
-   -   How do I connect a digital counter to an optical sensor (with reflector) (https://www.askmehelpdesk.com/showthread.php?t=560680)

  • Mar 8, 2011, 03:30 PM
    Ron0303
    3 Attachment(s)
    How do I connect a digital counter to a 110v sewing machine motor(with better pics)
    Hi Again,
    The last time I asked the question, the pictures are very blurry. I've since gave up on that Omron counter.
    I have posted some pics of the new counter (does frequency also) along with the available wiring and some details: Here are the details of the counter:

    * Counting and display the quantity of units
    * High accuracy, low power consumption
    * Power: DC 5V~15V
    * Measurement range: 0.5~499.9 Hz

    The optical sensor is Efector OG-5012 which runs pretty much in the same voltage range as the counter.

    Please see the attached pics. And the link to the optical device is here: http://www.ifm.com/ifmus/web/dsfs!OG5012.html

    Your help is highly appreciated.
  • Mar 8, 2011, 06:08 PM
    Stratmando

    Not sure that is the right counter for what you want. Are you wanting to monitor speed of the motor, frequency of the motor?
    I did see one on eBay for about 5 bucks and about the same for shipping. It says it is not longer available. I say this only it is for something that may not be readily available later?

    Efector OG-5012/OGR-DPKG PhotoElectric Sensor - eBay (item 270714939816 end time Mar-10-11 08:47:42 PST)
  • Mar 8, 2011, 06:23 PM
    Stratmando

    http://www.ifm.com/obj/07_Photoelec_IR_en2010.pdf
  • Mar 8, 2011, 06:25 PM
    Ron0303
    Hi,
    Thanks for the reply. I'm looking to count the rotation. This will be used for winding coils. I just thought the two V+ and V- connectors on the bottom left side is for the power source. The four pins on the bottom right side are the ones that I need figuring out. It has a V+, A, D, and GND pins, respectively.
    Ron
  • Mar 8, 2011, 10:31 PM
    jcaron2
    Based on the pictures and the data sheet for the optical sensor, I'd say you should first connect a 10-15V power supply (or battery) to the 2-pin connector on the lower left of the photo. From the markings on the board and what I can see of the picture (along with conventional color choices), it looks like the red wire gets hooked to the positive voltage (10V-15V DC), and the black wire gets hooked to ground.

    Then, you hook the optical sensor up to the 4-pin connector. That connector should power up the sensor from the V+ and GND pins, and receive the measurement on one of the two remaining pins. Based on the wiring harness shown in the picture, that should mean you connect the black wire on the harness (GND) to the blue wire on the sensor (L-), the red wire on the harness (V+) to the brown wire on the sensor (L+), and either the green (D) or brown (A) wire from the harness to the black (signal) wire on the sensor. I would start with the green (D) wire. I suspect the A and D stand for "analog" and "digital", and the optical sensor probably generates an on/off voltage pulse when it gets triggered (i.e. more like a digital signal). If it doesn't work with the green wire, try the brown (A) wire instead. It shouldn't hurt anything, and it's quite possible that it will work fine with either one.

    It's also possible that the D input is for counting digital pulses, whereas the A input is for measuring the frequency of an analog signal. Worst case, you'll just need to experiment a little to see which one works.

    Do you have a suitable DC power supply? It needs to be in the 10-15V range so that it can power both the counter and the sensor. Pretty much any simple 12V DC power supply should work.

    Let us know if you get it working.
  • Mar 8, 2011, 10:42 PM
    jcaron2

    Oh, and by the way, if you can translate the Chinese symbols in place of the A and D on the drawing on the right side of the label on the chip, that might shed some additional light on what they mean.

    If they're meaningful to you, can you translate for us?
  • Mar 9, 2011, 07:13 AM
    Stratmando

    I don't see the A and D, you also need to know what the jumpers do. Did find this, not much help:

    Google Translate
    Between the + and -, it looks like Lambda(wavelength and digital pulse).
    Any documentation with either?
  • Mar 9, 2011, 08:39 AM
    Ron0303
    Thank you both. Especially jcaron2. This may have shed some light on my question. I will do as instructed and keep you posted. Once I get everything to work, I will share some pictures and hopefully guide others as well.
    Ron
  • Mar 9, 2011, 11:13 AM
    jcaron2

    Good luck. If you find someone who can read Chinese, you can probably make sense out of those jumpers, as Stratmando pointed out. The label on the chip appears to describe them; I just can't read the language.

    One of them might be to reset the counter (which will be useful for starting a new spool). If so, you'll probably want to connect a push-button to it.

  • All times are GMT -7. The time now is 12:11 AM.