- Hardware & Machines
- Computers and Hardware
- Remora - Rpi Software Stepping Using External Microcontroller via SPI
Remora - Rpi Software Stepping Using External Microcontroller via SPI
13 Oct 2021 04:05 #222997
by scotta
Replied by scotta on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Hi,
Yes, configuration is the same but with STM pin names as you said.
Thanks for the reminder, I'll need to set-up a "on load" module for the motor enable pin (PC_13) so that this is configured through the config.txt file.
SD / SDIO and UART pins will need to be hard coded for specific targets / boards.
Currently the SPI pins are hard coded but this could also evolve into the config.txt file if other boards use different.
I've used an ST-Link on the SKRv2 initially while we were working out how to setup the bootloader config in Mbed.
Yes, configuration is the same but with STM pin names as you said.
Thanks for the reminder, I'll need to set-up a "on load" module for the motor enable pin (PC_13) so that this is configured through the config.txt file.
SD / SDIO and UART pins will need to be hard coded for specific targets / boards.
Currently the SPI pins are hard coded but this could also evolve into the config.txt file if other boards use different.
I've used an ST-Link on the SKRv2 initially while we were working out how to setup the bootloader config in Mbed.
The following user(s) said Thank You: cakeslob
Please Log in or Create an account to join the conversation.
13 Oct 2021 04:07 #222998
by scotta
Replied by scotta on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
The testing repo for STM32 now has thermistor support.
Please Log in or Create an account to join the conversation.
14 Oct 2021 00:01 #223052
by cakeslob
Ok, cool. Im just asking because from what I can see, the motor enable scheme is not very common, but the spi/sd and uart so far, seem somewhat common between BTT and fystec across different boards and chips (446, 407, and 103)
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Hi,
Yes, configuration is the same but with STM pin names as you said.
Thanks for the reminder, I'll need to set-up a "on load" module for the motor enable pin (PC_13) so that this is configured through the config.txt file.
SD / SDIO and UART pins will need to be hard coded for specific targets / boards.
Currently the SPI pins are hard coded but this could also evolve into the config.txt file if other boards use different.
I've used an ST-Link on the SKRv2 initially while we were working out how to setup the bootloader config in Mbed.
Ok, cool. Im just asking because from what I can see, the motor enable scheme is not very common, but the spi/sd and uart so far, seem somewhat common between BTT and fystec across different boards and chips (446, 407, and 103)
Please Log in or Create an account to join the conversation.
14 Oct 2021 14:26 #223086
by Cncninja
Replied by Cncninja on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
So i have a Teensy 5 axis CNC board and it has insane step rates with its 600mhz core. The board was developed for GrblHal or Grbl32/Hal. If you do a little reading on GrblHal it was based on LinuxCNC HAL's structure. So my question is can this 600mhz monster and its HAL file be adapted to Remora? The point being it is readily available still and is cheap, there are a few Teensy CNC boards available, below is the link to the one I have. there is SPI, LAN, serial
forum.pjrc.com/threads/61622-Teensy-4-1-Based-CNC-Controller
forum.pjrc.com/threads/61622-Teensy-4-1-Based-CNC-Controller
Please Log in or Create an account to join the conversation.
14 Oct 2021 14:49 - 14 Oct 2021 14:52 #223087
by Bari
Replied by Bari on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Teensy 4.1 uses a i.MX RT1060 processor, Arm Cortex-M7 MPCore.
www.pjrc.com/teensy/IMXRT1060CEC_rev0_1.pdf
Core is similar to www.st.com/en/microcontrollers-microproc.../stm32f7-series.html but the peripherals are different.
And you already started another thread about this months ago forum.linuxcnc.org/18-computer/43212-teensy-based-cnc-board
www.pjrc.com/teensy/IMXRT1060CEC_rev0_1.pdf
Core is similar to www.st.com/en/microcontrollers-microproc.../stm32f7-series.html but the peripherals are different.
And you already started another thread about this months ago forum.linuxcnc.org/18-computer/43212-teensy-based-cnc-board
Last edit: 14 Oct 2021 14:52 by Bari.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
15 Oct 2021 03:49 #223160
by Cncninja
Replied by Cncninja on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Yes i did as a standalone controller, I'm now suggesting it would be a good option for remora due to the STM shortages. I.E new thread.
Please Log in or Create an account to join the conversation.
16 Oct 2021 02:22 #223270
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
How would I set the reset pin in the config file? "NRST"? "RESET"? I dont see it ever referred to as a pin number
Please Log in or Create an account to join the conversation.
16 Oct 2021 20:04 #223322
by scotta
Replied by scotta on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
From the docs:
remora-docs.readthedocs.io/en/latest/fir...-File.html#reset-pin
{
"Thread": "Servo",
"Type": "Reset Pin",
"Comment": "Reset pin",
"Pin": "1.31"
}
remora-docs.readthedocs.io/en/latest/fir...-File.html#reset-pin
{
"Thread": "Servo",
"Type": "Reset Pin",
"Comment": "Reset pin",
"Pin": "1.31"
}
The following user(s) said Thank You: luizdiefenbach
Please Log in or Create an account to join the conversation.
16 Oct 2021 23:45 #223343
by scotta
Replied by scotta on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
A little more work on the STM32F4 version of Remora.
1. Motor Power enable module added. Configure in config.txt using pin PC_13
2. Hardware QEI (Quadrature Encoder Interface) with interrupt driven index. Channel A and B pins are PE_9 and PE_11 with index set to pin PE_13. Use the LinuxCNC PRUencoder component to interface to the encoder module.
Example config.txt below:
1. Motor Power enable module added. Configure in config.txt using pin PC_13
2. Hardware QEI (Quadrature Encoder Interface) with interrupt driven index. Channel A and B pins are PE_9 and PE_11 with index set to pin PE_13. Use the LinuxCNC PRUencoder component to interface to the encoder module.
Example config.txt below:
{
"Board": "BIGTREETECH SKR v2",
"Modules":[
{
"Thread": "On load",
"Type": "Motor Power",
"Comment": "Enable motor power SKR2",
"Pin": "PC_13"
},
{
"Thread": "Servo",
"Type": "Reset Pin",
"Comment": "Reset pin",
"Pin": "PC_4"
},
{
"Thread": "Base",
"Type": "Stepgen",
"Comment": "X - Joint 0 step generator",
"Joint Number": 0,
"Step Pin": "PE_2",
"Direction Pin": "PE_1",
"Enable Pin": "PE_3"
},
{
"Thread": "On load",
"Type": "TMC2209 stepper",
"Comment": "X - Joint 0 TMC driver",
"Driver": "2209",
"RX pin": "PE_0",
"RSense": 0.11,
"Current": 800,
"Microsteps": 16,
"Stealth chop": "on",
"Stall sensitivity":0
},
{
"Thread": "Base",
"Type": "Stepgen",
"Comment": "Y - Joint 1 step generator",
"Joint Number": 1,
"Step Pin": "PD_5",
"Direction Pin": "PD_4",
"Enable Pin": "PD_6"
},
{
"Thread": "Base",
"Type": "Stepgen",
"Comment": "Z - Joint 2 step generator",
"Joint Number": 2,
"Step Pin": "PA_15",
"Direction Pin": "PA_8",
"Enable Pin": "PD_1"
},
{
"Thread": "Base",
"Type": "Stepgen",
"Comment": "E0 - Joint 3 step generator",
"Joint Number": 3,
"Step Pin": "PD_15",
"Direction Pin": "PD_14",
"Enable Pin": "PC_7"
},
{
"Thread": "Servo",
"Type": "Temperature",
"Comment": "Bed tenperature sensor",
"PV[i]": 0,
"Sensor": "Thermistor",
"Thermistor":
{
"Pin": "PA_1",
"beta": 3990,
"r0": 100000,
"t0": 25
}
},
{
"Thread": "Servo",
"Type": "Digital Pin",
"Comment": "X min",
"Pin": "PC_1",
"Mode": "Input",
"Data Bit": 0
},
{
"Thread": "Servo",
"Type": "Digital Pin",
"Comment": "X max",
"Pin": "PC_2",
"Mode": "Input",
"Data Bit": 1
},
{
"Thread": "Servo",
"Type": "Digital Pin",
"Comment": "Y min",
"Pin": "PC_3",
"Mode": "Input",
"Data Bit": 2
},
{
"Thread": "Servo",
"Type": "Digital Pin",
"Comment": "Y max",
"Pin": "PA_0",
"Mode": "Input",
"Data Bit": 3
},
{
"Thread": "Servo",
"Type": "Digital Pin",
"Comment": "Z min",
"Pin": "PC_0",
"Mode": "Input",
"Data Bit": 4
},
{
"Thread": "Servo",
"Type": "Digital Pin",
"Comment": "Z max",
"Pin": "PC_15",
"Mode": "Input",
"Data Bit": 5
},
{
"Thread": "Servo",
"Type": "Switch",
"Comment": "Extruder fan switch",
"Pin": "PB_7",
"Mode": "On",
"PV[i]": 0,
"SP": 25.5
},
{
"Thread": "Servo",
"Type": "QEI",
"Comment": "Hardware Quadrature Encoder Interface",
"PV[i]": 2,
"Enable Index": "True",
"Data Bit": 6
}
]
}
Please Log in or Create an account to join the conversation.
16 Oct 2021 23:49 #223345
by Aaroncnc
Replied by Aaroncnc on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Ohh this means it should have all the features I need to use it for my machine.
Hopefully I can get a weekend out in my shop in the next year.
Hopefully I can get a weekend out in my shop in the next year.
Please Log in or Create an account to join the conversation.
- Hardware & Machines
- Computers and Hardware
- Remora - Rpi Software Stepping Using External Microcontroller via SPI
Time to create page: 0.290 seconds