Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
22 Jul 2023 05:25 #275985 by cornholio
Cheers mate.

What version of STM32Cube would you recommend ?

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

More
01 Aug 2023 15:33 #276707 by virencq
Hi cakeslob,
I have used your repository github.com/cakeslob/Remora/tree/nucleo_staticZE.
Thanks for your implementation for Nucleo 446ZE.
I am sharing the video for the issue.
In MDI I hit 5 mm, the stepper moves slightly over 5 mm then it retracts to commanded position of 5 mm.

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

More
01 Aug 2023 22:02 #276746 by 3DPandME
Hi cakeslob!

I'm finally at the wiring and controller stage of my build and so I'm picking this back up.

Still trying to use the Spider king board and big TMC5160s

I put the firmware.bin file on an SD card and popped it into the spider king. Flash led (red one on the core module) flashed on off for a while then stopped. On reboot there is lots of something going to the serial port but none of it is human readable? I used an Arduino to read the pass the serial to a terminal on my pc like you would a UART to usb adapter.

Is 115200 the correct baud rate? I'm connecting to the Rx/tx pins on the raspberry pi connector on the spider king (I remember that it doesn't use the usb ones by default)

How do I debug before trying to connect the SPI? 
​​
Cheers for your work!

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

More
02 Aug 2023 12:35 #276776 by cakeslob
hey viren, add these deadband lines to your ini and hal for each axis. you may need to adjust the values a little

github.com/Expatria-Technologies/remora-...remora-flexi.hal#L90

github.com/Expatria-Technologies/remora-...emora-flexi.ini#L109

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

More
02 Aug 2023 13:04 #276777 by cakeslob
Hey 3dp, glad you're back. 
Ok, let me refresh myself as well. We are using the 26pin rpi header, the spi and serial is on that. I couldnt get it to work with the bootloader, but good thing you have the backup. 

Idk what repo we were using before but we can use this one now
github.com/cakeslob/Remora/tree/mbedos6/Firmware

I dont know how the arduino part will work, but yes the baud 115200

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

More
02 Aug 2023 17:56 #276785 by 3DPandME
And just to confirm the output should be some human readable text / status?

My usb to serial adapter arrived today so I can check I wasn't doing anything stupid with the Arduino.

You mention that it works without the bootloader. Do I need to load it via the DFU mode rather than via the sd card then?

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

More
02 Aug 2023 18:50 #276788 by cakeslob
yeah the serial should be readable, and say a lot of stuff. If youa rent sure about the serial stuff, you can connect it to the RPI to read serial. Double check with the picture I made also, it should be a few pages back.

For the bootloader, you may need to load it DFU, just to make sure everything works. it should have loaded fine from SD before the bootloader was overwritten, but I dont remember now. If its not working just erase the chip and reload it via DFU, that will for sure work.

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

More
03 Aug 2023 01:36 #276807 by cakeslob
viren,
add these lines to each joint in your ini/hal
github.com/cakeslob/Remora/blob/nucleo_s...c/remora-xyz.hal#L33
github.com/cakeslob/Remora/blob/nucleo_s...c/remora-xyz.ini#L96

you might need to change values, but that fixed it for me



3dp
I tested it out, just to double check. seems good

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

More
06 Aug 2023 05:43 - 06 Aug 2023 06:39 #277086 by virencq
I am fed up with RPI. Sometimes it hangs, sluggish, worst case yesterday spindle kept off Z feed advanced. Break tool.
In lathe, I have Phase A and Z index.
As Phase A only capable of reading 560. RPM.
#net spindle-velocity-feedback-rps encoder.0.velocity => spindle.0.speed-in
net spindle-velocity spindle.0.speed-out-rps => spindle.0.speed-in
Last edit: 06 Aug 2023 06:39 by virencq.

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

More
07 Aug 2023 02:54 #277188 by cakeslob

I am fed up with RPI. Sometimes it hangs, sluggish, worst case yesterday spindle kept off Z feed advanced. Break tool.
In lathe, I have Phase A and Z index.
As Phase A only capable of reading 560. RPM.
#net spindle-velocity-feedback-rps encoder.0.velocity => spindle.0.speed-in
net spindle-velocity spindle.0.speed-out-rps => spindle.0.speed-in


I dont know what you mean by hangs or slugish. i use axis without issue
If you are having issues with your overall RPI image, you can try using this one
github.com/Expatria-Technologies/remora-...l/releases/tag/V0.1B

how do you have your encoder connected? if you use the QEI highspeed encoder pins/config you should be able to get a lot more. i use a high resolution encoder at 5000 rpm without issue
If its for the nucleo,
github.com/cakeslob/Remora-docs/blob/nuc...46.rst#hardware-pins


If you are using your nucleo stuff, please be patient and report any issues so we can try to fix it

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

Time to create page: 0.127 seconds
Powered by Kunena Forum