Page 1 of 1

running the DAQ 3 click example

Posted: 27 Jun 2023 15:18
by bsaulquin
Dear,
we bought DAQ 3 clic + Pi 3 click shields.

I wanted to run the C example your provided. I use the NECTO, imported the project from NECTO.

I opened directly as project the Cmakelist.

When i try to compile i have the following error:
"Undeclared identifier 'MIKROBUS' in expression.

Can you help with compiling your example on the NETCO please?

Thanks

Re: running the DAQ 3 click example

Posted: 28 Jun 2023 10:39
by IvanJeremic
Hi,

Unfortunately Raspberry PI3 is not supported by our compilers so the example won't work as is, you will have to write your own libraries for it.

Luckily in Necto Studio you can go into the source code and see how we did it for all of our boards, in your case the MikroBUS not being declare dis because of the board definition, go to the board.h (select it in the include part nad click F2) file and change it to fit your Raspberry PI3.

I have attached an example of a board.h below so you can have a reference:
board.zip
(1.82 KiB) Downloaded 34 times
Regards,

Ivan.

Re: running the DAQ 3 click example

Posted: 28 Jun 2023 12:58
by bsaulquin
Dear Ivan,

not sure to understand why your IDE is not compatible with the hardware you are selling.

Beyond the pi 3 board, imagine we connect ourselves the DAQ3 to the Raspberry. How to compile the DAQ3 example I downloaded from your website?

Could you please provide the board.h for a raspberry or the DAQ3

Many thanks in advance

Re: running the DAQ 3 click example

Posted: 06 Jul 2023 10:09
by filip
Hi,

The PI shield allows physical interface between the Raspberry PI and click boards.

As stated on the official web page (https://www.mikroe.com/pi-3-click-shield) the examples that we provide for this shield are available here :
https://github.com/MikroElektronika/Ras ... Pi_3_demos

We don't provide the Python examples for our click boards, only in C I'm afraid.

Regards,
Filip.

Re: running the DAQ 3 click example

Posted: 10 Jul 2023 12:34
by bsaulquin
Dear Filip,

once again, i am looking for the C example not the python (see my previous post).

Could you please provide a board.h for the DAQ3 directly or the click 3 given that we bought these hardware on your site. I can compile but i do not have the good board.h and it is not available in your IDE i.e. NETCO.

We are just trying to make run natively your hardware

thanks in advance for teh goor board.h

Re: running the DAQ 3 click example

Posted: 10 Jul 2023 15:07
by bsaulquin
Dear Filip,

which microcontroller should i use in the NETCO studio configuration for the Raspberry pi 3 to be able to execute the DAQ3 C example i downloaded from the MIKROE website?

best regards