I was wondering if anyone has tips on how to use the Honeywell hch 1000 with a 555 timer? I am having difficulty trying to wire the hch 1000 correctly with the 555 timer and the arduino uno. Thanks.
Please post
- URL of the sensor
- your code so far
The data sheet for the honeywell can be found at:
http://www.honeywell-sensor.com.cn/prodinfo/sensor_humidity_moisture/datasheet/HCH-1000.pdf
the cmos 555 data sheet can be found at:
http://www.datasheetcatalog.org/datasheet/texasinstruments/tlc555.pdf
Here is the code
const int pin = 3; // Analog input pin
unsigned long duration;
const int sensor_offset = 1889; //the offset to give correct RH value
void setup()
{
Serial.begin(9600); // initialize serial communications at 9600 bps:
pinMode(pin, INPUT);
}
void loop()
{
duration = 0;
byte j = 0; // for start counter enter digits
for (j = 0; j < 16 ; j +=1)
{
duration += pulseIn(pin, HIGH);
}
duration /=16;
long humid =(duration - sensor_offset)/10.23; //max is 1023 and to %
Serial.print("sensor = " );
Serial.print(duration); // print the adc value to the serial monitor:
Serial.print("\t humidity = ");
Serial.print(humid); // print the temperature
Serial.println(" %");
delay(1000); // wait 1 second before next sample
}
I have attached the circuit diagram but I am not sure it is correct.
Examples of what you can do: