Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
1 year 1 week ago #336754 by fatih.d
Hi all, first post.

Could anyone point me to the right direction about using a 446 based board (Fysetc S6) with no SD card slot?

What would be the best, going with static config approach (I don't know how to do it or use which version/fork) or using an SD card adapter and have them talk over SPI? Using SDIO/SDMMC interface would not be so straightforward I guess.

Many thanks to those who made this project real. It was a fun read and I've learned so much. (Not a software guy)

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

More
1 year 1 week ago #337017 by Fred2560
Is QEI working ?
I have a RPI 4 SPI connected to a BLACK_407VE and an encoder with index connected to PE9, PE11, PE13. All works well except QEI, remora.PV.2 never changes, always = 0. Am I missing something ?
config txt :
    {
    "Thread": "Servo",
    "Type": "QEI",
            "Comment":                      "Spindle encoder",
            "PV":                        2,
            "Data Bit":                     7,
            "Enable Index":                 "True"
    }
Debug output:
Servo thread object                                                             
Spindle encoder                                                                 
Creating QEI, hardware quadrature encoder interface                             
  Encoder has index                                                             
                                                                                
Creating a std module                                                           
  Initialising hardware QEI module     

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

More
1 year 6 days ago #337243 by scotta
The A and B channels should be connected to PE9 and PE11, index to PE13. So that looks correct. It should work, but I have not played with the QEI for ages.

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

More
11 months 2 weeks ago #338230 by OBi
I have a newly minted Linuxcnc 2.9.7 installed on a Raspberry PI 4. 

I have successfully compiled the remora.c component from cakeslob/rrw_lab
trying 'sudo halcompile --install remora-spi.c' from cakeslob/main and scottalford75 will not compile. Lots of errors. 
Code:
Components/Remora-spi/rp1lib.c:94:9: error: assignment to ‘struct spi_device *’ from incompatible pointer type ‘struct spi_device **’ [-Wincompatible-pointer-types]    94 |     dev = &inst->spi_dev[spi_num];

I have also a working linuxcnc 2.9.3 that compiles remora-spi.c fine

Are there any changes in linuxcnc from version 2.9.3 to 2.9.7 that makes this happen? 
I will make do with the earlier remora component...

I just wanted to inform that there is some issues

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

More
11 months 2 weeks ago #338231 by unknown
You didn't by chance use the new trixie image on the downloads page did you ?

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

More
11 months 2 weeks ago #338283 by OBi

You didn't by chance use the new trixie image on the downloads page did you ?
 
Actually, yes I did... Shouldn't I?

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

Time to create page: 0.113 seconds
Powered by Kunena Forum