Need support: Connect Pic32 MZ with Harmony I²C/I2C (Mikrobu
Posted: Fri Jun 08, 2018 1:18 pm
Hi Guys,
newbie here.
I bought the DM990004 (http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=DM990004) IoT Kit for AWS (Amazon Web Services) and want to connect the air quality 3 click board (https://www.mikroe.com/air-quality-3-click) from MikroElektronika on the mikroBus with I²C (I2C).
I'm using MPLAB X iDE v4.15, Harmony v1.09, XC 32 Compiler v1.42 as recommended (and necessary) in the example Project for the IoT Kit on https://github.com/MicrochipTech/aws-iot-firmware-pic32mz/blob/master/documents/iot-ethernet-firmware-compile-and-program.md
Here is the whole example project
https://github.com/MicrochipTech/aws-iot-firmware-pic32mz
Debugger is a Pickit 3.
I just want to read the sensor data of the air quality 3 sensor and don't know exactly how to do it. The sensor has sda and scl pins, so it communicates with I2C.
There is a I2C library from MPLab Harmony which i try to use. I read the documents but I don't know how to use it and I wonder why there are no libraries for the mikrobus/click boards. Why can't I use the MPLab Code Configurator which has the option to include click board libraries for the PIC 32MZ EF?
Does the air quality 3 sensor works as a slave or master while transmitting its sensor data?
I'm short on experience programming hardware and I don't know where I have to start.
Many questions, the important one is how can i read the sensor data in my Project?
Thanks for your help!
newbie here.
I bought the DM990004 (http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=DM990004) IoT Kit for AWS (Amazon Web Services) and want to connect the air quality 3 click board (https://www.mikroe.com/air-quality-3-click) from MikroElektronika on the mikroBus with I²C (I2C).
I'm using MPLAB X iDE v4.15, Harmony v1.09, XC 32 Compiler v1.42 as recommended (and necessary) in the example Project for the IoT Kit on https://github.com/MicrochipTech/aws-iot-firmware-pic32mz/blob/master/documents/iot-ethernet-firmware-compile-and-program.md
Here is the whole example project
https://github.com/MicrochipTech/aws-iot-firmware-pic32mz
Debugger is a Pickit 3.
I just want to read the sensor data of the air quality 3 sensor and don't know exactly how to do it. The sensor has sda and scl pins, so it communicates with I2C.
There is a I2C library from MPLab Harmony which i try to use. I read the documents but I don't know how to use it and I wonder why there are no libraries for the mikrobus/click boards. Why can't I use the MPLab Code Configurator which has the option to include click board libraries for the PIC 32MZ EF?
Does the air quality 3 sensor works as a slave or master while transmitting its sensor data?
I'm short on experience programming hardware and I don't know where I have to start.
Many questions, the important one is how can i read the sensor data in my Project?
Thanks for your help!