5i25, 6i25, 7i92, firmware request.

More
26 Mar 2020 04:35 - 27 Dec 2021 01:27 #161539 by tommylight
PCW, i am really sorry to bother you, and this is absolutely not critical in any way shape or form, it is just for testing and experimenting, and maybe, just maybe to be used in a 4 axis wire EDM in the near future, like next month, if we survive this cr@p with viruses.
Request:
PWM with dir on pins 2 to 9 and encoders on pins 10 to 17, pin 1 as IO as it would be used for enable. On both headers. For the cards listed in the title.
Thank you very much for your continued support.
Regards,
Tom.

EDIT:
Attached two versions of firmware:
>lotsofenc.zip is for Mesa 7i92 with the "normal" 7i92_5abob pinout but each of the encoder inputs are A only, meaning it can count 6 encoders, used for plasma cutters with THCAD leaving two pins free on each header.
>7i98_sv8d.zip Is for Mesa 7i98, see below
>sv8d.zip is for Mesa 5i25/6i25 and 7i92, having 4 PWM/DIR and 4 encoder A/B inputs on each header, pin 1 used for enable. Example for this is below with configs included.
Attachments:
Last edit: 27 Dec 2021 01:27 by tommylight. Reason: More info

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

More
26 Mar 2020 15:36 #161576 by PCW

File Attachment:

File Name: sv8d.zip
File Size:141 KB
Attachments:
The following user(s) said Thank You: tommylight

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

More
26 Mar 2020 15:44 #161577 by tommylight
That was quick!
Thank you very much.

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

More
11 Apr 2020 21:34 - 11 Apr 2020 21:35 #163663 by tommylight
After some testing today (with Mesa 6i25) and yesterday (with parallel port), i can confirm that those litle cheap BTS7960 drives are quite usable and plenty powerful.
There is however a minor issue of me ordering the wrong firmware for them, they require UP/DOWN PWM, not the PWM/DIR type, i did change that in hal and they do work very nicely in one direction while in the oposite direction the motor is noisy and vibrates a lot while turning, and that is confirmed by the ferror plot on the scope. Since i did not get all my stuff back in the shop i i had no way of checking if the signals on both outputs are the same, so here is a question, might that be due to the dir pin not being same as the pwm pin in reaction time, i.e. in firmware is there a difference ?
Sorry to bother, my bad.
I will do some more testing in the mean time.
Thank you.
Forgot the video link where it can be heard while the motor is turning.
Last edit: 11 Apr 2020 21:35 by tommylight. Reason: added link

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

More
11 Apr 2020 21:56 #163666 by tommylight
Got the scope out, dir pin is still a dir pin, so that will not do, unfortunately, for this type of drives.
I have others that use pwm and dir, so no big deal.
Again thank you very much for your support.

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

More
11 Apr 2020 22:23 - 11 Apr 2020 22:44 #163669 by PCW
Hmm.. up/down PWM is just a mode:

setp hm2_xxxx.0.pwmgen.00.output-type 2

is it possible you have a:

setp hm2_xxxx.0.pwmgen.00.output-type 1

somewhere else in the hal file?
Last edit: 11 Apr 2020 22:44 by PCW.
The following user(s) said Thank You: tommylight

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

More
11 Apr 2020 22:50 #163670 by tommylight
Hold on just a sec, i have that set in hal as mode 2, but found some other error in the hal file, namely the same pwmgen being set to mode 2 and then to mode 1 lower in the hal.
I found it making sure i did set it.....
Sorry for all the trouble, back in a jiffy with more results and a new video.
Thank you.

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

More
11 Apr 2020 22:54 #163671 by tommylight
PCW, thank you.
That was it, it was set to 2 and then 1 later on in hal.
Sorry for the mess.
It work perfectly.

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

More
13 Dec 2020 00:18 - 13 Dec 2020 00:19 #191796 by tommylight
On request from youtube user, attached is the config for this setup, both for parallel and Mesa 5i25/6i25. For Mesa 7i92 use the text editor and use the "search and replace" function to substitute the card name.
Attachments:
Last edit: 13 Dec 2020 00:19 by tommylight. Reason: attacment forgoten.

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

More
13 Dec 2020 00:23 #191798 by tommylight
For some reason forgot to add the video of it working properly.

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

Moderators: PCWjmelson
Time to create page: 0.087 seconds
Powered by Kunena Forum