Rpi 400, 7c85 to 7185s setup? xylotex

More
01 Mar 2021 02:47 #200501 by 1RandomSquirrel
Hi ,

Raspberry Pi 400 mesa 7c81 and 7i85s to a xylotex xs-3525/8s-3

I have tried a bunch of things and seem to be stuck i cannot get the boards to talk to the stepper driver. I believe i have all the files included. The pins seem to be set hi 5v. I do not think i have watchdog going but maybe i missed something? I have tried so many things i have forgot what has been tried and what has not been. Any help pointing me to something that might help would be appreciated.

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

More
01 Mar 2021 03:06 #200502 by PCW
I would first set the timings longer:

Steplen =5000
StepSpace=5000
DirSetup=10000
DirHold=10000

How is the 7C81 wired to the driver? Only the STEPN+, DIRN+ and GNDN should be connected to the drive (7I85S STEPN-,DIRN- and +5VN should be unconnected)

Running LinuxCNC from a terminal window would give better information about the running status

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

More
03 Mar 2021 03:36 #200869 by 1RandomSquirrel
Tried that and had no luck. I believe I'm wiring right.

Off the top of my head I'm not by it right now it is tb2 pin 9 ground pin 11 step pin 13 dir.

I have not seen any real documentation that says what the exact pins are for the step and dir. Everything is labeled TX or RX in the software. Other than the encoder with their qa, and qb? R was it qda? Just off of memory.

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

More
03 Mar 2021 05:01 #200873 by 1RandomSquirrel
Thanks for the tip of running in terminal.
$ linuxcnc -d
is very helpful.

So i had a chance to do a little digging tonight and found this error. Not sure if it matters will do some digging tomorrow or if anyone else has some ideas.
+ halcmd -i /home/pi/linuxcnc/configs/linuxCNClathe/linuxCNClathe.ini -f ./linuxCNClathe.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
rmmod: ERROR: Module spi_bcm2835 is not currently loaded
hm2_rpspi: ERROR: Failed to execute '/sbin/rmmod spi_bcm2835'
hm2/hm2_7c81.0: Low Level init 0.15
hm2/hm2_7c81.0: Smart Serial Firmware Version 43
hm2/hm2_7c81.0: 57 I/O Pins used:
hm2/hm2_7c81.0:     IO Pin 000 (P1-01): IOPort
hm2/hm2_7c81.0:     IO Pin 001 (P1-02): IOPort
hm2/hm2_7c81.0:     IO Pin 002 (P1-03): StepGen #3, pin Step (Output)
hm2/hm2_7c81.0:     IO Pin 003 (P1-04): StepGen #3, pin Direction (Output)
hm2/hm2_7c81.0:     IO Pin 004 (P1-05): StepGen #2, pin Step (Output)
hm2/hm2_7c81.0:     IO Pin 005 (P1-06): StepGen #2, pin Direction (Output)
hm2/hm2_7c81.0:     IO Pin 006 (P1-07): StepGen #1, pin Step (Output)
hm2/hm2_7c81.0:     IO Pin 007 (P1-08): StepGen #1, pin Direction (Output)
hm2/hm2_7c81.0:     IO Pin 008 (P1-09): StepGen #0, pin Step (Output)
hm2/hm2_7c81.0:     IO Pin 009 (P1-11): StepGen #0, pin Direction (Output)
hm2/hm2_7c81.0:     IO Pin 010 (P1-13): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_7c81.0:     IO Pin 011 (P1-15): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_7c81.0:     IO Pin 012 (P1-17): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_7c81.0:     IO Pin 013 (P1-19): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_7c81.0:     IO Pin 014 (P1-21): Muxed Encoder #1, pin Muxed A (Input)
hm2/hm2_7c81.0:     IO Pin 015 (P1-23): Muxed Encoder #1, pin Muxed B (Input)
hm2/hm2_7c81.0:     IO Pin 016 (P1-25): Muxed Encoder #1, pin Muxed Index (Input)
hm2/hm2_7c81.0:     IO Pin 017 (J5-TX0): IOPort
hm2/hm2_7c81.0:     IO Pin 018 (J6-TX1): IOPort
hm2/hm2_7c81.0:     IO Pin 019 (P2-01): IOPort
hm2/hm2_7c81.0:     IO Pin 020 (P2-02): IOPort
hm2/hm2_7c81.0:     IO Pin 021 (P2-03): IOPort
hm2/hm2_7c81.0:     IO Pin 022 (P2-04): IOPort
hm2/hm2_7c81.0:     IO Pin 023 (P2-05): StepGen #6, pin Step (Output)
hm2/hm2_7c81.0:     IO Pin 024 (P2-06): StepGen #6, pin Direction (Output)
hm2/hm2_7c81.0:     IO Pin 025 (P2-07): StepGen #5, pin Step (Output)
hm2/hm2_7c81.0:     IO Pin 026 (P2-08): StepGen #5, pin Direction (Output)
hm2/hm2_7c81.0:     IO Pin 027 (P2-09): StepGen #4, pin Step (Output)
hm2/hm2_7c81.0:     IO Pin 028 (P2-11): StepGen #4, pin Direction (Output)
hm2/hm2_7c81.0:     IO Pin 029 (P2-13): Muxed Encoder Select #4, pin Mux Select 0 (Output)
hm2/hm2_7c81.0:     IO Pin 030 (P2-15): Muxed Encoder #2, pin Muxed A (Input)
hm2/hm2_7c81.0:     IO Pin 031 (P2-17): Muxed Encoder #2, pin Muxed B (Input)
hm2/hm2_7c81.0:     IO Pin 032 (P2-19): Muxed Encoder #2, pin Muxed Index (Input)
hm2/hm2_7c81.0:     IO Pin 033 (P2-21): Muxed Encoder #3, pin Muxed A (Input)
hm2/hm2_7c81.0:     IO Pin 034 (P2-23): Muxed Encoder #3, pin Muxed B (Input)
hm2/hm2_7c81.0:     IO Pin 035 (P2-25): Muxed Encoder #3, pin Muxed Index (Input)
hm2/hm2_7c81.0:     IO Pin 036 (J5-TXEN0): IOPort
hm2/hm2_7c81.0:     IO Pin 037 (J6-TXEN1): IOPort
hm2/hm2_7c81.0:     IO Pin 038 (P7-01): IOPort
hm2/hm2_7c81.0:     IO Pin 039 (P7-02): IOPort
hm2/hm2_7c81.0:     IO Pin 040 (P7-03): IOPort
hm2/hm2_7c81.0:     IO Pin 041 (P7-04): IOPort
hm2/hm2_7c81.0:     IO Pin 042 (P7-05): IOPort
hm2/hm2_7c81.0:     IO Pin 043 (P7-06): IOPort
hm2/hm2_7c81.0:     IO Pin 044 (P7-07): IOPort
hm2/hm2_7c81.0:     IO Pin 045 (P7-08): IOPort
hm2/hm2_7c81.0:     IO Pin 046 (P7-09): IOPort
hm2/hm2_7c81.0:     IO Pin 047 (P7-11): IOPort
hm2/hm2_7c81.0:     IO Pin 048 (P7-13): IOPort
hm2/hm2_7c81.0:     IO Pin 049 (P7-15): IOPort
hm2/hm2_7c81.0:     IO Pin 050 (P7-17): IOPort
hm2/hm2_7c81.0:     IO Pin 051 (P7-19): IOPort
hm2/hm2_7c81.0:     IO Pin 052 (P7-21): IOPort
hm2/hm2_7c81.0:     IO Pin 053 (P7-23): IOPort
hm2/hm2_7c81.0:     IO Pin 054 (P7-25): IOPort
hm2/hm2_7c81.0:     IO Pin 055 (P5-RX0): IOPort
hm2/hm2_7c81.0:     IO Pin 056 (P6-RX1): IOPort
hm2/hm2_7c81.0: registered

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

More
03 Mar 2021 23:49 #200959 by andypugh
That looks like a no-error error "I can't remove the module because it isn't there"

But, the pin listing in the output really does not match what you said.

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

More
03 Mar 2021 23:52 #200960 by PCW
I have added the equivalent DB25 pins to the drivers pin list (to master)
if that helps

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

More
04 Mar 2021 03:29 #200989 by 1RandomSquirrel
Andy you where right turned on spi in raspberry config and it went away.

Pcw I'm a bit green but i will check out the master and see if I can get it to work. Or might even set up another SD card and rebuild from scratch.

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

More
04 Mar 2021 09:03 #201004 by andypugh
I still think that is looks like the pin assignment is not what you have wired.

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

More
04 Mar 2021 18:28 #201033 by 1RandomSquirrel
Here is what I tried to double check wiring since I don't have an oscilloscope. But I have a frequency generator. So I tested the xylotex board by not using the direction pin and sending a signal to the step and the motor turned. After knowing that it worked that way.

I went pin by to see if I had a signal on any of the pins that would make the motor turn. No pins turned the motor.

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

More
04 Mar 2021 21:18 #201047 by PCW
For the Xylotex on the X axis (stepgen0)

you would use

7I85S TB2 pin 9 as Xylotex Ground
7I85S TB2 pin 12 as Xylotex step
7I85S TB2 pin 14 as Xylotex Dir
The following user(s) said Thank You: 1RandomSquirrel

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

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