running the DAQ 3 click example

Post Reply
Author
Message
bsaulquin
Posts: 6
Joined: 27 Jun 2023 09:19

running the DAQ 3 click example

#1 Post by bsaulquin » 27 Jun 2023 15:18

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
Attachments
DAQ3click.png
DAQ3click.png (170.28 KiB) Viewed 681 times

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: running the DAQ 3 click example

#2 Post by IvanJeremic » 28 Jun 2023 10:39

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 33 times
Regards,

Ivan.

bsaulquin
Posts: 6
Joined: 27 Jun 2023 09:19

Re: running the DAQ 3 click example

#3 Post by bsaulquin » 28 Jun 2023 12:58

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

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: running the DAQ 3 click example

#4 Post by filip » 06 Jul 2023 10:09

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.

bsaulquin
Posts: 6
Joined: 27 Jun 2023 09:19

Re: running the DAQ 3 click example

#5 Post by bsaulquin » 10 Jul 2023 12:34

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

bsaulquin
Posts: 6
Joined: 27 Jun 2023 09:19

Re: running the DAQ 3 click example

#6 Post by bsaulquin » 10 Jul 2023 15:07

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

Post Reply

Return to “Mikromedia”