DTH11 sensor with relay
Moderator: Benj
DTH11 sensor with relay
Hi can someone know how to connect relay to DTH11 sensor temperature readings. I added my flowcode file, in it in decison "relay ieslegsanas" i want to input "str>28" but its give me error. i think is becauce i should change str to bite. But when i do that my sensor readings aren't fine.
- Attachments
-
- DHT11_Strada.fcfx
- (11.13 KiB) Downloaded 262 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: DTH11 sensor with relay
Hello,
This should hopefully help. I use the strings to send data to the LCD and then read the temperature value again but this time as a whole number rather than a string. This way I can make the comparison directly on the value.
You could add some hysteresis to stop the relay from oscillating on and off like this.
This should hopefully help. I use the strings to send data to the LCD and then read the temperature value again but this time as a whole number rather than a string. This way I can make the comparison directly on the value.
You could add some hysteresis to stop the relay from oscillating on and off like this.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel