Remora - ethernet NVEM / EC300 / EC500 cnc board

  • scotta
  • scotta's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
25 Nov 2024 19:59 #315251 by scotta

Good morning guys, I bought my nvem v5 board to test with linuxcnc, I'm still waiting, I saw in the files that there is an encoder component to compile in linuxcnc to use in remora, this component was created to only accept the mpg encoder or is there a possibility of using the mpg input to connect an encoder to a spindle or the spindle shaft of a lathe, I don't know if it is possible to use just the mpg encoder input or there is a way to use other inputs if configured, could you give me more details of this part of the encoder on the nvem board? thank you in advance thank you very much

Hi, for the MPG the encoder counting is done in LinuxCNC using the normal inputs as the speed is low. The PRUencoder module is used for the hardware based encoder modules. The NVEM is limited on Inputs, but please check the EC500 configuration below with the NVEM configuration to identify which inputs are available for the QDC encoder module.

Remora-RT1052-cpp/LinuxCNC/ec500-rt1052-DMA-ENC.txt at main · scottalford75/Remora-RT1052-cpp
Remora-RT1052-cpp/LinuxCNC/nvem-rt1052.txt at main · scottalford75/Remora-RT1052-cpp
 

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

  • scotta
  • scotta's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
25 Nov 2024 20:10 #315254 by scotta

Hello all

I now have installed pyocd, but no luck with connecting. I guess it should show a target id here ?

xx@xxxxxx:~# pyocd list
# Probe/Board Unique ID Target
0 X893 ARM CMSIS-DAP 0001A0000000 n/a



Flashing fails then too:

xx@xxxxxx:~# pyocd flash /home/bf/Downloads/remora-rt1052-3.1.3.bin –-target mimxrt1050_quadspi
0000497 W Generic 'cortex_m' target type is selected by default; is this intentional? You will be able to debug most devices, but not program flash. To set the target type use the '--target' argument or 'target_override' option. Use 'pyocd list --targets' to see available targets types. [board]
0000674 I Loading /home/bf/Downloads/remora-rt1052-3.1.3.bin [load_cmd]
0000690 C No boot memory is defined for this device [__main__]

 

Anything wrong with the wiring ? I got 24v supplied to the remora board

-
schnellmued

 

The pyocd warning is hinting that the command line is not correct and it's defaulting the generic target type that cannot flash memory.

pyOCD/docs/target_support.md at main · pyocd/pyOCD

Is there a typo in the command line arguments?

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

More
25 Nov 2024 21:45 #315259 by Thayloreing
Replied by Thayloreing on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Sorry, I didn't understand the translation well, I don't speak English, in this case the remora doesn't support high pulse frequencies due to the limited hardware, does the ec 500 and ec300 have an input for high pulse frequency encoders? Or does it only allow you to make an extension module for the encoder? If so, what would this expansion module be like? Is there anything ready? and how would you add it? Sorry for the number of questions, I'm very interested in this project

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

More
26 Nov 2024 18:45 - 26 Nov 2024 18:48 #315317 by schnellmued
Replied by schnellmued on topic Remora - ethernet NVEM / EC300 / EC500 cnc board


Flashing fails then too:

xx@xxxxxx:~# pyocd flash /home/bf/Downloads/remora-rt1052-3.1.3.bin –-target mimxrt1050_quadspi
0000497 W Generic 'cortex_m' target type is selected by default; is this intentional? You will be able to debug most devices, but not program flash. To set the target type use the '--target' argument or 'target_override' option. Use 'pyocd list --targets' to see available targets types. [board]
0000674 I Loading /home/bf/Downloads/remora-rt1052-3.1.3.bin [load_cmd]
0000690 C No boot memory is defined for this device [__main__]


 
The pyocd warning is hinting that the command line is not correct and it's defaulting the generic target type that cannot flash memory.

pyOCD/docs/target_support.md at main · pyocd/pyOCD

Is there a typo in the command line arguments?





 


I used the "--target" option, like show in the help output, but i found the variable "target" in "board.py" was allsways "None". So i did the quick & very dirty fix to change default to my board:

# As a last resort, default the target to 'cortex_m'.
if target is None:
target = 'cortex_m'

to

# As a last resort, default the target to 'cortex_m'.
if target is None:
target = 'mimxrt1050_quadspi'

Finaly it flashed the board and i got it connected to linuxcnc :D

-
schnellmued

 
Last edit: 26 Nov 2024 18:48 by schnellmued. Reason: .
The following user(s) said Thank You: scotta

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

More
27 Nov 2024 14:56 #315377 by viaj2901
Hello, I have the same question. Where should I connect the lathe spindle encoder? And how to configure it for close loop control of the spindle? I see that rbobey1989 did a lot of test on the MPG connector, but I need to use this connector for the NVMPG. Would it be possible to point out which optoisolator ic needs to be replace by level shifter? Thanks for the input.

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

More
27 Nov 2024 19:29 - 27 Nov 2024 19:29 #315403 by Aciera
Last edit: 27 Nov 2024 19:29 by Aciera.

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

More
27 Nov 2024 20:40 #315413 by Murphy
I'm in the middle of doing the spindle encoder, waiting on parts, I'm having no luck with the ADUM1200 chips, you can only get the ADUM1201 already soldered on a breakout board. So you will need to to desolder the 1201 and solder on the ADUM 1200. I'm going to try a iso7740 next. If you look at past posts the pins which you can use as an encoder are listed. You will have to solder a jumper wire directly to one of the opticouplers that is used as an encoder input to bypass it. 

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

More
29 Nov 2024 04:52 #315511 by cakeslob

Sorry, I didn't understand the translation well, I don't speak English, in this case the remora doesn't support high pulse frequencies due to the limited hardware, does the ec 500 and ec300 have an input for high pulse frequency encoders? Or does it only allow you to make an extension module for the encoder? If so, what would this expansion module be like? Is there anything ready? and how would you add it? Sorry for the number of questions, I'm very interested in this project



It is supported, but refer to Murphys post, the limitation is in the board hardware.

My problem is now that if I jog with my keyboard and after i dont press anything sometimes the motors still do 1 or 2 steps. And i cant figure out why. Maybe someone has the same motion controller with linuxcnc or could help me?Thank you


It is related to the motor tuning setting in Remora/Linuxcnc

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

More
29 Nov 2024 12:22 #315536 by cncmiljc
Could you leave a copy of the nvmpg cpp on your github? I'm thinking about creating my own mpg but only with buttons and I would like to study the programming that was used in it to be the starting point.

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

More
29 Nov 2024 12:25 #315537 by cncmiljc
Let me be clear, I am referring to the .cpp that was extracted from the STM32F103RCT6.

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

Time to create page: 0.306 seconds
Powered by Kunena Forum