Time of Flight sensor and display

Posted on
Tue May 09, 2023 9:44 am
siclark offline
Posts: 1963
Joined: Jun 13, 2017
Location: UK

Time of Flight sensor and display

Hi.. its been a while since I have used pibeacon but now looking to use a ToF sensor to measure the water in my espresso machine, and was thinking of doing something with an arduino nano, but never used one before, when I realised that as these are i2c they would probably be one that works here, and there is!

I was planning to use a little lcd display on the arduino, but could just use indigo to notify me when I should be topping it up (before it hits empty and I have to fill it up when not caffeinated!). However a screen would be good as well. I see some comments about displays but hard to see a list of what is supported.

Ideally I would be able to convert the distance, ie between 3cm (full) and 25cm (empty ) into a % full indication on the display, but distance would be ok too. Is this possible?

Cheers
Simon.

Posted on
Tue May 09, 2023 10:56 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Time of Flight sensor and display

Simon ,

there a re properties you can set in device edit of all distance sensors: offset and multiply

value shown: ( value measured + offset ) * multiply
so try
offset = -25
multiply = - 100/22 = -4.54545

that gives 0 at 25 and 100 at 3

but if it goes over or under it will give you >100 and < 0 numbers

I could add min/ max to the options if needed

Karl

Posted on
Tue May 09, 2023 12:27 pm
siclark offline
Posts: 1963
Joined: Jun 13, 2017
Location: UK

Re: Time of Flight sensor and display

Cheers. Let me get one and play.
One problem I have with use of a display is not having a case for it so looks “unfinished “

Posted on
Tue May 09, 2023 12:54 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Time of Flight sensor and display

please also check out v ..167.71 it has properties cut max and cut min. that will limit the distance values between these values.

Karl

Posted on
Tue May 09, 2023 1:32 pm
siclark offline
Posts: 1963
Joined: Jun 13, 2017
Location: UK

Re: Time of Flight sensor and display

Cheers. Sensor arrives Friday so I’ll have a test then.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 8 guests