- Hardware & Machines
- Computers and Hardware
- Remora - Rpi Software Stepping Using External Microcontroller via SPI
Remora - Rpi Software Stepping Using External Microcontroller via SPI
06 May 2023 07:57 - 08 May 2023 07:55 #270774
by meister
Replied by meister on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
If someone want to play with github.com/multigcs/Remora-FPGA Working on Olimex ICE40HX8K-EVB and TinyFPGA-BX5Mhz Step-Clock is no problem for the hardware
Attachments:
Last edit: 08 May 2023 07:55 by meister.
The following user(s) said Thank You: cakeslob
Please Log in or Create an account to join the conversation.
07 May 2023 17:38 #270875
by meister
Replied by meister on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
this is fast
youtube.com/shorts/0nTmo4afwWs
youtube.com/shorts/0nTmo4afwWs
Please Log in or Create an account to join the conversation.
07 May 2023 23:53 #270900
by scotta
Replied by scotta on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
That's so cool. Well done!
Is the FPGA code using the DDS step generation algorithm?
Is the FPGA code using the DDS step generation algorithm?
Please Log in or Create an account to join the conversation.
08 May 2023 08:00 #270907
by meister
Replied by meister on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Thanks,
no i'm using clock generators and counters,
it's like one Hardware-Timer/Counter for each joint on normal Microcontroller's.
no i'm using clock generators and counters,
it's like one Hardware-Timer/Counter for each joint on normal Microcontroller's.
module stepgen
(
input clk,
input signed [31:0] jointFreqCmd,
output signed [31:0] jointFeedback,
output DIR,
output STP
);
assign DIR = (jointFreqCmd > 0);
reg [31:0] jointCounter = 32'd0;
reg [31:0] jointFreqCmdAbs = 32'd0;
reg signed [31:0] jointFeedbackMem = 32'd0;
reg step = 0;
assign STP = step;
assign jointFeedback = jointFeedbackMem;
always @ (posedge clk) begin
if (DIR) begin
jointFreqCmdAbs = jointFreqCmd / 2;
end else begin
jointFreqCmdAbs = -jointFreqCmd / 2;
end
jointCounter <= jointCounter + 1;
if (jointFreqCmd != 0) begin
if (jointCounter >= jointFreqCmdAbs) begin
step <= ~step;
jointCounter <= 32'b0;
if (step) begin
if (DIR) begin
jointFeedbackMem = jointFeedbackMem + 1;
end else begin
jointFeedbackMem = jointFeedbackMem - 1;
end
end
end
end
end
endmodule
Please Log in or Create an account to join the conversation.
16 May 2023 03:18 #271434
by cakeslob
Ok, I got it goin so far if you wanna test it out a bit. The serial output it good so at least. It uses the 26pin header for spi and serial, i only tested serial today.
Doesnt work with bootloader yet, so load it via DFU
I put a firmware.bin and basic config.txt
I was about to test it more, but it doesnt look like I can use my A4988/DRV8825 drivers. Keep in mind spi stepper driver things arent supported in remora, so you probably need to use 2209 or external drivers or something like fysetc fancy 5160 things. Unless those spi ones configure some other way, I dont know to much about them.
github.com/cakeslob/Remora/tree/mbedos6_spiderking
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Just dropping in to say hi to Cakeslob and let him know I'm looking forward to seeing progress on the linuxCNC front with regular 3d printer control boards!
In particular I am hoping to use the Spider King board!
Ok, I got it goin so far if you wanna test it out a bit. The serial output it good so at least. It uses the 26pin header for spi and serial, i only tested serial today.
Doesnt work with bootloader yet, so load it via DFU
I put a firmware.bin and basic config.txt
I was about to test it more, but it doesnt look like I can use my A4988/DRV8825 drivers. Keep in mind spi stepper driver things arent supported in remora, so you probably need to use 2209 or external drivers or something like fysetc fancy 5160 things. Unless those spi ones configure some other way, I dont know to much about them.
github.com/cakeslob/Remora/tree/mbedos6_spiderking
Please Log in or Create an account to join the conversation.
26 May 2023 18:45 #272223
by meister
Replied by meister on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Maybe something for you:
github.com/multigcs/LinuxCNC-RIO/tree/ma...Bridge/ESP32-PoE-ISO
So you can use SPI Boards via UDP
I use this to connect my FPGA to Ethernet at the moment,
should work directly with the Remora-nvem component.
github.com/multigcs/LinuxCNC-RIO/tree/ma...Bridge/ESP32-PoE-ISO
So you can use SPI Boards via UDP
I use this to connect my FPGA to Ethernet at the moment,
should work directly with the Remora-nvem component.
Please Log in or Create an account to join the conversation.
- drewnabobber
- Offline
- Senior Member
Less
More
- Posts: 41
- Thank you received: 27
26 May 2023 20:44 - 26 May 2023 20:45 #272226
by drewnabobber
Replied by drewnabobber on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
It's a bit easier to just use something like a W5500 chip directly via SPI (Scott already has code working for this).
With FlexiHAL we have a small add-on module in the works so that people aren't reliant on a Pi even though they are getting easier to find - we have not yet found another SBC that has adequate GPU driver support for Probe Basic.
Currently working on DMA transfers (even just using IRQ is a reasonable improvement), again just following on from the work that Scotta has already done.
With FlexiHAL we have a small add-on module in the works so that people aren't reliant on a Pi even though they are getting easier to find - we have not yet found another SBC that has adequate GPU driver support for Probe Basic.
Currently working on DMA transfers (even just using IRQ is a reasonable improvement), again just following on from the work that Scotta has already done.
Last edit: 26 May 2023 20:45 by drewnabobber.
The following user(s) said Thank You: cakeslob
Please Log in or Create an account to join the conversation.
04 Jun 2023 00:52 #272853
by Bari
Replied by Bari on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
$9 board: linuxgizmos.com/milk-v-duo-is-a-9-00-ris...y-embedded-computer/
milkv.io/docs/duo
github.com/milk-v/duo-manifest
milkv.io/duo
The Milk-V Duo is a small RISC-V embedded platform capable of running Linux and RTOS. The low-cost device features up to 26x GPIOs, optional 10/100Mbps Ethernet support and integrated with a H.264/H.265 video compression encoder and ISP.
The product page indicates that his Milk-V Duo is based on the SOPHGO CVITEK CV1800B (C906 @1Ghz + C906 @700MHz) System-on-Chip with up to 64MB DDR2 memory. The company indicates that the Duo integrates CVITEK TPU for smart detection and supports H.264/H.265 video encoding, up to 2880×1620 @20fps.
milkv.io/docs/duo
github.com/milk-v/duo-manifest
milkv.io/duo
The Milk-V Duo is a small RISC-V embedded platform capable of running Linux and RTOS. The low-cost device features up to 26x GPIOs, optional 10/100Mbps Ethernet support and integrated with a H.264/H.265 video compression encoder and ISP.
The product page indicates that his Milk-V Duo is based on the SOPHGO CVITEK CV1800B (C906 @1Ghz + C906 @700MHz) System-on-Chip with up to 64MB DDR2 memory. The company indicates that the Duo integrates CVITEK TPU for smart detection and supports H.264/H.265 video encoding, up to 2880×1620 @20fps.
Please Log in or Create an account to join the conversation.
20 Jun 2023 00:00 #273884
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
github.com/sbmarcom/CNS_Comp/tree/cns_gui/GasControl
github.com/sbmarcom/CNS_Comp/tree/cns_gui/cns_comps/remora
what do you think these guys are doin?
They have something going on with with remora comp and an stm32f103 bluepill board, but i didnt see any firmware posted. I sent them an email a few weeks ago but no reply
github.com/sbmarcom/CNS_Comp/tree/cns_gui/cns_comps/remora
what do you think these guys are doin?
They have something going on with with remora comp and an stm32f103 bluepill board, but i didnt see any firmware posted. I sent them an email a few weeks ago but no reply
Please Log in or Create an account to join the conversation.
20 Jun 2023 00:25 #273887
by phillc54
Replied by phillc54 on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
The following user(s) said Thank You: cakeslob
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.165 seconds