From: Jonathan Cameron <jic23@kernel.org>
To: Matt Ranostay <mranostay@gmail.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: [RFC] pH sensors
Date: Sat, 5 Dec 2015 16:33:46 +0000 [thread overview]
Message-ID: <566311EA.9070504@kernel.org> (raw)
In-Reply-To: <CAKzfze_Ff8mWJR0kqo1v1mD_=mGCNBWPaZZ1Q+2aOzU9mzPp1A@mail.gmail.com>
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
>
prev parent reply other threads:[~2015-12-05 16:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=566311EA.9070504@kernel.org \
--to=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=mranostay@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.