Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
22 Jul 2025 00:02 #332150 by cakeslob
{
	"Thread": "Servo",
	"Type": "Digital Pin",
		"Comment":			"Index",
		"Pin":				"1.28",
		"Mode":				"Input",
		"Invert":			"True",
		"Data Bit":			6
	},
	{
	"Thread": "Servo",
	"Type": "QEI",
		"Comment":			"spindle-encoder",
		"Modifier":			"Pull Up",
		"PV[i]":			0,
		"Data Bit":			2,
		"Enable Index":		"True"
	},
well, maybe you dont need to use the preassigned index, you will find out i guess
# Spindle QEI encoder

	setp encoder.0.position-scale 800.000000
	net encoder-count     <= remora.PV.0     => encoder.0.raw_count
	net encoder-phaseZ    <= remora.input.6  => encoder.0.phase-Z
#	setp encoder.0.index-enable true

i dont think you are connecting your spindle pins correctly thought. its waiting for the index enable probably
compare to this one
github.com/cakeslob/RRW_LAB/blob/inc/Lin.../remora-xyz.hal#L128
The following user(s) said Thank You: Ac1dburn

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

More
23 Jul 2025 20:15 - 23 Jul 2025 20:21 #332240 by Ac1dburn

{
"Thread": "Servo",
"Type": "Digital Pin",
"Comment": "Index",
"Pin": "1.28",
"Mode": "Input",
"Invert": "True",
"Data Bit": 6
},
{
"Thread": "Servo",
"Type": "QEI",
"Comment": "spindle-encoder",
"Modifier": "Pull Up",
"PV[i]": 0,
"Data Bit": 2,
"Enable Index": "True"
},
well, maybe you dont need to use the preassigned index, you will find out i guess

[code]# Spindle QEI encoder

setp encoder.0.position-scale 800.000000
net encoder-count <= remora.PV.0 => encoder.0.raw_count
net encoder-phaseZ <= remora.input.6 => encoder.0.phase-Z
# setp encoder.0.index-enable true

i dont think you are connecting your spindle pins correctly thought. its waiting for the index enable probably
compare to this one
https://github.com/cakeslob/RRW_LAB/blob/inc/LinuxCNC/ConfigSamples/remora-RRW_LAB_latheng/remora-xyz.hal#L128
[/i][/code]
 


Awesome, yeah my hal was a mess. I ended up just grabbing that example and tweaking what I need to to have things make sense for my machine and I'm happy to say, everything is working now. Exactly how it should, and we have threads! Thanks again!


https://imgur.com/a/dP7VYhM
Last edit: 23 Jul 2025 20:21 by Ac1dburn. Reason: I don't know how to use forums

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

Time to create page: 0.056 seconds
Powered by Kunena Forum