Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
29 Nov 2024 04:45 #315509 by cakeslob
Motors aside, the best supported one right now is probably the BTT Octopus 446/429
The following user(s) said Thank You: tommylight

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

More
12 Feb 2025 18:24 - 12 Feb 2025 18:26 #321362 by jairobbo
Hi all,

I’m quite new here and still have a lot to learn, thanks all for your patience. I have been trying my best to get good print results with an Ender3 with a 100mm round build plate on two rotational axes. I wrote a blender addon that does ‘indexed’ 5 axis printing.
My setup with the pi 5 and gpio was not a suitable solution. I am hoping to get my octopus v1.1 working with remora. 

1) I successfully flashed the mcu
2) my wiring is correct
3) I get no read response from spi connection
4) when I start Linux cnc with my config, it says that joint.5.scale is not found ( extruder)

I will attach my hal and ini files in a bit. 
Attachments:
Last edit: 12 Feb 2025 18:26 by jairobbo.

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

More
12 Feb 2025 19:53 #321373 by cakeslob
dont use the flexihal configs for this, download the sample configurations from the remora github and try with those
The following user(s) said Thank You: jairobbo

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

More
12 Feb 2025 19:54 #321374 by scotta
If not using the Flexi-HAL board, I'd recommend to use the standard remora-spi component. First step is to get a basic 3 axis configuration up and running and then add in the additional axes.

There are various config examples here:
github.com/scottalford75/Remora/tree/mai...nuxCNC/ConfigSamples
The following user(s) said Thank You: jairobbo

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

More
13 Feb 2025 11:59 #321435 by jairobbo
very insightful, thank you

have a great day,
Jairo

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

More
13 Feb 2025 20:23 - 13 Feb 2025 20:25 #321479 by jairobbo
Stuck in e-stop

tried using jumpers on diag0 and diag1 and monitored the pins:

halcmd show pin remora.input.00
halcmd show pin remora.input.01

nothing changed when pulling signal either high or low.

checked hal and ini files, still trying to get the hang of it, I checked if the current tool pos was out of bounds...

thanks for helping out,
Jairo
 
Attachments:
Last edit: 13 Feb 2025 20:25 by jairobbo.

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

More
14 Feb 2025 01:30 #321499 by cakeslob
I havent done this in a long time, but I dont think the pins will update if you are trying to do it like that. you probably need to connect to remora with loadrt or something, but it is easier to just use linuxcnc and halshow

looks like the remora comp is working correctly, but if you cannot get out of estop there is something else wrong.

remora-docs.readthedocs.io/en/latest/development/checklist.html

Go over the checklist, and make sure you have successfully completed all the tasks. there are detailed articles for every point on the list

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

More
14 Feb 2025 12:59 - 14 Feb 2025 13:02 #321547 by jairobbo
hi cakeslob,

I checked the firmware version (stm32F446 octopus 1.1) At some point i was using minicom and cutecom to test the spi communication, I got [42] back at some point.

I just reinstalled the firmware using CubeProgrammer. What I dont get is why config.txt with the pin mappings should go in the sd reader of the octopus board. I did a secure format of my 8 and 16 Gb sd cards from realiable brands (Kingston and Sandisk) FAT32, but I never had the firmware being renamed to firmware.cur. For this reason I believe that having the sd card in there with the config file not being read is the issue.

So I'm assuming that CubeProgrammer did a good job and the MCU is flashed correctly. However when powering the board, it takes no motor current which I thought is weird. And the linuxcnc control still stuck in estop....

Gosh what else can I try?
Thanks

p.s. maye I didnt name all things I tried but I definitely went over the checklist you provided :) 
Last edit: 14 Feb 2025 13:02 by jairobbo.

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

More
14 Feb 2025 14:17 #321551 by cakeslob
I think you are getting things confused and did steps not in the instructions. If you load firmware.bin onto the SD card the first time, it will change to firmware.cur if it loaded correctly. Your config.txt file is stored on the sdcard, it needs to remain inside the board.

if you loaded the firmware using other methods, it is possible you overwrote the bootloader in which case the firmware will not load. you might need to reinstall flash the board with bootloader, then reload the firmware.

with the stock bootloader on the octopus, all you need to do is
- put the firmware.bin on the sd card
- put config.txt on the sd card
- put sd card in octopus and leave it there
- thats it

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

More
14 Feb 2025 21:05 - 14 Feb 2025 21:06 #321593 by jairobbo
yeah so before I tried also to get CubeProgrammer to reinstall the bootloader but it failed, and now wonderfully it succeeded.
also:
firmware.bin => firmware.cur
my further drilling the setup led to understanding that the estop is tied to:

net user-enable-out <= iocontrol.0.user-enable-out => remora.SPI-enable
net user-request-enable <= iocontrol.0.user-request-enable => remora.SPI-reset
net remora-status <= remora.SPI-status => iocontrol.0.emc-enable-in

I do not fully understand, but remora.spi-enable is TRUE, status is FALSE and reset = FALSE, they are connected to a signal which is probably a physical signal on the octopus, but I dont know where. I accidentally made a short by connecting 3.3v to GND on DIAG0.... :(

Anyway getting closer :)

p.s. I believe nothing was damaged!
Last edit: 14 Feb 2025 21:06 by jairobbo.

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

Time to create page: 0.235 seconds
Powered by Kunena Forum