Issues during startup (Loadcell/ADC)

Hi, I am a student using the OSL for research and been able to preform the basic motion test (homing joints, setting desired angles, etc.) but when I try using the compiled controller or any usage of the Loadcell/ADC sensors I am met with this error

[

[2026-01-23 14:59:20,436] INFO: [Loadcell] Starting data acquisition… [2026-01-23 14:59:20,437] INFO: Starting ADC… Traceback (most recent call last):

…self._spi.open(self._spi_bus, self._spi_cs)

FileNotFoundError: [Errno 2] No such file or directory

]

I am unsure what is the issue and have been troubleshooting for a few days

Is this also an issue that would cause the State Machine to not activate?

I was not the student who built the leg so I am not 100% confident that everything is sound on that end.

Hi @Konrad

Welcome to the forum.

First there is a way to format the code (Ctrl+E) which makes it easier to read :wink:

The errors means that you tried to open a specific spi bus (defined by the self._spi_bus and the self._spi_cs) but it did not find it. First check your configuration (sudo raspi-config) and make sure that the spi is enabled. You can also see if there is error about the spi with dmesg | grep spi.

You will need to fix this to have a correctly working FSM.

1 Like

Thank you so much for your response, it pointed me in the right direction

By following your directions I was able to get past the Loadcell/ADC issue and have been looking into the SPI of my device. Unfortunately I have ran into another issue (Error num 5 - Input Output Error - the connection to the ankle is failing). The leg I am using uses I2C bus 1 and should have register 66 and 69 running for the knee and ankle respectively but it is only detecting register 66. I think that this is an electrical issue and am currently checking the wiring of the ankle for issues. Let me know if there is anything that I should also be considering.

(Picture of current error state below)

Hi @Konrad,

I suggest that if you encounter a problem which is not directly related to the subject of your post, you create a new post. It makes it easier for other people to help you but also to fix their own problems. So instead of replying to this post I would suggest you to create a new post with all the information and the reply to this post.

What are the devices connected to your PI ? How are they connected ?