* [RFC] pH sensors
@ 2015-12-04 4:29 Matt Ranostay
2015-12-05 6:44 ` Matt Ranostay
0 siblings, 1 reply; 3+ messages in thread
From: Matt Ranostay @ 2015-12-04 4:29 UTC (permalink / raw)
To: linux-iio@vger.kernel.org, Jonathan Cameron
Hello et all,
So currently planning on working a I2C based pH sensor and want to get
some input on the iio_chan_type to use.
There are two solutions that can be thought of:
1) Use the current IIO_CONCENTRATION type and use the percentage of
Hydronium (H3O+) in the solution to report to actual pH levels
2) New IIO_PH type that is an typically an integer from 0 (acid) - 14 (base)
Thanks,
Matt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] pH sensors
2015-12-04 4:29 [RFC] pH sensors Matt Ranostay
@ 2015-12-05 6:44 ` Matt Ranostay
2015-12-05 16:33 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Matt Ranostay @ 2015-12-05 6:44 UTC (permalink / raw)
To: linux-iio@vger.kernel.org, Jonathan Cameron
On Thu, Dec 3, 2015 at 8:29 PM, Matt Ranostay <mranostay@gmail.com> wrote:
> Hello et all,
>
> So currently planning on working a I2C based pH sensor and want to get
> some input on the iio_chan_type to use.
>
> There are two solutions that can be thought of:
>
> 1) Use the current IIO_CONCENTRATION type and use the percentage of
> Hydronium (H3O+) in the solution to report to actual pH levels
I just remembered that pH is for example -log(10**-7) = 7. so using
IIO_CONCENTRATION would require processing within the driver. So I
think option 2 is the only thing that makes sense since it would just
have a simple scaling value.
> 2) New IIO_PH type that is an typically an integer from 0 (acid) - 14 (base)
>
> Thanks,
>
> Matt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] pH sensors
2015-12-05 6:44 ` Matt Ranostay
@ 2015-12-05 16:33 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2015-12-05 16:33 UTC (permalink / raw)
To: Matt Ranostay, linux-iio@vger.kernel.org
On 05/12/15 06:44, Matt Ranostay wrote:
> On Thu, Dec 3, 2015 at 8:29 PM, Matt Ranostay <mranostay@gmail.com> wrote:
>> Hello et all,
>>
>> So currently planning on working a I2C based pH sensor and want to get
>> some input on the iio_chan_type to use.
>>
>> There are two solutions that can be thought of:
>>
>> 1) Use the current IIO_CONCENTRATION type and use the percentage of
>> Hydronium (H3O+) in the solution to report to actual pH levels
>
> I just remembered that pH is for example -log(10**-7) = 7. so using
> IIO_CONCENTRATION would require processing within the driver. So I
> think option 2 is the only thing that makes sense since it would just
> have a simple scaling value.
I'd have gone for the second option anyway!
Whilst it's nice to keep the range of units used to a minimum some units
are so ingrained in peoples minds for particular things we are best
going with them even when they could be blugeoned into an existing option!
>
>> 2) New IIO_PH type that is an typically an integer from 0 (acid) - 14 (base)
>>
>> Thanks,
>>
>> Matt
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-05 16:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-04 4:29 [RFC] pH sensors Matt Ranostay
2015-12-05 6:44 ` Matt Ranostay
2015-12-05 16:33 ` Jonathan Cameron
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.