1
\$\begingroup\$

Some background: I am a mechatronics engineer and I have just recently started my first job out of university as an electrical engineer. I feel a little out of my depth but I wasn't going to turn the job down. My first project at work requires me to design a system to wirelessly transmit encoder data to drive a slave conveyor table.

I'm required to use IR light to transmit the data over fairly small distances (<1m, probably 20cm or so). Using IR light is a hard requirement set by my boss.

I am currently using the following systems:

For transmission, I am using what I believe is a Pierce crystal oscillator circuit to generate the 40khz pulses, which has been tested, oscilloscoped and known to work:40 khz signal generator schematic To hook this to the encoder, I have powered the encoder, then hooked up channel A to the power pin (labeled 14 on the schematic) of the hex inverter in the signal generator, such that when the A channel is driven high by rotation of the motor, the signal generator is powered and switching the IR LED on and off at 40khz. I have tested this and can confirm that it functions.

The encoder is 500 pulses/rev and is expected to be driven at 0.682 rev/s, making for 341 pulses/s (Hz)

For receiving, I am using a TSOP4840 IR receiver. I know that it is receiving, as I can see the LED indicator I've hooked up turning on an off SOMEWHAT as expected. Turning the encoder does have some effect on the LED indicator.

The conveyor the encoder is to control is to be driven by a single pulse train in a single direction, hence the use of only one encoder channel.

My idea is to transmit these pulses optically using the system described, such that as the encoder turns it's pulse is modulated at 40khz, sent to the receiver, then demodulated at the receiver circuit, and output as an individual pulse to the VSD of the motor. Some latency is of course expected, but is expected to be insignificant.

What I want to know is if the concept is sound and worth continuing pursuit of, what type of receiver circuit I should use instead of the TSOP4840 based receiver, since I'm pretty sure it's simply not good for my application, and what other changes you feel may be necessary.

I'm enjoying my new workplace and would like to really nail this project to secure my spot here. I absolutely appreciate any help this community is willing to provide me.

If there's any information I've forgotten to include, please let me know.

\$\endgroup\$
  • 2
    \$\begingroup\$ I wouldn't use the power to switch the transmitter on, use a gate instead, Other than that: don't staturate the receiver with a continuous signal, shield the receiver from sunglight and other strong light sources. And maybe 20 Ohm is a bit low, for 20 cm I would start with 1k. And get your scope and check the input and output signals! \$\endgroup\$ – Wouter van Ooijen May 11 '18 at 7:56
1
\$\begingroup\$

You need to look pretty closely at the gotchas of IR remote receivers. They can be a good easy solution but

They have internal AGC arrangements which are tuned for the kind of pulse widths that remotes produce. Different TSOPXXXX have different tunings.

When you deviate too far, they behave strangely, with varying sensitivity and pulse widths. They generally have a maximum and a minimum pulse width they are rated to work with.

When they are in sunlight, the behaviour changes again. You can also be too close/too much signal.

You need to ask the question (and test) what happens when the rotation rate is 0, or slow or $whatever?

However a situation of continuously sending your modulated signal to them, is favorable for the AGC.

They are not very frequency selective, so a crystal resonator is not really needed (i.e. if you get some other frequency variant, you can just use an RC and try them.)

\$\endgroup\$
  • \$\begingroup\$ infrared remote controls often use a ceramic resonator as their frequency standard, the price difference vs a crystal is a few cents, \$\endgroup\$ – Jasen May 11 '18 at 9:32
  • \$\begingroup\$ I did some basic testing on the transmitter circuit and found the square waves i expected, from the encoder and the LED, I could also see clear modulation from the encoder when i turned it. \$\endgroup\$ – S_T May 11 '18 at 13:17
  • \$\begingroup\$ I think the transmitter concept is solid. It sounds like you think the TSOP receivers may be suitable for what I need but in need of tweaking and further testing. Is that accurate? Is the concept sound, in your opinion? The device will be indoors, underneath machines, so I don't expect fluorescent or sunlight to be an issue, but fluorescent light was definitely an issue during testing by the sounds of it. The crystal resonators were very cheap and my boss is concerned about drift. He's keen to invest in quality components once the concept is proven. \$\endgroup\$ – S_T May 11 '18 at 13:27
  • \$\begingroup\$ flouros don't make IR and are no issue.. It is this issue of duty cycle and pulse width. Read the datasheet carefully, and choose most suitable variant. \$\endgroup\$ – Henry Crun May 11 '18 at 13:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.