Optical level sensor

Basic / Standard Reef Angel hardware
Post Reply
dazza1304
Posts: 154
Joined: Sat Aug 04, 2012 4:22 am

Optical level sensor

Post by dazza1304 »

Hi Guys,

My first post in this fab forum!!

Rather than use float switches for ATO, I would like to use these optical sensors - see data sheet attached.

My question is, where can I find the pin out info so I can find how to connect to the float switch inputs?

Also, I will need to find 5 -12v to drive them, so where could I pick that up from?

Look forward to your replies!!
Attachments
109069.pdf
data sheet
(93.17 KiB) Downloaded 608 times
dazza1304
Posts: 154
Joined: Sat Aug 04, 2012 4:22 am

Re: Optical level sensor

Post by dazza1304 »

Think I have figured this out - I connect the ground from sensor to pin 2 of X8 - Signal out from sensor goes to pin 1 of X8 and I can pick up 5v from pin 1 of either X5 - X7.

Is this correct?

Also, I think my signal will be reversed compared to float switch? for ATO on, I think float switch gives a logic 0, but the optical sensor will give a logic 1 output.

Can i invert the code somehow to read correctly?

thanks..
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Optical level sensor

Post by rimai »

Yes, you got it :)
I also think that your sensor will be inverted.
We can always create a custom function for your code though :)
After all, this is open source and we can mold it to fit :mrgreen:
Roberto.
dazza1304
Posts: 154
Joined: Sat Aug 04, 2012 4:22 am

Re: Optical level sensor

Post by dazza1304 »

Thanks roberto!!

Yes, when the sensor is in water - it is a low signal and when out of water (ATO needs to operate) it is a high signal.

What do I need to do to the code to "invert" compared to float switch which I think is opposite?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Optical level sensor

Post by rimai »

Are you sure?
Then it is the same as the float switch.
Roberto.
dazza1304
Posts: 154
Joined: Sat Aug 04, 2012 4:22 am

Re: Optical level sensor

Post by dazza1304 »

Hi Roberto, Yes I am sure - high state in air.

These are quite cheap too - only about $34!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Optical level sensor

Post by rimai »

Try it out and see if it works. I think you are good.
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Optical level sensor

Post by lnevo »

Hey, this is an old thread, but I'm looking to do the same thing if possible. I have no idea what dazza was talking about though :) nor how it translates to the star. I'm wondering how I could power the sensor and read it. I'm hoping to convert to replace the controller for the Klir roller filter I'm using. If I could read the optical sensor then I can work on controlling the motor and get more information, put more controls, etc. on the filter roller.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Optical level sensor

Post by lnevo »

Post Reply