![]() ![]() *dht22_temp = dht22_read_byte() // read temperature byte 1 *dht22_humi = dht22_read_byte() // read humidity byte 1 Void dht22_read(uint16_t *dht22_humi, int16_t *dht22_temp)ĭHT22_PIN = 0 // connection pin output lowĭHT22_PIN_DIR = 0 // configure connection pin as outputĭHT22_PIN = 1 // connection pin output highĭHT22_PIN_DIR = 1 // configure connection pin as input read humidity (in hundredths rH%) and temperature (in hundredths ☌elsius) from sensor DHT22 pin connection (here data pin is connected to pin RB0) MCU: PIC16F877A X-tal: 8MHz mikroC pro for PIC v7.6.0 ![]() ![]() Program for, "DHT11 interfacing with PIC16F877A" You may find this helpful too: PCB design & Software help. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |