Community
cancel
Showing results for 
Search instead for 
Did you mean: 
CCaio
Novice
1,022 Views

Using MRAA

In this text https://software.intel.com/en-us/articles/internet-of-things-using-mraa-to-abstract-platform-io-capa... Internet of Things: Using MRAA to Abstract Platform I/O Capabilities | Intel® Software it is told that "The MRAA package is already installed on Intel Galileo and Edison". So I started programming and added the libraries (# include , # include ) at the beginning of the code. But then i got the message: "fatal error: mraa.h: No such file or directory", so i gues I don't have this package already installed. Is there a step by step guide to intall the package? I saw one in github and another one here http://iotdk.intel.com/docs/master/mraa/building.html mraa: Building libmraa,

but as I'm new to this platform these guides are not clear to me.

0 Kudos
8 Replies
FTinetti
Honored Contributor I
103 Views

caiocsgomes wrote:

In this text https://software.intel.com/en-us/articles/internet-of-things-using-mraa-to-abstract-platform-io-capa... Internet of Things: Using MRAA to Abstract Platform I/O Capabilities | Intel® Software it is told that "The MRAA package is already installed on Intel Galileo and Edison".

Hi caiocsgomes,

Are you using Intel Galileo or Intel edison?

Fernando.

CCaio
Novice
103 Views

Hi, I'm using Galileo gen 2 Fernando.

Caio

FTinetti
Honored Contributor I
103 Views

Hi Caio

What image are you using in your Galileo? I think that document refers to the "full" eglibc one, for which you have documentation at https://software.intel.com/en-us/get-started-galileo-windows-step1 IoT - Step 1: Make a bootable micro SD card | Intel® Software about how to install and use.

Most of my work has been using Arduino IDE, so maybe I'm not going to be of much help beyond this,

Fernando.

CCaio
Novice
103 Views

Actually I'm trying to use the MRAA in the Arduino IDE. I have to generate a high precision PWM. So I have to increase the PWM frequency in order to decrease the period. I was thinking about using the MRAA, as it seems easier. Besides that, I didn't find any code example for PWM for the galileo and I didn't find many books or courses in the Internet for programming with galileo. I'm used to Texas microcontrollers, this is my first try with arduino.

FTinetti
Honored Contributor I
103 Views

caiocsgomes wrote:

Actually I'm trying to use the MRAA in the Arduino IDE. I have to generate a high precision PWM. So I have to increase the PWM frequency in order to decrease the period. I was thinking about using the MRAA, as it seems easier. Besides that, I didn't find any code example for PWM for the galileo and I didn't find many books or courses in the Internet for programming with galileo. I'm used to Texas microcontrollers, this is my first try with arduino.

I didn't see any mraa (arduino) sketch example, sorry. It does not mean it does not exist.

About PWM frequency, there are a number of threads about it, such as (I didn't check any of them, I didn't have any related problem):

Actually, I had a specific issue, as shown in

which is about initialization & PWM frequency, but it doesn't seem to be related to setting a required PWM frequency but about selecting among choices.

Fernando.

idata
Community Manager
103 Views

Hello Caio,

 

 

Do you have any updates about this?

 

 

-Peter.
CCaio
Novice
103 Views

Hello Peter,

Actually I came back to Texas Instruments and I'm using tiva tm4c123 right now. I was looking forward to use the galileo, because I would like to use a new microcontroller on my projects and my lab has several galileos gen 2, but I didn't find enough material on internet to teach the stuff I need.

I need to generate a PWM with at least 10kHz using the Arduino IDE, as I don't have any experience using Linux.

idata
Community Manager
103 Views

Hello Caio,

 

 

I understand your situation, in that case maybe you can find this example useful: https://github.com/MakersTeam/Galileo/blob/master/Arduino-Examples/setPWM_GalileoGen2.ino. That example show how to modify the frequency and duty cycle of the Gen2's PWM.

 

 

Let me know if this helps, we'll be glad to help in any way we can.

 

-Peter.
Reply