Remora - ethernet NVEM / EC300 / EC500 cnc board

More
13 Aug 2024 08:49 - 13 Aug 2024 09:12 #307617 by Lpkkk
What exactly do you mean where you don't know how mine works?

On the picture you reposted there is no indication which remora.input is which. That's why I've used the one I've attached. Over there it's clear that for example estop input is remora.input.04, probe is input.05 etc. So the INP3 (on your picture) is really input.06.
It is correct as I've check it.
Last edit: 13 Aug 2024 09:12 by Lpkkk.

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

More
13 Aug 2024 14:21 - 13 Aug 2024 14:24 #307636 by cakeslob
yes, you are right. I need to find the other excel sheet that raf made that had everything on it.
The problem is that it is the wrong board, using those pins in the config will cause problems for other users who use them. If all you need is a reference to which remora pin goes where, you can use the config file you loaded to the board. The part you need may be correct, but the pin assignment is not for the same board. If you use the STM32 pin names on your rt1052 board it will cause issues.

github.com/scottalford75/Remora-RT1052-c...xCNC/nvem-rt1052.txt

Ill even do you one better, here is a trimmed down list of the inputs/outputs that you can use that wont cause problems for other users.

Warning: Spoiler!
Attachments:
Last edit: 13 Aug 2024 14:24 by cakeslob.
The following user(s) said Thank You: AlessandroEmm

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

More
13 Aug 2024 18:58 #307649 by AlessandroEmm
Any idea about the pin out for spindle 0-10v output? PWM I noticed in your config/other pinouts but voltage based seems to be missing.

Thanks again
Alessandro

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

More
13 Aug 2024 19:15 #307652 by cakeslob
I dont have the hardware for the rt1052, but most units arent directly controlling an analog voltage, but rather sending a PWM to an opamp which makes 0-10v. When this is the case, the PWM signal is out of 100, so PWM 100 = 10v = max spindle speed. From the configs Ive seen for the RT1052 I will assume its the same, but I cannot find an example that says otherwise.
The following user(s) said Thank You: AlessandroEmm

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

More
13 Aug 2024 21:43 #307666 by AlessandroEmm
Can confirm this portion actually controlled voltage up to 10v on NVEMs (MX1052) output

net spindle-cw remora.output.09
loadrt pwmgen output_type=1
loadrt scale count=1
loadrt lowpass count=1
loadrt abs count=1
addf scale.0 servo-thread
addf lowpass.0 servo-thread
addf abs.0 servo-thread
setp scale.0.gain 0.00416666667
net spindle-cmd-rpm spindle.0.speed-out => scale.0.in
net spindle-cmd-rpm-abs scale.0.out => abs.0.in
net spindle-speed-DAC abs.0.out => remora.SP.0
net spindle-cw <= spindle.0.forward


 

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

More
20 Aug 2024 19:32 - 20 Aug 2024 19:59 #308238 by aDm1N
Hello

I have an NVEM v5. The stlink is to be delivered tomorrow. I think after everything I've read here, I'll be able to flash the firmware. I am currently building a small lathe into CNC. The spindle drive becomes an AC servo. I still have to see that I get it connected with step/dir, should be feasible. Then the machine gets another MPG, no problem either. But I still have an encoder only with a/b without index. Do I have any connections left for this? Does thread cutting work with it?

Encoder:
de.aliexpress.com/item/1005006363767037....gatewayAdapt=glo2deu

Servo:
de.aliexpress.com/item/1005006659782702....gatewayAdapt=glo2deu
 
Last edit: 20 Aug 2024 19:59 by aDm1N.

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

More
23 Aug 2024 00:01 - 23 Aug 2024 03:05 #308434 by cakeslob
// calculate the output value
vel_cmd = pgain * error + data->cmd_d[i] * ff1gain;


Hey Scott, sorry to bother you with this, but can you explain this a bit more? Im wondering how we can just do a math to figure it out. Ive been bruteforcing pid stuff for a few days but i cant get my overshoot down to less than 5 steps, but this question comes up on discord a bunch also.

using a 1mm distance for the example to make it easier(?)

ff1 * cmd_d + error * pgain = velcmd

ff1 = number in ini file
cmd_d = old pos - new data? this is the D ?
error = ?
pgain = ini number

edit, holy shit it my issue was a typo this whole time.

my issue is typo related, but the question still stands, is there a math way to figure it out?
Last edit: 23 Aug 2024 03:05 by cakeslob.

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

More
23 Aug 2024 22:27 #308501 by scotta
Hi Cakeslob,

The stepgen "PID" was adopted from the PID component. There is some auto tuning code in there but I've not looked closely at it.

github.com/LinuxCNC/linuxcnc/blob/master...hal/components/pid.c
The following user(s) said Thank You: cakeslob

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

More
26 Aug 2024 19:32 #308732 by aDm1N
I'm having problems flashing the controller. I have tried two different STlink v2, but I only get error messages. Does anyone have any idea what the error could be?
cnc@MiniDrehbank:~$ pyocd list
  #   Probe/Board    Unique ID                  Target  
--------------------------------------------------------
  0   STM32 STLink   260046001033353739303541   n/a     
cnc@MiniDrehbank:~$ pyocd list
  #   Probe/Board    Unique ID                  Target  
--------------------------------------------------------
  0   STM32 STLink   40001400020000415246524E   n/a     


cnc@MiniDrehbank:~/linuxcnc/Remora-RT1052-cpp/Firmware$ pyocd flash remora-rt1052-3.1.3.bin --target mimxrt1050_quadspi
0001513 C STLink error (9): Get IDCODE error [__main__]

 

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

More
26 Aug 2024 20:47 #308740 by scotta
I've also had no luck with an out of the box STLinkV2. But ColdTurkey has got it to work

pyocd.io/docs/debug_probes.html

"Recent STLink firmware versions will only allow access to STM32 targets. If you are using a target from a silicon vendor other than ST Micro, please use a different debug probe."

If you have a couple of probes you can always flash one with the following firmware.

github.com/scottalford75/Remora-RT1052/tree/main/CMSIS-DAP

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

Time to create page: 0.564 seconds
Powered by Kunena Forum