Page 1 of 1
Optical level sensor
Posted: Sat Aug 04, 2012 4:50 am
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!!
Re: Optical level sensor
Posted: Sat Aug 04, 2012 6:19 am
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..
Re: Optical level sensor
Posted: Sat Aug 04, 2012 8:39 am
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
Re: Optical level sensor
Posted: Sat Aug 04, 2012 8:50 am
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?
Re: Optical level sensor
Posted: Sat Aug 04, 2012 9:02 am
by rimai
Are you sure?
Then it is the same as the float switch.
Re: Optical level sensor
Posted: Sat Aug 04, 2012 11:42 am
by dazza1304
Hi Roberto, Yes I am sure - high state in air.
These are quite cheap too - only about $34!
Re: Optical level sensor
Posted: Sat Aug 04, 2012 1:35 pm
by rimai
Try it out and see if it works. I think you are good.
Re: Optical level sensor
Posted: Sun Oct 14, 2018 5:58 pm
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.
Re: Optical level sensor
Posted: Sun Oct 14, 2018 5:58 pm
by lnevo