how configure EMC2 in raspberry pi (GPIO )

More
25 Jun 2014 23:34 #48243 by Anis
I installed EMC2 in my RPi to control stepper motor.
when configure EMC axis, I don't found GPIO number of RPi but rather the pin's number of parport !!.

in fact in stepper motor drive has 6 input (PUL+ ;DIR+ ; PUL-; DIR-; EN+ ;EN-)

so how to configure EMC or linuxcnc in raspberry(IMG2) to connect it to this stepper motor drive (IMG1)


Attachments:

Please Log in or Create an account to join the conversation.

More
26 Jun 2014 07:00 #48248 by andypugh

n fact in stepper motor drive has 6 input (PUL+ ;DIR+ ; PUL-; DIR-; EN+ ;EN-)


The RPi GPIO is 3.3V, and not 5V safe. 3.3V might not be enough to operate the stepper drive, but I would try:
1) Connect all the + pins to 3.3V on the IO connector
2) Connect the - pins of pulse and dir to the relevant GPIO pins.
3) connect to -EN pin to 0V.

Please Log in or Create an account to join the conversation.

More
01 May 2020 22:39 #166383 by washingtonnuness
Do you find a solution ?

Please Log in or Create an account to join the conversation.

More
01 May 2020 23:00 #166386 by andypugh
You found a 6 year old thread, when even the controller name as different

Yes LinuxCNC works great on the Pi4. It can work on the Pi3 and Pi2 but _only_ using the SPI interface.

Pi4 can use Ethernet and Mesa cards.

The not-yet-released-but available has drivers for the Pi GPIO too.

Please Log in or Create an account to join the conversation.

More
02 May 2020 08:34 #166393 by bbsr_5a
just use a 8bit arduino logic level shifter to convert bidirectional ports

Please Log in or Create an account to join the conversation.

Time to create page: 0.126 seconds
Powered by Kunena Forum