Pin Number for Digital Outputs and Programmable Digital I/o

Hey Guys,

I am using the Portenta Machine control board for my project, and I am trying to control a stepper motor. However I am struggling to find the corresponding Pin names. In the portenta H7 board, D6 pin is a PWM pin. But how do I use this for the Portenta machine control where my motor is connected to Digital output 6?

Could anyone provide me the name of each pin?

Any help would be highly appreciated!

Best Regards,
Harshath SelvaKumar

Here is a link to get you started;

Hey,
I do have the same document, but how do I correspond the pins in a Portenta H7 to Portenta Machine control board?

It always helps when listing parts that you include a link to that part.

I found this at: https://www.etechnophiles.com/arduino-portenta-h7-intro-pinout-specs-parts/#board-layout-of-arduino-portenta-h-7

This is the board that i am using. The Portenta H7 is in-built.

At this point you may want to go to the source of the board and ask for the programing documentation. These links may help:

https://docs.arduino.cc/hardware/portenta-machine-control/?queryID=6fc8df8c6c59c1e43a3535515c332fcc

1 Like

Hello everyone,

Please take a look at the Portenta Machine Control User Manual and the example sketches provided by the Arduino_PortentaMachineControl library:

Best,

1 Like

Hello,
Thank you for the information. I also have such a problem using this library, a pin can be written as follows.

MachineControl_DigitalOutputs.write(0, HIGH);

this would address PIN 0 of the digital outputs on the PMC.
Can I define in the code that this is now simply a normal PIN with the number 3?

So how do you address the pins of an Arduino UNO in the IDE? For example, if you want to use a stepper.

Best regards

Hey @rob86,

MachineControl_DigitalOutputs.write(0, HIGH);

The statement what you posted is what I used and am still using. I created this thread/question as I wanted to know the name of the pins of the PMC so that I could use the AccelStepper library. However I was not able to use the library(or maybe I made a mistake somewhere) with the PMC.

With respect to your question, I dont think you can normally assign to a random number in your case "3". However, each pin has a specific name and for Dig. Out 0 in the PMC, it is PI_6. You could find that information in the documentation.

So how do you address the pins of an Arduino UNO in the IDE? For example, if you want to use a stepper.

I am quite not sure whether I get your question. Neverthless, You can access the digital pins of Uno by using pinMode() and digitalWrite() function along with the number of the pin.

Best Regards,
h_se

Hi @h_se ,

I got the solution today from someone who also had the problem in this forum. You can find it here:

Nevertheless, thank you for your feedback.

Best regards

1 Like