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.
Click SDC41 example for PIC16F887
- IvanJeremic
- mikroElektronika team
- Posts: 316
- Joined: 05 Sep 2022 14:32
Re: Click SDC41 example for PIC16F887
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.
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.
-
- Posts: 19
- Joined: 29 Dec 2020 12:06
Re: Click SDC41 example for PIC16F887
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
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
- IvanJeremic
- mikroElektronika team
- Posts: 316
- Joined: 05 Sep 2022 14:32
Re: Click SDC41 example for PIC16F887
Hi,
You can continue this conversation with my colleague in the link below:
viewtopic.php?f=218&t=79972
Regards,
Ivan.
You can continue this conversation with my colleague in the link below:
viewtopic.php?f=218&t=79972
Regards,
Ivan.