Click SDC41 example for PIC16F887

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 8-bit PIC MCUs.
Post Reply
Author
Message
cmrelectrical
Posts: 19
Joined: 29 Dec 2020 12:06

Click SDC41 example for PIC16F887

#1 Post by cmrelectrical » 06 May 2023 11:15

Hi
Does anyone have example code or point me in the right direction, for the MIKROE-4290 HVAC board using a PIC16F887. I'm not using the EasyPIC PRO V8 board just breadboard. I want to build a simple project with "high C02 alarm" lights no screen, and just need to know how to read the C02 value from the SCD41 using the I2C. I'v tried the code in the Mikroe library but its only for the PIC18F97J94 and screen.

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: Click SDC41 example for PIC16F887

#2 Post by IvanJeremic » 09 May 2023 11:14

Hi,

You can see our example code with its source files in the link below:
https://github.com/MikroElektronika/mik ... licks/hvac

You can find the same example in Necto Studio (https://www.mikroe.com/necto), it is free as long as you are not using it for commercial purposes, and you can go a lot deeper into the example code.

Regards,

Ivan.

cmrelectrical
Posts: 19
Joined: 29 Dec 2020 12:06

Re: Click SDC41 example for PIC16F887

#3 Post by cmrelectrical » 09 May 2023 14:37

Hi
Thanks for the reply, unfortunately I don't have a development board just a breadboard. Have tried running your code but and am getting error 76 324 Undeclared identifier 'hvac_i2c_driver_init' in expression Click_HVAC_PIC.c. Have written my own code but it gets hung up waiting for something, any idea

C02_read = I2C1_Rd (1); // Read the data
C02_read = I2C1_Rd (0u); // Read the data

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: Click SDC41 example for PIC16F887

#4 Post by IvanJeremic » 17 May 2023 10:33

Hi,

You can continue this conversation with my colleague in the link below:
viewtopic.php?f=218&t=79972

Regards,

Ivan.

Post Reply

Return to “PIC PRO Compilers”