Remora - ethernet NVEM / EC300 / EC500 cnc board

More
2 years 11 months ago - 2 years 11 months ago #286769 by rbobey1989
Hello everyone:
I've been disconnected from this topic for a few days but I haven't had time!!! remodeling at home!!! hehe housework.
Just yesterday I returned to linuxcnc, my ec500 hardware and the nema 34 closed loop stepper motors and DM860H drivers to perform a small closed loop test. I must say that I would have preferred motors with lower resolution encoders but all the closed loop motors from ebay and aliexpress have 1000 pulses or 4000 counts per revolution, another difficulty has been the voltage level of the encoders is 5V so I have used the free pins of the MPG port +/-WHA +/-WHB which are 5V tolerant (they are differential, something really good because all the closed loop motor encoders that I saw also have differential outputs), I don't know what quality level the differential driver connected to the MPG port will have, I haven't even looked at it, on the other hand, there are the basic configurations for the *.ini and *.hal files that Scott provides us, first I have done certain tests in open circuit and the motors truly reach incredible speeds, this is where I have found problems because the speeds in the sample *.ini file are of the order from 125 <-> 166 mm/s = 7500 <-> 9000 mm/min; which from my ignorance, depending a lot on the construction of the machines, it is quite difficult to reach these speed values, now the problems have been in terms of the relationship between speed and loss of steps since, for example, above 1500mm/min I lose counts in the encoder, my calculations would be the following, you can correct me if I'm wrong: for a spindle with a 4mm pitch it would be 1500mm/min / 4mm = 375 rpm, 375rpm/60 = 6.25rps and 6.25rps*4000 = 25000 counts/sec, which I already say from my ignorance seems quite little to me but I lose counts above this speed, otherwise it has been gratifying to be able to perform a closed loop control using Linuxcnc I was able to adjust the pid without problems, I have seen a pretty good video on the Youtuber size83 very well explained by the way and based on Remora's notes for a closed loop configuration.
Hello Scott, I have made some changes to the qdc module since I had not used the MPG port pins and I had incorrectly configured dir signal continues to occur, I tested your changes in the bugfix branch and I have not seen any improvement in this regard, then I will upload the *.ini and *.hal files since now I am from the phone.
I don't understand why the editor doesn't allow me to add a video, I did it a while ago and it worked, it doesn't matter, I'll leave you a link to the test video
 
Last edit: 2 years 11 months ago by rbobey1989.

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

More
2 years 11 months ago #286771 by 0jw
Hi everyone, I'm a bit lost on installing the remora component for the ec500. When I type mkdir ~/linuxcnc it doesn't work. So I used the current directly.
Them cd ~/linuxcnc. Then git clone. But no remora-nv.c after that. So I cloned the remora-rt1052-cpp and used the remora-eth-3.0.c and remora-eth-3.0.h in the component folder.
When I open nano /ext/dhcpcd.conf to edit the ip address I dont see any text or way of navigating. I'm really not sure if that's normal or not.
Any help us really appreciate!

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

More
2 years 11 months ago - 2 years 11 months ago #286773 by rbobey1989
Hello 0jw, I summarize the steps so you can get started:
1- open a terminal
2- cd ~
3- git clone github.com/scottalford75/Remora-RT1052-cpp.git
4- cd Remora-RT1052-cpp/LinuxCNC/components
/Remora-eth
5- sudo halcompile --install remora-eth-3.0.c
At this point you would already have the remora component installed.

Now, to this you would have to add that you have to update the firmware of the EC500 pyocd with a stlink v2 probe converted into CMSIS-DAP, it works wonderfully
You don't have to change any IP address, Scott has several videos on his channel where he explains how to do all this.





I hope this solves it for you, greetings
Last edit: 2 years 11 months ago by rbobey1989.
The following user(s) said Thank You: 0jw

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

More
2 years 11 months ago #286778 by 0jw
Thank you! I think I managed to flash the board with remora-rt1052-3.1.0.bin using a rp2040 on windows, but I'm not really sure yet.

I'm a bit confused as the docs say on the ethernet setup page that I need to set my ip to static. So I don't need to do this?

I managed to add the config samples and can see them under my configuration when starting linuxcnc. But it just errors out. I'm hoping this is just because of the ini and hal files.

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

More
2 years 11 months ago #286782 by 0jw
This is the error I get when trying to start linuxcnc.

Debug file information:
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
remora-eth: dlopen: /usr/lib/linuxcnc/modules/remora-eth.so: cannot open shared object file: No such file or directory
./remora-eth.hal:7: waitpid failed /usr/bin/rtapi_app remora-eth
./remora-eth.hal:7: /usr/bin/rtapi_app exited without becoming ready
./remora-eth.hal:7: insmod for remora-eth failed, returned -1
74582
Stopping realtime threads
Unloading hal components
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime

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

More
2 years 11 months ago - 2 years 11 months ago #286783 by rbobey1989
Hello 0jw, yes you need to configure the static IP address, I previously understood that you wanted to change it in the remora-eth component, I don't understand you much when you talk about Windows..., if you want to ping the card from Windows, configure your static IP in 10.10.10.X different from 10.10.10.10 because this would be the EC500 board, from the videos that I pointed out to you before Scott shows how to do it on a Raspberry under RaspOS, linuxcnc has a learning curve so I recommend that you look at the documentation Also the remora documentation, Scott's videos are also very instructive, after all this start from the sample configuration files that are in the LinuxCNC folder in the Remora-RT1052-cpp repository, greetings
Last edit: 2 years 11 months ago by rbobey1989.

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

Time to create page: 0.169 seconds
Powered by Kunena Forum