I am trying to log serial data from the UV sensor AS7331, but it fails to identify the sensor. Is there any way to reconfigure the Openlog Artemis to be able to log this data? Thanks.
Not very easily unless you are handy at coding, in which case you can though it takes customizing the firmware code and re-flashing the deviceā¦but the steps are all listed there ![]()
Okay great. I think editing the code looks fairly straight forward, but could you clarify what re-flashing the device means (or point me in the direction of instructions)? Thanks!
Uploading the new firmware code to the memory on the device, I thought it was in the .md but itis the āUPGRADEā tab on the let-side menu OpenLog_Artemis/UPGRADE.md at main Ā· sparkfun/OpenLog_Artemis Ā· GitHub
Okay hopefully final question. When I went to compile the code, it couldnāt find the Arduino library for the new sensor I am adding. I didnāt download any of the other sensor libraries, so Iām not sure where I need to add the library to. Is this also in GitHub somewhere? Thanks.
Hi @llemar ,
The AS7331 Library can be found at the links below.
You will need to look at the library examples and source code to work out how to integrate it into the OLA firmware.
If you are using the Dockerfile to compile the code, you will need to add this line to the āGet known librariesā section:
RUN arduino-cli lib install "SparkFun AS7331 Arduino Library"@2.2.0
I hope this helps,
Paul
@llemar :
Sorry, there is a complication. The AS7331 Library requires the SparkFun Toolkit. The Toolkit provides the Arduino I2C interface. You will need to add that too.
RUN arduino-cli lib install "SparkFun Toolkit"@1.2.0
I hope this helps,
Paul