- Posts: 33
- Thank you received: 0
Remora - Rpi Software Stepping Using External Microcontroller via SPI
- AlessandroEmm
- Offline
- Junior Member
-
Less
More
8 months 2 weeks ago - 8 months 2 weeks ago #343188
by AlessandroEmm
Replied by AlessandroEmm on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
I made some progress, SPI wasnt likely working properly before, as I had chosen PB9 for the pru-reset. Turns out PB9's timer is already occupied so no PWM. I change to PB15 which is usable for PWM and now i'm getting a
When trying to unlock the e-Stop.
Code:
Bad SPI payload = c8c2e8c2
Bad SPI payload = c8c2e8c2
When trying to unlock the e-Stop.
Last edit: 8 months 2 weeks ago by AlessandroEmm.
Please Log in or Create an account to join the conversation.
- AlessandroEmm
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 0
8 months 1 week ago #343193
by AlessandroEmm
Replied by AlessandroEmm on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
I just realised I still had SPI_clk_div set to 16, after setting it back to 32 or 64, the errors are gone, but i'm at square one again, no error on e-stop deactivate.
Please Log in or Create an account to join the conversation.
8 months 1 week ago #343208
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
the fact that you get a bad spi payload is good, keep it at 32 probably
This may sound forward of me, but how long is your cable?
This may sound forward of me, but how long is your cable?
Please Log in or Create an account to join the conversation.
- AlessandroEmm
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 0
8 months 1 week ago - 8 months 1 week ago #343228
by AlessandroEmm
Replied by AlessandroEmm on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Last edit: 8 months 1 week ago by AlessandroEmm.
Please Log in or Create an account to join the conversation.
8 months 1 week ago - 8 months 1 week ago #343283
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
those wires look too long and too loose. you will need to shorten them for sure and tighten them up a big
shorter is better, keep it as short as possible
edit do you mean 8inches and not 8cm? 8cm is the length of the rpi board
shorter is better, keep it as short as possible
edit do you mean 8inches and not 8cm? 8cm is the length of the rpi board
Last edit: 8 months 1 week ago by cakeslob.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- AlessandroEmm
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 0
8 months 1 week ago - 8 months 1 week ago #343354
by AlessandroEmm
Replied by AlessandroEmm on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
They were actually 10cm, now they are closer to 4.
Unfortunately wasnt the (root) cause of my issues.
Last edit: 8 months 1 week ago by AlessandroEmm.
Please Log in or Create an account to join the conversation.
Time to create page: 1.309 seconds