DIY Optical Sensor help

ellisz

Community Member
View Badges
Joined
Jan 5, 2017
Messages
96
Reaction score
16
Review score
+0 /0 /-0
Location
S. Indiana
I have been trying to DIY an optical sensor for my FMMs. I have the sensor and the TRRS jack and trying to test the wire configuration. I have been able to get the sensor to open and close but not consistently. The sensor identifies the wire config - Blue & White is +5v. Red & Yellow output/sensor. The TRRS jack has red(tip), white, green, and black(base). I am seeing 4.67v from the Black and Green as well as Red and Green off the jack when plugged into the FMM. Any help as to what wire goes where? I have tested with different configurations but can't seem to get a consistent switching with the sensor.

Optical sensors -
TRRS jack -
Any words of wisdom or is this a fools errand? I have some Neptune optical sensors in use as well but thought I would do a little DIY for back ups.

Thanks
 
RAP

WVNed

The fish are staring at me with hungry eyes.
View Badges
Joined
Apr 11, 2018
Messages
7,830
Reaction score
33,323
Review score
+0 /0 /-0
Location
Hurricane, WV
Do understand how it works and are wiring diagrams meaningful to you?

This is what I found

The sensor has 2 circuits
One lights a LED
The other has a phototransistor the sees the light from the LED based on how it refracts. Since it refracts differently when wet and dry that is how it senses a water level.

R1 is a current limiting resistor for a LED
R2 is a pull down resistor so the output goes to 0 if the sensor is off. It goes to 5v when the transistor is on
R1 & R2 should be inside the FMM and not the sensor. So is the output.

SO what you are working with are the 4 wires at the point where the circled numbers 1 to 4 are on the diagram.


The sensors are colored differently but have the same functions


51onINEu8AL._AC_SL1000_.jpg

images



The Neptune end
image-jpg.652599

Then you need to wire the optical sensor into the male connector with the proper pinout. Here is the pinout of the neptune optical sensor:

Pin one (closest to base of plug) Red
Pin two Green
Pin three Black
Pin four White

The generic optical sensors will probably have different colors on them, but generally Green is the Blue wire, and the Black is the Yellow



I hope this helps and is not just enough to be dangerous.
 
OP
ellisz

ellisz

Community Member
View Badges
Joined
Jan 5, 2017
Messages
96
Reaction score
16
Review score
+0 /0 /-0
Location
S. Indiana
I know enough to be dangerous - I think. I was pretty sure it was really just getting the the 4 wires from the sensor connected to the 4 wires on the jack in the right order. Expected it to be easier than it turned out. I am testing by putting the sensor in water and watching for it to open on the dashboard(not Fusion). The Neptune sensor works as expected.

Let me double check my connections and see if I missed something. Thanks for the detail.
 
OP
ellisz

ellisz

Community Member
View Badges
Joined
Jan 5, 2017
Messages
96
Reaction score
16
Review score
+0 /0 /-0
Location
S. Indiana
Went and tested again. I put white to white, red to red, yellow to black, and blue to green.

This gives me a closed switch no matter what. If I swap the black and green, I get an open switch all of the time.
 

WVNed

The fish are staring at me with hungry eyes.
View Badges
Joined
Apr 11, 2018
Messages
7,830
Reaction score
33,323
Review score
+0 /0 /-0
Location
Hurricane, WV
Look into this. Ignore the colors. There is no standard. Pay attention to what color comes out where on each end

61kWZruOMhL._SL1000_.jpg
image-jpg.652599



so
Tip - Red on plug to white on sensor
Ring 1 - White on plug to yellow on sensor
Ring 2 - Green on plug to blue on sensor
Ring 3 - Black on plug to red on sensor

With one of the pigtails plugged in you should see 5 volts more or less green to black and red to white
 
Last edited:
OP
ellisz

ellisz

Community Member
View Badges
Joined
Jan 5, 2017
Messages
96
Reaction score
16
Review score
+0 /0 /-0
Location
S. Indiana
Thanks for calling out captain obvious! Sorry I took things a little too literal. I got one soldered up and working. Just have to figure out how I want to lay out the FMM's.

Thanks for all of the help.
 

PICK the Most Tested & Least Tested Parameters of your Tank (Pick 2)

  • Calcium (most)

    Votes: 7 5.1%
  • Alkalinity (most)

    Votes: 104 75.4%
  • Magnesium (most)

    Votes: 1 0.7%
  • Phosphate (most)

    Votes: 4 2.9%
  • PH (most)

    Votes: 16 11.6%
  • Nitrate (most)

    Votes: 9 6.5%
  • Nitrite (most)

    Votes: 0 0.0%
  • Ammonia (most)

    Votes: 2 1.4%
  • (least) Calcium

    Votes: 5 3.6%
  • (least) Alkalinity

    Votes: 1 0.7%
  • (least) Magnesium

    Votes: 12 8.7%
  • (least) Phosphate

    Votes: 1 0.7%
  • (least) PH

    Votes: 4 2.9%
  • (least) Nitrate

    Votes: 1 0.7%
  • (least) Nitrite

    Votes: 47 34.1%
  • (least) Ammonia

    Votes: 56 40.6%
BMF signature corals
Top