7/12/2018 11:06 AM | |
Posts: 4 Rating:
|
Hi, I've searched a lot with no luck, so I decided to post here my question. I wasn't able to find a document describing the correct IOT2040 GPIO pinout. What I found so far is this page https://communities.intel.com/thread/55920 that is highly unclear to me. For example, how can I suppose to know that IO13 (gpio7 in Linux) corresponds to the user-led? I wonder if there is a document describing the SIMATIC IOT pinout and how to use them, I need the IO SHIELD? From the SIMATIC IOT Operating Instructions I found out that X10 to X15 correspond to the Arduino shield interfaces, how can I use them with the mraa library? Hope someone could lead me in the right direction. Thanks, Andrea |
7/12/2018 1:09 PM | |
Joined: 4/28/2015 Last visit: 8/26/2024 Posts: 3345 Rating:
|
Hi, okay, that the USER LED is pin 13 isn't mentioned anywhere I think, that's correct. In the operating instructions there is a picture of the circuit board on page 49, starting from page 54 there are tables for each interface (X10 - X13). In this table you can see which pin has which functionality. You can also search on google for the Arduino Uno R3 pinout, that's a good overview. A description how the mraa lib in C/C++ or python can be found here. You have to define the functionality of the GPIO within your user program. If you want to know how the IOT2000 I/O module pins are mapped to the arduino pins of the board, please have a look at the manual of the I/O module on page 30. Best regards! |
Last edited by: Jen_Moderator at: 7/13/2018 9:11:13 AMOptimized links. Not working for IOT2050 support anymore from March 1st, 2024. |
|
7/12/2018 1:59 PM | |
Posts: 4 Rating:
|
Hi bergmanu, thank you very much for your quick reply, very appreciated. I've already taken a look to mraa library documentation and Arduino UNO pinout. What I'm missing here is the "connection" between those information. I just took my tester and check that if I enable gpio13 and I change its direction to OUT, I can measure a voltage between PIN 6 and PIN 7 of X10, that's ok. But, why in mraa mraa.Gpio(13) refers to actual gpio7 (in linux) and not to gpio13? It's a little bit confusing. So, again, what I'm looking for is a table to match mraa gpio numeration with the one of arduino. For example, X10 PIN 6 (that is DIGITAL 13 and gpio13) how is referred within mraa library? I'm looking for something like the Pin Mapping table for RaspberryPi reported in mraa library documentation: http://iotdk.intel.com/docs/mraa/v1.9.0/rasppi.html Thank you |
Last edited by: atomassetti at: 7/12/2018 2:44:35 PM |
|
Follow us on