Mesa 7i96 with SPINX1 to control spindle speed

More
18 Feb 2022 15:49 #235240 by kbec
I am nearing the finish line with my machine. My last step is to control my spindle speed. To accomplish this, I got a SPINX1 board from Mesa.

I am thinking I need to use some of the output pins on the 7i96 to feed into the SPINX1, but I don't really understand what to set them to.

The SPINX1 documentation says:
INPUT CONNECTOR
6 pin 3.5 MM terminal block TB1 is used to the SPINX1s TTL level input connections.

PIN FUNCTION LEVEL
1 GND
2 GND
3 PWM ACTIVE HIGH
4 ENABLE ACTIVE LOW
5 DIR HIGH = CW 6 +5V

OUTPUT CONNECTOR
10 pin 3.5 MM terminal block TB1 is used to the SPINX1s isolated output connections.
TB1 is normally split to a 3 pin connector for the anlaog out and a 6 pin connector for the isolated digital outputs.
PIN FUNCTION DESCRIPTION
1 SP- SPINDLE ANALOG OUT LOW
2 SPV SPINDLE ANALOG OUT
3 SP+ SPINDLE ANALOG OUT HIGH
4 NC NOT USED
5 ENA- SPINDLE ENABLE -
6 ENA+ SPINDLE ENABLE +
7 CW- SPINDLE CW
8 CW+ SPINDLE CW+
9 CCW- SPINDLE CCW
10 CCW+ SPINDLE CCW+

I have a Sherline Speed control which I think is a rebranded KB Electronics one.
A potentiometer controls the speed. From what I understand, the SPINX1 sends signals to replace the potentiometer. I am guessing this is the analog outputs from the SPINX1, but I am not really sure how to wire it. On the Sherline documentation, they have a connector for P1, P2 and P3.

Thanks for your help

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

More
18 Feb 2022 17:07 #235248 by BigJohnT
You will need to flash the 7i96 with 7i96d_1pwm.bit firmware. My 7i96 Configuration Tool can do that for you as well as create a set of configuration files. The PWM will be on the last step and direction pins.

JT
The following user(s) said Thank You: tommylight

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

More
18 Feb 2022 22:10 #235287 by OT-CNC
I may be wrong, but I don't think you can hook up the spinx to the KB electronics speed controller. If I recall, the pot on that speed controller  is at  mains voltage potential. Check with PCW, I don't think his board handles that voltage (his is 5-15v).

More reading for a similar device that is designed for it:
www.homanndesigns.com/pdfs/DigiSpeed_V1a.pdf

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

More
18 Feb 2022 22:24 - 18 Feb 2022 22:24 #235292 by PCW
Yes, you can use the SPINX1 for analog output to KBIC type devices
as long as their potentiometer supply has enough current.
(about 5 mA needed by the isolated side of the SPINX1)

The analog output is completely isolated from the PWM side so can drive
analog circuitry that floats at mains voltage. but you of course need to be
very careful with wiring and the high voltage hazards of the KBIC side
of the SPINX1
Last edit: 18 Feb 2022 22:24 by PCW.
The following user(s) said Thank You: OT-CNC, kbec

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

More
18 Feb 2022 22:48 #235295 by kbec
Somewhere I think I have an issue, wondering if you've seen it before,

I get this when I try to load my ini file,

7i96
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Traceback (most recent call last):
File "/home/kirk/.local/lib/python3.7/site-packages/m7i96/m7i96.py", line 76, in on_actionOpen_triggered
self.iniLoad()
File "/home/kirk/.local/lib/python3.7/site-packages/m7i96/m7i96.py", line 426, in iniLoad
getattr(self, item[2]).setChecked(eval(self.config[item[0]][item[1]]))
File "<string>", line 1, in <module>
NameError: name 'NO' is not defined
Aborted

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

More
19 Feb 2022 00:10 #235297 by BigJohnT
That is a very old version of the 7i96 Configuration Tool... uninstall that one and get the latest from gnipsel.com/mesa/7i96/install.html

JT

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

More
19 Feb 2022 01:04 #235300 by kbec
Still getting an error, I thought it may be python, so I linked python to python 3.7. I installed the latest package in the link you sent as well.

7i96
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Traceback (most recent call last):
  File "/home/kirk/.local/lib/python3.7/site-packages/m7i96/m7i96.py", line 76, in on_actionOpen_triggered
    self.iniLoad()
  File "/home/kirk/.local/lib/python3.7/site-packages/m7i96/m7i96.py", line 426, in iniLoad
    getattr(self, item[2]).setChecked(eval(self.config[item[0]][item[1]]))
  File "<string>", line 1, in <module>
NameError: name 'NO' is not defined
Aborted
kirk@LinuxCNC1:~$ python -V
Python 3.7.3
 
Attachments:

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

More
19 Feb 2022 05:46 #235311 by kbec
I am not sure what the problem is, I sort of ended up reinstalling everything.

If I run without privileges, I get the 1.5 version, running with sudo I get 1.3.2 which is closer to what you are expecting.

It still crashes when I try loading in the ini file.

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

More
19 Feb 2022 11:01 #235322 by BigJohnT
m7i76.py is a very old outdated version of my program. Delete it and install the latest version.

JT

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

More
19 Feb 2022 20:26 - 19 Feb 2022 20:28 #235346 by kbec
   I reinstalled my system, then the 7i96 package per the instructions, even though I installed 1.3.4, it reads 1.32

The error I am getting:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/lib7i96/loadini.py", line 45, in openini
loadini(parent)
File "/usr/lib/python3/dist-packages/lib7i96/loadini.py", line 148, in loadini
getattr(parent, item[2]).setChecked(eval(config[item[0]][item[1]]))
File "<string>", line 1, in <module>
NameError: name 'NO' is not defined

I am thinking the "NO" is coming from the "No Version" in the popup window and is causing the error. that is my configuration created in pncconf.

 
Attachments:
Last edit: 19 Feb 2022 20:28 by kbec.

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

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