5v drive enable on mesa board

More
17 Jan 2018 22:31 #104645 by zmcdona1
Hey everyone again, my machine is working great but i have a ghetto switch to enable the driver.
i saw this video

and tried to do the same thing which is plugging the drive enable wire which is just 5v into DIR3+ A-AXIS
but i don’t get any power out of that pin.
has anyone done something similar?
thanks

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

More
17 Jan 2018 23:28 - 17 Jan 2018 23:29 #104650 by PCW
Replied by PCW on topic 5v drive enable on mesa board
You can use the 4th axis step/dir signal as 5V enable signals if you like, you need to:

1. Enable only 3 stepgens (this frees the GPIO pins that drive the step3/dir3 pins (plus the stepgen 4 and 5 pins))
2. Find the GPIO pins that match the stepgen3 step/dir signals
sudo mesaflash --device 5i25 --readhmid
can help here
3. Set the GPIO pins into output mode ( set the is_output attribute for the stepgen3 GPIO pins )
man hostmot2 can help here
4. Chose the output pin (from the stepgen + or - pins) that disables the drive at startup
Last edit: 17 Jan 2018 23:29 by PCW.
The following user(s) said Thank You: zmcdona1

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

More
18 Jan 2018 16:32 #104670 by zmcdona1
thank you, ill give that a shot.
where do you get all your info is there documentation for this somewhere?
or maybe ill just be lazy and put a relay on one of the outputs.

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

More
18 Jan 2018 16:54 #104672 by PCW
Replied by PCW on topic 5v drive enable on mesa board
Did you run Mesaflash to see what GPIO pins connect to the stepgen 3 pins on the 7I76?

Did you look at the hostmot2 manual in the GPIO section?

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

More
18 Jan 2018 17:09 #104676 by zmcdona1
im at work right now, ill give it a go when i get free.

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

More
18 Jan 2018 18:47 #104683 by zmcdona1
Ran mesaflash and i think its on pins 4 and 17.

i also took a look at the manual.

num_stepgens = 3
and
hm2_5i25.0.gpio.017.is_output

the only thing i didn’t see was how to enable gpio.
Thanks
Attachments:

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

More
18 Jan 2018 19:07 #104684 by PCW
Replied by PCW on topic 5v drive enable on mesa board
You use the I/O number not the connector pin number so the GPIO pins associated with stepgen 3 are GPIO6 and GPIO7
once you disable stepgens above 2 you need to set GPIO6 (and or) GPIO7 to output mode (they are inputs if not set into output mode) and then you manipulate the output state by linking the GPIO output pin to the proper signal in your hal file

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

More
18 Jan 2018 20:17 #104694 by zmcdona1
im trying to figure out how to edit my hal, i have never done this before.
having a rough time setting the num_stepgens=3
any helping tips?

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

More
18 Jan 2018 20:27 #104695 by PCW
Replied by PCW on topic 5v drive enable on mesa board
can you post your current hal file here? (as an attachment)

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

More
18 Jan 2018 20:32 #104696 by zmcdona1

File Attachment:

File Name: my_LinuxCN...ne13.hal
File Size:10 KB
Attachments:

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

Time to create page: 0.806 seconds
Powered by Kunena Forum