DHT11 sensor connection
Moderator: Benj
- 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: DHT11 sensor connection
Hello,
Please can you post your program and we'll take a look.
Please can you post your program and we'll take a look.
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
Re: DHT11 sensor connection
I was trying to change sample wich was in flowcode web page. There was diferent humidity and temperature sensor.
- Attachments
-
- DHT11_LCD.fcfx
- (9.54 KiB) Downloaded 290 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: DHT11 sensor connection
Hello,
In your program you don't call the SampleSensor macro, it is this macro which communicates with the sensor and reads the values.
The other macros just take the readings and present the data formatted in different ways.
Also the GetTempString macro has a Float variable as it's return variable when it's expecting a string. Trying to run the program in simulation pops this up as an error.
In your program you don't call the SampleSensor macro, it is this macro which communicates with the sensor and reads the values.
The other macros just take the readings and present the data formatted in different ways.
Also the GetTempString macro has a Float variable as it's return variable when it's expecting a string. Trying to run the program in simulation pops this up as an error.
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