Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
06 May 2023 07:57 - 08 May 2023 07:55 #270774 by meister
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.

More
07 May 2023 17:38 #270875 by meister

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

More
07 May 2023 23:53 #270900 by scotta
That's so cool. Well done!

Is the FPGA code using the DDS step generation algorithm?

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

More
08 May 2023 08:00 #270907 by meister
Thanks,
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.

More
16 May 2023 03:18 #271434 by cakeslob

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.

More
26 May 2023 18:45 #272223 by meister
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.

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

More
26 May 2023 20:44 - 26 May 2023 20:45 #272226 by drewnabobber
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.
Attachments:
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.

More
04 Jun 2023 00:52 #272853 by Bari
$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.

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

More
20 Jun 2023 00:00 #273884 by cakeslob
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

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

More
20 Jun 2023 00:25 #273887 by phillc54
The following user(s) said Thank You: cakeslob

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

Time to create page: 0.245 seconds
Powered by Kunena Forum