Raspi 5 SPI setup
- Wagon56
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 3
13 Feb 2025 18:09 #321454
by Wagon56
Raspi 5 SPI setup was created by Wagon56
Hello everyone, im having a hard time setting up SPI on the raspi 5 running a rpi-5-debian-bookworm image, i thought it would be relevant to ask here. For context, im trying to use some TMC5160T Pro stepper motor drives but to run them in the step/dir config i need to establish a spi connection with the drive to get the step/dir mode active. (i found this information online so i might be wrong)
I have enabled SPI in the /boot/firmware/config.txt and i have also confirmed that /dev/spidev1.0 and 0.0 are active but when i run "gpioinfo | grep spi" i only see the CS pins which (by the logic of chatgpt) is incorrect, i am assuming that i should be seeing the mosi miso and sclk pins in there too.
would love some help setting this up since its just been a headache for someone with as little experience with this stuff as i have.
I have enabled SPI in the /boot/firmware/config.txt and i have also confirmed that /dev/spidev1.0 and 0.0 are active but when i run "gpioinfo | grep spi" i only see the CS pins which (by the logic of chatgpt) is incorrect, i am assuming that i should be seeing the mosi miso and sclk pins in there too.
would love some help setting this up since its just been a headache for someone with as little experience with this stuff as i have.
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Platinum Member
-
Less
More
- Posts: 341
- Thank you received: 132
13 Feb 2025 20:14 #321475
by unknown
Replied by unknown on topic Raspi 5 SPI setup
That is fine, as long as there are entries under /dev everything is fine.
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Platinum Member
-
Less
More
- Posts: 341
- Thank you received: 132
13 Feb 2025 20:15 #321476
by unknown
Replied by unknown on topic Raspi 5 SPI setup
And layoff the chatgtp it's not good for your health
Please Log in or Create an account to join the conversation.
- Wagon56
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 3
13 Feb 2025 23:36 #321495
by Wagon56
Replied by Wagon56 on topic Raspi 5 SPI setup
Yeah it doesnt really help with anything lately it just kinda is there as a last resort, i really really started disliking it but i was hoping it would atleast spit out some good info this time, but yeah thanks for the help, will take a look again tomorrow to hopefully get a stepper motor running
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Platinum Member
-
Less
More
- Posts: 341
- Thank you received: 132
14 Feb 2025 00:11 #321497
by unknown
Replied by unknown on topic Raspi 5 SPI setup
If you used the latest RPi image SPI will work. I tested the SPI interface using mesflah to talk to a 7c81 using the /dev/spidev.xx interface and also testing the hm2_spix driver. If either of these failed I would of rectified it before submitting the images to be put up on the downloads page.
The simplest solution was left out via chatgtp, check for the creation of the dev nodes. This has been talked about on the forum.
The simplest solution was left out via chatgtp, check for the creation of the dev nodes. This has been talked about on the forum.
The following user(s) said Thank You: Wagon56
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11230
- Thank you received: 3753
14 Feb 2025 02:30 #321501
by rodw
Replied by rodw on topic Raspi 5 SPI setup
Any time I use ChatGPT or any of his mates, they lie. Although google's gemini did manage to write some Python code for me to connect to an API and look stuff up the other day! I was impressed.The simplest solution was left out via chatgtp, check for the creation of the dev nodes. This has been talked about on the forum.
The following user(s) said Thank You: Wagon56
Please Log in or Create an account to join the conversation.
- Wagon56
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 3
14 Feb 2025 17:16 #321565
by Wagon56
Replied by Wagon56 on topic Raspi 5 SPI setup
Yeah well after some testing around it turns out that SPI wasn't an issue, the issue that stopped the drive from working was the fact that the raspi 5 couldn't provide stable enough voltage to the VIO of the drive, ive since set up 5 volts from an external power supply and it seems to be working.
Im having a different issue now where the motor itself doesn't spin, it just oscillates a bit depending on scale settings and that's about it, i have checked the motor coil connections and it seems like all the physical connections are fine but some part of the configs just doesn't let it run correctly.
Im having a different issue now where the motor itself doesn't spin, it just oscillates a bit depending on scale settings and that's about it, i have checked the motor coil connections and it seems like all the physical connections are fine but some part of the configs just doesn't let it run correctly.
Please Log in or Create an account to join the conversation.
Time to create page: 0.080 seconds