The way I'm interpreting the datasheet is the following:
There's an I2C EEPROM at address 0x01, from which you need to read back 4
bytes (addresses 10:13). These bytes translate into two 2-byte calibration
values that you'll need to convert the output signal to actual humidity
values.
The output signal ("fout") is a periodic digital signal whose frequency is
related to the humidity. You probably want to use a
PulseInput<https://github.com/ytai/ioio/wiki/Pulse-Input> on
the IOIO to measure the frequency, then use the two calibration values and
the measured frequency to convert it to humidity using the formula given in
the datasheet:
*RH(%) = (offset-Soh)*sens/2^12,*
where offset and sens are the two EEPROM values and Soh is the measured
frequency (probably in Hz units).



On Tue, Mar 25, 2014 at 11:30 AM, Marius Vosylius <[email protected]
> wrote:

> Its means for my Humidity Sensor HH10D I can use Pin 4 & 5.
>
> <http://goog_1523164592>
> https://www.sparkfun.com/datasheets/Sensors/Temperature/HH10D.pdf
>
> And what would be an address for this sensor, I can see here 10 11 12 &
> 13, so do I need to use them all? Or just one specific?
>
>
> On Tuesday, March 25, 2014 4:57:46 PM UTC, Ytai wrote:
>
>> To get Celsius, get rid of the +273.15.
>>
>> You can connect as many devices as you want on the same I2C bus, as long
>> as they have distinct addresses. With the SparkFun TMP102, there's a slight
>> problem that the breakout board has pull-ups on it, so if you connect too
>> many of those in parallel you'd end up with excessively strong pull-ups.
>>
>> Alternatively, the IOIO has 3 I2C busses that you can use.
>>
>>
>> On Tue, Mar 25, 2014 at 2:39 AM, Marius Vosylius <[email protected]>wrote:
>>
>>> How would I get C?
>>>
>>> Another Question Ytai, Can I connect another Sensor which uses same SLA
>>> DLA? And which pins would I need to use this time. Thanks.
>>>
>>>
>>> On Tuesday, March 25, 2014 7:48:07 AM UTC, Ytai wrote:
>>>
>>>> Looks OK. Those are in degrees Kelvin.
>>>> On Mar 24, 2014 11:21 PM, "Marius Vosylius" <[email protected]>
>>>> wrote:
>>>>
>>>>> Ytai, Finally I got some output now on my app. But readings does it
>>>>> look correct I get 288.65 288.71.
>>>>>
>>>>> On Monday, March 24, 2014 10:21:06 PM UTC, Ytai wrote:
>>>>>>
>>>>>> The code seems OK. What are you seeing in the logs?
>>>>>> Also, did you intentionally change the TWI number back to 0?
>>>>>> On Mar 24, 2014 3:15 PM, "Marius Vosylius" <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Ytai, Could you have a look what is wrong as Im still cant get
>>>>>>> output:
>>>>>>>
>>>>>>>  class Looper extends BaseIOIOLooper {
>>>>>>>
>>>>>>>   public void setup() throws ConnectionLostException {
>>>>>>>
>>>>>>>     twi = ioio_.openTwiMaster(0, TwiMaster.Rate.RATE_100KHz, false);
>>>>>>>
>>>>>>>     runOnUiThread(new Runnable() {
>>>>>>>
>>>>>>>              public void run() {
>>>>>>>
>>>>>>>                  Toast.makeText(getApplicationContext(),
>>>>>>>
>>>>>>>                          "TMP102 Connected!", Toast.LENGTH_SHORT
>>>>>>> ).show();
>>>>>>>
>>>>>>>                 }
>>>>>>>
>>>>>>>             });
>>>>>>>
>>>>>>>  }
>>>>>>>
>>>>>>>   public void loop() throws ConnectionLostException,
>>>>>>> InterruptedException {
>>>>>>>
>>>>>>>    try {
>>>>>>>
>>>>>>>   twi.writeRead(address, false, request, request.length, response,
>>>>>>> response.length);
>>>>>>>
>>>>>>>   /* Update UI */
>>>>>>>
>>>>>>>   updateViews(getTemperature());
>>>>>>>
>>>>>>>  } catch (InterruptedException e) {
>>>>>>>
>>>>>>>   ioio_.disconnect();
>>>>>>>
>>>>>>>  } catch (ConnectionLostException e) {
>>>>>>>
>>>>>>>   throw e;
>>>>>>>
>>>>>>>  } catch (Exception e) {
>>>>>>>
>>>>>>>   // TODO Auto-generated catch block
>>>>>>>
>>>>>>>   e.printStackTrace();
>>>>>>>
>>>>>>>  }
>>>>>>>
>>>>>>>  }
>>>>>>>
>>>>>>>   public float getTemperature() throws Exception {
>>>>>>>
>>>>>>>    if (!twi.writeRead(address, false, request, 1, response, 2)) {
>>>>>>>
>>>>>>>    throw new Exception("I2C transaction with TMP102 failed.");
>>>>>>>
>>>>>>>  }
>>>>>>>
>>>>>>>  int temp = Temp.from(response[0]) << 8 | Temp.from(response[1]);
>>>>>>>
>>>>>>>  temp >>= 4;
>>>>>>>
>>>>>>>  return temp / 16.f + 273.15f;
>>>>>>>
>>>>>>>  }
>>>>>>>
>>>>>>>   }
>>>>>>>
>>>>>>>  private void updateViews(float f) {
>>>>>>>
>>>>>>>  final String str = String.format("%.2f", f);
>>>>>>>
>>>>>>>  runOnUiThread(new Runnable() {
>>>>>>>
>>>>>>>  @Override
>>>>>>>
>>>>>>>  public void run() {
>>>>>>>
>>>>>>>   tmpTextView.setText(str);
>>>>>>>
>>>>>>>  }
>>>>>>>
>>>>>>>  });
>>>>>>>
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>>  --
>>>>>>> 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.
>>>
>>
>>  --
> 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