I have bought humidity sensor HR 202 like this (Wholesaler of Soldering Irons & Iot Wifi Module by Visha World, Mumbai)
Can anyone tell exactly, how should i connect it to arduino for analogread? I cannot find anything i would understand on the google.
Is it possible to use digital-pin to make frequency according to datasheet :
1.5V AC(Max sine) • Operating frequency: 500Hz-2kHz •
and read it by analog pin? In which way?
I need some figures, or images. Something easy i can understand.
Have you searched this forum for HR 202 ?
Yes I have. I have found something, but no working schema. Only some suggestions.
It could be a DHT22 which there is a lot of information on line. It looks by the time you purchase the parts to make this work, you could purchase a DHT22 for less then $5.00. You might want to start by defining the problem with specifications including a flow chart, schematic, power requirements, and EMI requirements. Define what the expected outcome needs to be. Purchase the Arduino cookbook and read it, this will give you some basics. also use the online tutorials and videos available, there are many good ones on this web site. At this point you will be able to define the problem and may have already solved it.
I remember seeing this one come up recently indeed.
Maybe that person got it to work; maybe they gave up on it.
Of course if you're in for a serious challenge, go ahead and try to figure out how to excite and read this one. Otherwise, just get a BME280 and call it a day.
Some ppl are able to connect it like this :https://www.aliexpress.com/item/32882330574.html?src=google&src=google&albch=shopping&acnt=494-037-6276&isdl=y&slnk=&plac=&mtctp=&albbt=Google_7_shopping&aff_platform=google&aff_short_key=UneMJZVf&&albagn=888888&albcp=6459787116&albag=77066918093&trgt=743612850714&crea=pl32882330574&netw=u&device=c&gclid=EAIaIQobChMI5PzulZWf6AIV2YXVCh27-gQSEAYYBCABEgIN7PD_BwE&gclsrc=aw.ds
I thought the question was easy. There is no solution to buy another easier sensor. I already use it. I wanted to know what "operating frequency: 500Hz-2kHz" means.
For others - I used pin 6 from Arduino, which has 980 Hz and set PWM to 100 (better results than 125 - which is half) and I used 2 x 10K resistors and connected to an analogue - between the first 10k resistor and the second 10K restisotr, which is connected to sensor 1 contact. Second sensor pin connected to GND.
It apparently expects a 1.5V AC sine wave (which is something an Arduino can not readily produce - that accounts for the parts sine, AC and 1.5V).
Easiest solution is probably to build it into an LC oscillator where its resistance changes the frequency, and measure the resulting frequency with your Arduino.
Maybe the sensor's data sheet gives you more clues on how to work with it; such as a reference circuit.
Or you can hunt down the schematics of that thing you found on Aliexpress, figure out how that works, and adapt it.
The sensor data sheet leads me to believe there is no simple way to interface it to an Arduino or any other uC. The max applied voltage is 1.5 VAC. The charts on the data sheet reflect results at 1.0 VAC @ 1.0 KHz. Impedance performance is shown at 25 C. Personally I would not pursue things using this sensor if I want RH I can run with a DHT 11 or DHT 22 which easily interface and read on an Arduino or similar uC.
Ron
Thank you for information. I also think, that using this sensor with Arduino is rather mistake, but as i said, i bought it i wanted to learn something new, just how it work.
Maybe i should try with it :
[]https://pl.aliexpress.com/item/32862689682.html?gps-id=detail404&scm=1007.16891.96945.0&scm_id=1007.16891.96945.0&scm-url=1007.16891.96945.0&pvid=15e13862-ae9e-4e4f-8f32-28b467dcbf5f]](https://pl.aliexpress.com/item/32862689682.html?gps-id=detail404&scm=1007.16891.96945.0&scm_id=1007.16891.96945.0&scm-url=1007.16891.96945.0&pvid=15e13862-ae9e-4e4f-8f32-28b467dcbf5f)
I will try it with voltage divider to do VAC about 1 V and will check result using only PWM.