Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9868 Discussions

Beginners tutorials for Edison novice - focusing on sensor integration

jbach1
New Contributor II
1,101 Views

I'm looking for a series of more advanced tutorials. Have just watched the Sparkfun Getting Started 1 & 2 and need to keep going.

Can anyone make any recommendations?

My focus will be sensor interaction with the Edison. Right now I haven't decided whether to focus on a javascript-nodejs programming environment or perhaps Python.

Any help or tips appreciated!

0 Kudos
5 Replies
Pedro_M_Intel
Employee
128 Views

Hello eco_cach,

What kind of sensors are you planning to use?

Have you looked at the MRAA website, it has some examples of how to use it , I think you might find it helpful.

http://iotdk.intel.com/docs/master/mraa/ mraa: Main Page

Also there are several examples using MRAA on GitHub, not only on the MRAA GitHub but you could look for examples of other community users that have been working on great projects and share it on GitHub.

https://github.com/intel-iot-devkit/mraa intel-iot-devkit/mraa · GitHub

Peter.

jbach1
New Contributor II
128 Views

Thanks Peter!

this is the specific sensor

https://www.sparkfun.com/products/639 Ultrasonic Range Finder - LV-MaxSonar-EZ1 - SEN-00639 - SparkFun Electronics

I am undecided whether to go the Python or Javascript-NodeJS route.

Any suggestions or ideas of the pros-cons of each?

Pedro_M_Intel
Employee
128 Views

I took a quick look at the sensor you want to use and I believe it shouldn't be too hard to get it working using MRAA since the sensor uses PWM to communicate and accessing PWM using MRAA is quite easy.

Regarding your request for a suggestion, well, my first choice would be to use C/C++ since there are more examples using it, however there are a lot of Python examples too, but I believe it's more of a personal thing, choose whichever fits you better, the one that you understand the most or the one you think is the easiest.

Peter.

jbach1
New Contributor II
128 Views

Thanks Peter!. You didn't mention NodeJS. I'm more of a C C++ novice. I'm much more comfortable in javascript.

But since there are more examples using C perhaps I'll have a look and see if they make sense

Matthias_H_Intel
Employee
128 Views

Intel_Peter wrote:

I took a quick look at the sensor you want to use and I believe it shouldn't be too hard to get it working using MRAA since the sensor uses PWM to communicate and accessing PWM using MRAA is quite easy.

Regarding your request for a suggestion, well, my first choice would be to use C/C++ since there are more examples using it, however there are a lot of Python examples too, but I believe it's more of a personal thing, choose whichever fits you better, the one that you understand the most or the one you think is the easiest.

Peter.

you should probably consider writing a UPM library on top of mraa to support your sensor. See https://github.com/intel-iot-devkit/upm intel-iot-devkit/upm · GitHub - there is also documentation on how to write a UPM lib.

If you do it properly you write it in C++ and will have bindings for Python as well as for NodeJS.

One drawback (currently?) on NodeJS: no interrupt support. Just in case you'd require this you'd be better of with Python (or C++)

Reply