Closed alvarowolfx closed 6 years ago
Hello @alvarowolfx
Yes, You are right, you need to compile a special MCU firmware: https://github.com/matrix-io/matrix-creator-mcu/tree/kp/kernel
Due to in the kernel space, it is not allowed to use float type data. We made some adjustments in the MCU firmware.
So let's compile kp/kernel
branch and flash it with openocd.
It could help you: https://github.com/matrix-io/matrix-creator-init/blob/master/sam3-program.bash#L61
Best regards,
Kevin Patino
Thanks for the answer @kdpatino.
It worked here for the first time, but after a reboot, I'm getting only zero values from the humidity readings. Already tried to write the firmware again but none of it worked =/.
These are the steps that I made:
creator
folder and run make
command. This generated to me some files on a build
folder and I thought that the right file was the ch.bin
. ch.bin
file to the blob
folder of the matrix-creator-init
project. sudo openocd -f cfg/sam3s_rpi_sysfs.cfg
on the matrix-creator-init
folder.Hello @alvarowolfx
We release a new version of: 1- https://github.com/matrix-io/matrix-creator-init/releases/tag/v0.4.8 2- https://github.com/matrix-io/matrix-creator-hal/releases/tag/v0.3.1 3- https://github.com/matrix-io/matrixio-kernel-modules/releases/tag/v0.1.3
With these changes, you could read the sensors values using direct access (/dev/spidev) or kernel modules (iio / regmap).
Let me know if you have any doubt about these changes.
Regards,
Kevin Patino
I'm using the Matrix kernel modules to leverage the mic array driver and tried to use together with Malos, but I saw later that they don't work together.
Now I'm reading the sensor values directly from the iio devices, but I'm getting some raw sensor values that I don't know how to convert to the real values. This is my class that interfaces with Matrix board, and is using libiio python binding to access iio devices.
The focus here is the
_sync_humidity
function that queries the iio devices to update current reading values. The raw value for the humidity, for example, return something like:How do I convert this to the actual sensor value?
Thanks for the help.