Sangaboard v0.5.4. Error503: No stage connected

Hi,

I tried to build high resolution microscope. When I run OpenFlexture Connect I get visual from camera but when i tired to move the stage I get “Error 503: No stage connected”.

On Sangaboard RX light is red
TX light is off
USB power and MTR power lights are both blue

After searching the forum i tried to fix it with the following code.

pip install sangaboard

Then run

python3

This should start Python and you can type Python commands in now. Try typing in the following lines, pressing enter after each. If you get an error message then can you screenshot it?

from sangaboard import Sangaboard
with Sangaboard() as sb:
    sb.move_rel([1000,0,0])
    print(sb.position)
    sb.move_rel([-1000,0,0])

when i wrote pip install sangaboard I get some versıon no error;
then i write

from sangaboard import Sangaboard

and get moduleNotFoundError: No module named ‘sangaboard’

Can anyone help me ??
Thanks a lot

1 Like

If you bought the Sangaboard it should have the firmware loaded, check with the supplier if there is a doubt.
You have got the Openflexure server running, or the web app would not be launched by OpenFlexure Connect.

It coud be a physical connection issue. Is the Sangaboard fully seated on the Pi, and corretly aligned on all of the pins? It is possible to have the connector one pin displaced by mistake.

Otherwise it could be caused by some accidental error in the Pi SD card. SD cards are rather prone to errors. They often don’t crash the Pi, just show up as random things not working. Trying a clean re-install of the Openflexure operating system image often makes things work. Maybe try a different card as well.

1 Like

The LED state seems to indicate that the Pi is not using the serial port or the connection the Pi is not functional for some reason. As William said, check that the board is correctly seated on the Pi’s GPIO and that you are using the current version of the OS image.

The import error would likely be unrelated to this, it seems like pip installed the sangaboard module into a different python environment.

You can also check openflexure logs to see if it tries to talk to the Sangaboard.

1 Like

I checked the pins for sure they are connected correctly.

Neither reinstalling software to same sdcard nor trying it with a new one did not changed the situation.

As far as i get there is a physical problem related to pins of raspberry or sangaboard but I am not sure which one. Also don’t know is there a certain way to measure each pin of sanga or pi to determine a failure.

I am planning to finish my setup with arduino nano version (In order to finish it fast).

Then I will try to find another pi and get a new sangaboard so i can see which one is problematic.

If you have any other advice ı would love to try.

Thanks for your answers

Can you post a close up photo of the Pi and Sangaboard connection?

Sure, Here we go

1 Like

Thanks for the photos. @filip.ayazi can you spot anything?

@kurgun One thing I noticed is you are powering the Pi, but it would be better to power the Sangaboard instead (and it will then deliver power to the Pi). And don’t try plugging both in to power sources.

Thanks for the info. As you advised I powered sangaboard. PI is working, I can get visual from camera via openflexture connect. It still does not recognize stage. Giving same error and RX and both blue leds are on.

Nothing that I can see. That’s good advice to power the Sangaboard but it’s unlikely to be the cause.

One thing you can try is disconnecting the Sangaboard from the pi and just connecting it via USB to a computer (or just connecting it to the pi via USB). It should show up as a serial device (on the Pi and other linux distributions it will be /dev/ttyACM*, on windows I think a COM port), with the RX (and the 2 blue) LEDs on.
If you do this on the pi with OpenFlexure software it should recognise the board over USB (it just won’t be able to reliably power it over USB so it’s just a test).

Can you check the openflexure logs at start up? It should show which serial ports it is trying at when looking for a Sangaboard and what the response is which should help narrow this down.

Basically the LED state almost certainly means that the Pi is either not using it’s serial port, or there is somehow no connection between the Pi’s pin and the correct Sangaboard net. Are you using the latest SD card image from Raspbian-OpenFlexure ?