Has anyone successfully gotten a ZMOD4xxx to work with an AVR-based Arduino? I can't seem to get Renesas's sample code working with my Mega. Just wanted to see if other people were able to find a solution, thanks!
This kind of request often falls off the page with no replies. If you provide all the details, there are people here that can make it work from scratch.
Ok, here's the overall picture. I need to be able to read the estimated CO2 level from this sensor: https://www.renesas.com/us/en/document/dst/zmod4410-datasheet using my Arduino Mega. Renesas has some precompiled libraries that must be used with it since it requires their algorithms: [ZMOD4410 - Firmware Configurable Indoor Air Quality (IAQ) Sensor with Embedded Artificial Intelligence (AI) | Renesas] (in the software downloads section it is the [ZMOD4410 - 2nd Gen - Air Quality & eCO2 Firmware - Recommended for New Designs] file). They have sample code for an ARM-based Arduino but only the library files for the ATMega Arduinos. After trying to import the ATMega library, I cannot get it to compile.
Please copy and paste the complete compilation error listing.
FQBN: arduino:avr:mega
Using board 'mega' from platform in folder: C:\Users\parke\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\parke\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
"C:\\Users\\parke\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\parke\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\parke\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\mega" "C:\\Users\\parke\\AppData\\Local\\Temp\\arduino\\sketches\\E9F2AE6351B77EC74D5B3A0BD628B997\\sketch\\ZMOD4410Test.ino.cpp" -o nul
Alternatives for iaq_2nd_gen.h: [avr-gcc]
ResolveLibrary(iaq_2nd_gen.h)
-> candidates: [avr-gcc]
"C:\\Users\\parke\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\parke\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\parke\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\mega" "-Ic:\\Users\\parke\\OneDrive\\Documents\\Arduino\\libraries\\avr-gcc" "C:\\Users\\parke\\AppData\\Local\\Temp\\arduino\\sketches\\E9F2AE6351B77EC74D5B3A0BD628B997\\sketch\\ZMOD4410Test.ino.cpp" -o nul
In file included from C:\Users\parke\OneDrive - Cornell University\Desktop\ZMOD4410Test\ZMOD4410Test.ino:1:0:
c:\Users\parke\OneDrive\Documents\Arduino\libraries\avr-gcc/iaq_2nd_gen.h:32:10: fatal error: zmod4xxx_types.h: No such file or directory
#include "zmod4xxx_types.h"
^~~~~~~~~~~~~~~~~~
compilation terminated.
Alternatives for zmod4xxx_types.h: []
ResolveLibrary(zmod4xxx_types.h)
-> candidates: []
Using library avr-gcc in folder: C:\Users\parke\OneDrive\Documents\Arduino\libraries\avr-gcc (legacy)
exit status 1
Compilation error: exit status 1
It just looks like the library is not installed.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.