මෙම ලිපිය ඇමෙරිකානු ඉංග්රීසි. බසින් පමණි
8 thoughts on “(English) SHT75 Humidity and Temperature Sensor with PIC18F uC”
ප්රතිචාරයක් ලබාදෙන්න
මෙම ලිපිය ඇමෙරිකානු ඉංග්රීසි. බසින් පමණි
This site uses Akismet to reduce spam. Learn how your comment data is processed.
I am writing code for the same sensor. Although I am using a HC12 micro controller. I have a few questions for you if you wouldn’t mind offering your assistance. please feel free to contact me through email and I will send you my questions. Thanks in advance.
@vanni22
Did you check the full source code attached to the post above? Perhaps answer to your question is there :)
Please I am trying to adap this code to pic18F14K50 but I am having problem compiling the code. I have my SHT75 data pin on pin RC1 and SCK on Pin RC0 I am using 1 12MHz Cristal oscilator connected to pin RA4 and RA5 and my serial connection to PIN RA0 and RA1. I am using Hi-Tech Microchip MPLAB XC8 compiler Please can you help me. Because I have been troubleshouting the error since but it just not working
Since I don’t have access to any development tool, I cannot help much. But some steps in porting.
1. Start with skeleton code which just output something as the SHT75 code. Make sure your primary output method (serial terminal/LCD/SSD) works.
2. Don’t use any delay/serial/clock related routines attached above. Use the routines provided by compiler.
3. Make sure the pins used in SHT75 codes are set to digital-IO (not assigned to any peripheral). Two LEDs/switches connected to pins can be used to verify this.
4. Make sure you use the pull-up resistor in SHT75 data-pin.
5. Now insert the ported SHT75 code to your project with as many as debug codes required (you should identify where the code fail). When compiling turn-off compiler optimization first. May be it’s messing with bit-bang routines in the code. (s_read_byte, s_write_byte)
6.If you have an oscilloscope you can see the actual timing for communication and would help you very much in debugging.
Hi! I’m developing a class for the SHT75 sensor for mbed. Source code is already given, but they are too complicated. I want to develop a simple.
Could you please show the .h and .cpp of the class?
Cordially.
Sorry, I did not see the file to download.
Download link is at the end of above code. There is a ‘C’ source and header, you can covert it into a class.
http://microsolutions.info/micro_main/wp-content/uploads/2011/08/SHT75.zip
can we interface sht 75 sensor with 8051 microcontroller in edsim51