Saturday, December 17, 2016

Purchase of the CJ SHOP Obstacle Avoidance Sensor in place the OP-AMP and Potentiometer Circuit for the Photogate

We ended up purchasing the "C.J. SHOP® 5PCS IR Infrared Obstacle Avoidance Sensor Module for Arduino Smart Car Robot 3-wire"  on Amazon [1] for construction of our photogate.  To build our photogate, we will need two in tandem. These are represented as the red boxes in the illustration below:

The C.J. Shop Obstacle Avoidance Sensor Module looks like the op-amp receiver circuit and the potentiometer transmitter circuit , except that a comparator is used instead of an op-amp.

According to Wikipedia, the potentiometer works a bit better than an op-amp since the op-amp tends to have a bit more lag. 

"
In practice, using an operational amplifier as a comparator presents several disadvantages as compared to using a dedicated comparator:[5]
  1. Op-amps are designed to operate in the linear mode with negative feedback. Hence, an op-amp typically has a lengthy recovery time from saturation. Almost all op-amps have an internal compensation capacitor which imposes slew rate limitations for high frequency signals. Consequently, an op-amp makes a sloppy comparator with propagation delays that can be as long as tens of microseconds. "
(https://en.wikipedia.org/wiki/Comparator)


Having the comparator is good because we would need to compare the voltage we sampled from the op-amp circuit when a potato is passing and when it is not. The comparator performs this function, outputs a binary 0 or 1 to the arduino (?), and since it allows for high frequency signals it may be able to measure things that happen quickly.


For further documentation for use with the Arduino, compare this obstacle avoidance sensor to the Sunfounder Obstacle Avoidance Sensor [2]. 

If the CJ Avoidance Sensor does not work well, try replacing the LED with a 940 nm IR LED:

Standard LEDs - Through Hole LED PMI 696-SSL-LX5099IEW http://www.mouser.com/ProductDetail/Lumex/SSL-LX5099IEW/?qs=sGAEpiMZZMtmwHDZQCdlqUPJk6OnVfwFh1MnnzvLabs%3d


This uses the logic from the quote in Makezine [3]:

"Older remote controllers used gallium arsenide compensated with silicon (GaAs:Si). These LEDs emit at about 940nm, which makes them ideal for detecting water vapor, but they’ve become very difficult to find."

An ejected potato has a lot of water vapor.

We tried other LEDs like the ones from RadioShack (pictured on the side of the breadboad) and the ones from the Parallax SUMO Bot Kit (pictured in the circuit) . See below:

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivDpN7BRU6MrISrKmwIZqsxyEgD2PDQMizJhZ8zAhCI9iqoOgu7fmtJDGZaJxC3Rb9SAunIEimGdMam0EWwQMc6odvTTXpmsnzCjKsU-OipERM8u9cTWMAbxMfzD013abZlIbU08COPCo/s1600/photogatecircuit_breadboardard1e2.JPG

It may not be the LED that was the problem. It may be that we did not use a potentiometer on the transmitter LED and an op-amp or comparator on the receiving LED. The C.J. SHOP purchase provides us with this.


[1]



https://www.amazon.com/C-J-Infrared-Obstacle-Avoidance-Arduino/dp/B00XAGSWR4/ref=redir_mobile_desktop?_encoding=UTF8&keywords=infrared%20sensor&pi=AC_SX236_SY340_FMwebp_QL65&qid=1481943085&ref_=mp_s_a_1_1&sr=8-1

[2]
https://www.sunfounder.com/learn/Sensor-Kit-v2-0-for-Arduino/lesson-31-ir-obstacle-avoidance-sensor-sensor-kit-v2-0-for-arduino.html

[3] http://makezine.com/projects/make-36-boards/how-to-use-leds-to-detect-light/

No comments:

Post a Comment