--
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 ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/groups/opt_out.
--
Ytai, I have same sensor HIH4030, and I cant even get Voltage, does it means that my sensor is not working?
class Looper extends BaseIOIOLooper {
private AnalogInput aiH;
@Override
protected void setup() throws ConnectionLostException {
aiH = ioio_.openAnalogInput(41);
runOnUiThread(new Runnable() {
public void run() {
Toast.makeText(getApplicationContext(),
"HIH4030 Connected!", Toast.LENGTH_SHORT).show();
}
});
}
public void loop() throws ConnectionLostException {
runOnUiThread(new Runnable() {
public void run() {
try {
txtVoltage.setText("Voltage " + String.format("%.2f", aiH.getVoltage()) + " V");
txtHumidity.setText(String.format("%.2f", (aiH.getVoltage() - 0.958) / 0.0307) + "% RH");
progressBarHumid.setProgress((int)((float)(aiH.getVoltage() * 100 / 3.3 )));
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ConnectionLostException e) {
e.printStackTrace();
}
}
});
try {
Thread.sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
--
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 ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.
Thanks Ytai, I changed my pin to 40 and used simple app to get reading which is 0.017+. How will i go to get humidity please?
Sorry Ytai, I gave you wrong reading, its actually 0.50+
Read the beginning of this thread, I think most of the information is there. Don't forget to use a voltage divider in order to scale the voltage into the 0-3.3V range that the IOIO can handle. You can also put a capacitor in parallel to the low side resistor of that ladder to improve accuracy and overcome the high impedance problem.
Sorry Ytai, I gave you wrong reading, its actually 0.50+
--
I'm using 3.3v pin. What resistor I need to use?
You received this message because you are subscribed to a topic in the Google Groups "ioio-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ioio-users/yEnGR1s-QT8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ioio-users+...@googlegroups.com.
Hay,
Please, it would be great to have few examples.
--
The following app show temperature and relative humidity using SHT21 sensor.