Cool. I think the units are wrong though.
Their "V" does not seem to be voltage, but rather "input from a 10-bit ADC"
which can mean a lot of things but probably (5 / 1023) volts. They also
mention that the output is linear, but not in actually meaningful distance
units, so you should (empirically?) find the scaling factor for converting
to your unit of choice.


On Wed, May 7, 2014 at 11:00 AM, Marius Vosylius
<[email protected]>wrote:

> http://www.acroname.com/articles/linearizing-sharp-ranger.html
>
> Thats what I found, how can I Implement this:
>
> x = (float) ((2914 / (irRange.getVoltage() + 5)) - 1);
>
> On Wednesday, May 7, 2014 5:32:17 PM UTC+1, Marius Vosylius wrote:
>>
>> More detail explanation please.
>>
>> On Wednesday, May 7, 2014 5:04:11 PM UTC+1, Ytai wrote:
>>>
>>> Lookup table with linear interpolation?
>>>
>>>
>>> On Wed, May 7, 2014 at 8:13 AM, Marius Vosylius <[email protected]>wrote:
>>>
>>>> Can you explain me how to use it, Im no actual Idea how programatically
>>>> implement this chart. :(
>>>>
>>>>
>>>> On Wednesday, May 7, 2014 4:11:21 PM UTC+1, Al B wrote:
>>>>>
>>>>> I meant this chart:
>>>>>
>>>>> <https://lh5.googleusercontent.com/-IrfmxZgDWSk/U2pM6dThGQI/AAAAAAAABQQ/8JQLlbLbS5o/s1600/Screen+Shot+2014-05-07+at+8.10.03+AM.png>
>>>>>
>>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "ioio-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at http://groups.google.com/group/ioio-users.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  --
> You received this message because you are subscribed to the Google Groups
> "ioio-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/ioio-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to