Hello,
I'm trying to connect a Novusun NVEM with an STM32F207 CPU to LinuxCNC on a small PC (not a Raspberry Pi) for a mini lathe – just the X and Z axes, no limit switches, etc. Very simple.
I'm using just two TB6600 stepper drivers with 1.8 degree and 1.8A stepper motors, connected according to the many wiring diagrams I've found online.
So, Pulse+ and Dir+ are connected together to COM+ on the NVEM, and then Pulse- and Dir- are connected to the corresponding NVEM pins.
Everything is powered with 24V, including the stepper drivers and the NVEM.
All the LEDs are lit, so everything is receiving power.
What I've done so far:
1. Installed LinuxCNC on the PC
2. Flashed the Remora firmware for the NVEM
>> Source DOC:
remora-docs.readthedocs.io/en/latest/har...ml#controller-boards
>> Firmware for STM32F207:
Code:
https://github.com/scottalford75/Remora-NVEM/blob/main/Remora-NVEM-STM32/Release/Remora-NVEM.bin
3. LinuxCNC Ethernet configured on 10.10.10.100/24
>> Ping to the NVEM is running
4. As per the source DOC, the following steps were performed to get Remora from GitHub onto the PC:
Code:
pi@raspberry:~ $ mkdir ~/linuxcnc
Code:
pi@raspberry:~ $ cd ~/linuxcnc
Code:
pi@raspberry:~ $ git clone https://github.com/scottalford75/Remora
Code:
pi@raspberry:~ $ cd Remora/LinuxCNC/Components
>> I noticed that some things were missing, including the basic configuration file "remora-nvem-basic" and the component file "Remora-nv".
I then copied these files to the appropriate folders on my PC.
5. Installing the components with halcompile:
Code:
pi@raspberry:~ $ sudo halcompile --install ./Remora-eth/remora-eth-3.0.c
Code:
pi@raspberry:~ $ sudo halcompile --install ./Remora-spi/remora-spi.c
Code:
pi@raspberry:~ $ sudo halcompile --install ./Remora/remora_lpc.c
Code:
pi@raspberry:~ $ sudo halcompile --install ./NVMPG/nvmpg.c
Code:
pi@raspberry:~ $ sudo halcompile --install ./PIDcontroller/PIDcontroller.c
Code:
pi@raspberry:~ $ sudo halcompile --install ./PRUencoder/PRUencoder.c
>> It was noticed that "Remora-nv" was missing, so I installed it again:
Code:
sudo halcompile --install ./Remora-nv/Remora-nv.c
6. I copied the example configurations into the LinuxCNC folder, along with "remora-nvem-basic".
>> After starting LinuxCNC, I can select various Remora configurations to start.
7. Uploading the configuration to the NVEM - for this, I had to install TFTP:
- via a workaround involving the installation of pip3, etc., since some things are not installed by default in LinuxCNC.
>> When I run the upload script, I'm in the same folder as the simple config.txt file from "remora-nvem-basic":
Code:
python3 upload_config.py config.txt
>> This seems to be working so far.
8. Starting LinuxCNC and selecting NVEM Basic, which should match the Config.txt file. Everything starts without an error message.
I can move the axis - looks like i can get further to calibrate steppers and other stuff.
Now i look for the correct way to adapt inputs in my hal.
Hope other people will help this to bring the NVEM to live with LinuxCNC.
Regards,