Remora for RP2040

More
2 years 9 months ago #291749 by freemoore
Replied by freemoore on topic Remora for RP2040
I'd have thought you'd want to have per-axis stepgen/encoder pairs running on the same interface as each other, to keep the control loop timing as tight as possible, but perhaps threads are running fast enough that that's not a concern?

Also, with apologies for splitting the thread topic, is there anything like a pre-rolled config to use with RPI 4 -> STM NucleoF411RE -> arduino cnc shield, and if not where should I start?

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

More
2 years 9 months ago #291756 by cakeslob

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

More
2 years 9 months ago - 2 years 9 months ago #291805 by telmoram
Replied by telmoram on topic Remora for RP2040
hi, please help me add output don't work, the rp2040 with linuxcnc only inputs it's ok but add oudput then rp2040 freeze also blink pin die.
the file config-txt it's
{
"Board": "PICOBOB",
"Modules":[
{
"Thread": "Servo",
"Type": "Blink",
"Comment": "Blinky",
"Pin": "GP26",
"Frequency": 5
},
{
"Thread": "Base",
"Type": "Stepgen",
"Comment": "X - Joint 0 step generator",
"Joint Number": 0,
"Step Pin": "GP25",
"Direction Pin": "GP09"
},
{
"Thread": "Base",
"Type": "Stepgen",
"Comment": "Y - Joint 1 step generator",
"Joint Number": 1,
"Step Pin": "GP23",
"Direction Pin": "GP10"
},
{
"Thread": "Base",
"Type": "Stepgen",
"Comment": "Z - Joint 2 step generator",
"Joint Number": 2,
"Step Pin": "GP24",
"Direction Pin": "GP11"
},
{
"Thread": "Servo",
"Type": "Digital Pin",
"Comment": "X_Limit",
"Pin": "GP12",
"Mode": "Input",
"Data Bit": 0,
"Invert": "False"
} ,
{
"Thread": "Servo",
"Type": "Digital Pin",
"Comment": "Y_Limit",
"Pin": "GP13",
"Mode": "Input",
"Data Bit": 1,
"Invert": "True"
},
{
"Thread": "Servo",
"Type": "Digital Pin",
"Comment": "Z_Limit",
"Pin": "GP28",
"Mode": "Input",
"Data Bit": 2,
"Invert": "False"
}
,
{
"Thread": "Servo",
"Type": "Digital Pin",
"Comment": "outy",
"Pin": "GP27",
"Mode": "Output",
"Data Bit": 0,
"Invert": "False"
}

]
}
and connect serial port for debug freeze with this

outy
Make Digital Output at pin GP27

Creating a std module
Creating Pin @
  pin = GP27
 
Last edit: 2 years 9 months ago by telmoram. Reason: add more details

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

More
2 years 8 months ago - 2 years 8 months ago #292184 by drewnabobber
Replied by drewnabobber on topic Remora for RP2040
Just putting the finishing touches on the PicoHAL, which can be used as a Remora stepgen, amongst other things.  Probably a bit easier for hacking around than PiocBOB.

 
Last edit: 2 years 8 months ago by drewnabobber.
The following user(s) said Thank You: tommylight, scotta, cakeslob

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

More
2 years 7 months ago #295666 by Jaron
Replied by Jaron on topic Remora for RP2040
I've been trying to get Remora running on RP2040 via Ethernet on a Raspberry pi 5. The error i'm getting when trying to run LinuxCNC is:
Warning: Spoiler!

The error doesn't seem to be related to the pi 5 specifically so I'm hoping to get the pi 5 working with remora-ethernet, does anyone have a clue what I can try to fix it?

I've used the RP-2040-Ethernet-Remora firmware from:
github.com/scottalford75/Remora-RP2040-W5500
(UF2 file from the standard build folder, tried compiling it myself but came across multiple problems, I can give details if needed)

and using config and component from
github.com/scottalford75/Remora-NVEM/tre...Components/Remora-nv
and
github.com/scottalford75/Remora-NVEM/tre...es/remora-nvem-basic

When powering the RP-2040 all outputs seem to be flickering, can anyone tell if this is normal?
Warning: Spoiler!

I tried measuring the signal and it's lots of seamingly random peaks, my logic analyser only goes up to 24Mhz and it's all peaks at minimal time period. 
Warning: Spoiler!

In my setup I'm also connecting the W5500 with dupont wires, could this cause my problems maybe? (Read somewhere that the SPI communcation at stock speeds and these wires might not work)

Besides that I also read somethwere that the ethernet cable between pi and RP2040 needs to be a crossover cable. I've tried quickly making one but that also doesn't seem to make a difference.

I don't really know how to debug the error i'm getting so hopefully someone can help me.

I made a list of all commands I used to get my pi up and running, maybe it is usefull for someone trying to do the same or debugging my problem so here is what i've done:

Setting up my crappy touchdisplay:
in /boot/broadcom/config.txt adding
hdmi_force_hotplug=1
hdmi_drive=2
config_hdmi_boost=4

in cmdline.txt
adding "video=HDMI-A-1:1920x1080@60D" at the end

Setting up tightVNC:
Setting up other vnc servers was difficult, got this one working by
nano ~/.vnc/xstartup
change to:
#!/bin/sh
xsetroot -solid grey
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

To automatically start it at boot:
sudo nano /etc/rc.local
add this:
sudo -u cnc /usr/bin/tightvncserver :1 -geometry 1920x1080
before the exit 0:

To automatically log in to linuxcnc account at boot:
sudo nano /etc/lightdm/lightdm.conf
autologin-user=cnc

Setting up the static ethernet connection on Raspberry pi 5:
in sudo menu-config I changed ipv4 to manual and set the adres to 10.10.10.11 and gateway 0.0.0.0
(There is no /etc/dhcpcd.conf anymore on pi 5 it seems but this does the trick it seems)

installing nvem-remora component:
sudo halcompile --install remora-nv.c

Settings up RP2040
first uploading remora.uf2 to the pico board
(for upload_config.py tftpy is needed, installing tftpy normally didn't work, forgot the exact error)
python3venv venv
source venv/bin/activate
pip install tftpy
deactivate
./venv/bin/python3 upload_config.py nvem-basic-config.txt

In basic config I changed pin designators from PE_13, PE_12 to GP2, GP3 and left nvem board designator the same, is this correct?

Is there any way to check the communication over ethernet and if everything is going correctly? when I do ping 10.10.10.10 it responds back perfectly fine it seems.

To run Linuxcnc:
linuxcnc remora-nvem.ini

and in the ini i changed AXIS to qrvcp qtdragon_hd (axis didn't want to run for some reason but qtdragon seems fine)

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

More
2 years 7 months ago #295701 by cakeslob
Replied by cakeslob on topic Remora for RP2040
but is that error stopping you from running? i dont think that error is keeping you from running linuxcnc

github.com/scottalford75/Remora-NVEM/blo.../remora-nvem.ini#L55

change servo period from 1000000 to 2000000, we are running successfully like that.

dupont cables, its a problem, but probably not the problem. jiggle the cables while its connected to linuxcnc and observe the effects on the dro.

but the RPI5 has some really good latency numbers from what ive seen.

your detailed post is appreciated.
The following user(s) said Thank You: Jaron

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

Time to create page: 0.901 seconds
Powered by Kunena Forum