7I96 Encoder Spindle tuning

More
2 years 8 months ago #293861 by kbec
Replied by kbec on topic 7I96 Encoder Spindle tuning
I think the problem may be the board, I had to order some parts for it. It would explain what is happening I think. I'll update you when I fix the board and let you know. Thanks as always

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

More
2 years 8 months ago #294225 by kbec
Replied by kbec on topic 7I96 Encoder Spindle tuning
I think the encoder is working, my issue is with the way my SPINX1 is wired. I think the pot should go from 0-7V, mine is peaking at about 2.5. I think this is because I have the SPINX1 ENA tied to my OUT0+ which is 5V. The instructions on the SPINX1 say to power the board is 5v pin 1 and 6. 

How can I wire it so that I can get the digital pot to be from 0-7v? What does pin2 GND on the SPINX1 go to? 

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

More
2 years 8 months ago #294226 by PCW
Replied by PCW on topic 7I96 Encoder Spindle tuning
The analog output voltage is not related to the 5V supply
It is the voltage difference between SP- and SP+ times
the PWM duty cycle, so for example if you had +12V
on SP+ and 0V on SP- and a 50% duty cycle PWM,
you would get 6V (12V* 50%) out.

The SPINX1A ENA pin must be _low_ for the analog out
to work. So for example if you wanted SSR5 to enable
the analog out, you would connect SSR5A to SPINX1 /ENA
and SSR5B to 5V GND

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

More
2 years 8 months ago #294239 by kbec
Replied by kbec on topic 7I96 Encoder Spindle tuning
I kind of get what you are saying, but I am lost.

I am not sure how to connect the SPINX1 to my 7i96 card, and if I have my voltage wrong feeding it somewhere.

In my hal file, I have:
loadrt hm2_eth board_ip="192.168.1.121" config="num_encoders=1 num_pwmgens=1 num_stepgens=4 sserial_port_0=0xxxxxxx"
setp [HMOT](CARD0).pwmgen.pwm_frequency 20000
setp [HMOT](CARD0).pwmgen.pdm_frequency 6000000
setp [HMOT](CARD0).watchdog.timeout_ns 5000000

do the pdm and pwm both need to be set, or is one overriding the other one?

I am sorry, but I forgot a lot of my electronics knowledge a long while ago.

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

More
2 years 8 months ago #294243 by PCW
Replied by PCW on topic 7I96 Encoder Spindle tuning
First the connections must be correct:

7I96 TB2  pin 1 --> SPINX1A pin 1  (GND)
7I96 TB2 pin 3 --> SPINX1A pin 3  (PWM)
7I96 TB2 pin 5 --> SPINX1A pin 5  (DIR)
7I96 TB2 pin 6 --> SPINX1A pin 6 (5V)

7I96 TB3 pin 14  --> SPINX1A pin 4 (/ENA) SSR0+
7I96 TB3 pin 13 --> 5V GND (SSR0-)
 

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

More
2 years 8 months ago #294258 by kbec
Replied by kbec on topic 7I96 Encoder Spindle tuning
I did wire it like you described. At 100% I’m getting about 2.5v and 80rpm, at 50% I have 0v and about 10 rpms

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

Moderators: PCW, jmelson
Time to create page: 0.510 seconds
Powered by Kunena Forum