Modifying board to take a different sensor style

I am trying to plug in a noncontact level switch where a optical switch was used.

Here is the layout of how the boards wired

here is the new sensor


here is the board itself.

It allows you to use a simple 2 wire float switch or use an optical 4 wire switch and has its own dedicated 5v psu.

I plugged in the following
Brown -> blue
Blue -> white
Yellow -> yellow

I noticed I got a 3.x volts out so I shorted the 390ohm resistor so it would get the full 5v.

Still did not function as expected.

Any ideas?

Will you please give us more details?

@Monsters-Alive
Hey sorry I couldnt figure out the new arduino forum layout and was trying to figure out pictures.. I ended up editing the first post while you commented.

Thanks,

I don't quite get it. Could use pen and paper and make schematics how You wired Your setup?
The picture show several useable versions so it ought to work.
Where did You find that 3.x volt? It could have been perfectly all right.
Posting Your code might be useful.

What did Bill Yuan have to say?

@Railroader @anon57585045

Below is the circuit to the best of my knowledge. So the idea behind the board is to be able to use a simple 2 wire float switch or a 4 wire optical fluid level sensor. I am trying to add my noncontact fluid level sensor to this board. Do either of you know how I can do that? If I cant I may just make an arduino to read the noncontact fluid level sensor and then just close a relay. but would prefer to not have to make another interface board if possible.

Thanks,

The blue wire needs connecting to GND. You have connected it in place of the white wire which is +5V.

There is no GND connection on the connector.

1 Like

I typed that wrong…. I installed into red. The left three pins from the new sensor are installed.

The sensor functions with the power and ground im using but doesnt register as a high or low change in the system

In the original circuit the transistor in the optoisolator pulled the output high.

The new sensor has a transistor that will pull the output low. The resistor designated R in the sensor will pull the output high when the transistor is not conducting.

Resistors R and R2 now form a potential divider, which will prevent the output going above a certain level.

Try removing R2, so that R can pull the output fully high.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.