Octoprint: SPI interfacing issue

Created on 23 Jul 2017  路  8Comments  路  Source: OctoPrint/OctoPrint

Hi @ll,

i couldn't find any information about the SPI interface and octopi, is it somehow disabled generally?

What I try to do is controlling a WS2801 RGB-LED stripe with the same raspi i'm using to print with.
Actually it's no big deal and i'm runnig these WS2801 on several other raspis without issues.

So, are the GPIO-SPI-pins(10,9,11 or board 19,21,23) disabled for some reason?

I'm using the Adafruit-WS2801 python library, no errors, but no light.

incomplete

Most helpful comment

I was merely trying to offer advise as to possible sorces of your LED strips not working.

From your comment I'm inferring you'Re using OctoPi, the distribution that bundles octoprint. Maybe they can help you out https://github.com/guysoft/OctoPi

All 8 comments

Hi @spreedated,

It looks like there is some information missing from your bug report that will be needed in order to solve the problem. Read the Contribution Guidelines which will provide you with a template to fill out here so that your bug report is ready to be investigated (I promise I'll go away then too!).

If you did not intend to report a bug but wanted to request a feature or brain storm about some kind of development, please take special note of the title format to use as described in the Contribution Guidelines.

Please do not abuse the bug tracker as a support forum - if you have a question or otherwise need some kind of help or support refer to the Mailinglist or the G+ Community instead of here.

Also make sure you are at the right place - this is the bug tracker of the official version of OctoPrint, not the Raspberry Pi image OctoPi nor any unbundled third party OctoPrint plugins or unofficial versions. Make sure too that you have read through the Frequently Asked Questions and searched the existing tickets for your problem - try multiple search terms please.

I'm marking this one now as needing some more information. Please understand that if you do not provide that information within the next two weeks (until 2017-08-06 16:00 UTC) I'll close this ticket so it doesn't clutter the bug tracker. This is nothing personal, so please just be considerate and help the maintainers solve this problem quickly by following the guidelines linked above. Remember, the less time the devs have to spend running after information on tickets, the more time they have to actually solve problems and add awesome new features. Thank you!

Best regards,
~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being, so don't expect any replies from me :) Your ticket is read by humans too, I'm just not one of them.

It's a game of chance to drive WS2801s from a pi directly, since they are 5V but the pins on the pi only output 3.3V. So it may be that you are lucky on your other pis, but unlucky on this one.

Pins are not disabled for sure though, I am running WS2812Bs on my pi without issue.

You are misinformed... like i said, im running WS2801 on serveral PI's without any issues, also as an "ambilight" on my TV. All Raspberrys has two +5V pins - the advantage of WS2801 over WS2812Bs is that the PI can compute the information faster, e.g. ambilight.

The Raspberry PI GPIOs use 3.3V logic levels, and can be damaged if connected directly to 5V levels (as found in many older digital systems) without level-conversion circuitry.

source: http://elinux.org/RPi_Low-level_peripherals#Introduction

While there are 5V source pins on the GPIO header, whatever pin you use to transmit the signal is 3.3V. Like I said, in most cases, the tolerance in both the PI's output voltage spec and the WS2801Bs input spec, will allow you to use the signal pin as-is without issue. However, in some cases, the 3.3V logic level of the signal pin can cause problems, resulting in the LED strip not being able to read the logic levels properly.

I am making this point so you have something else to check, in case you checked everything else and couldn't find any issues. Try the LED strip not working on this PI on one of your other PI's and try one of your working strip on the PI you are running octoprint on.

Since you are driving your LEDs via SPI I would check whether SPI is properly enabled in the distribution you are running: This is a good starting point

In any case, this is not controlled by OctoPrint at all, so you either have to take this issue to the OctoPi guys (if you use it) or configure your distro properly. In the latter case it is merely a configuration issue and not a bug.

As already said, not an OctoPrint issue, closing.

This has gone way offtopic. All I wanted to know was "is SPI in general disabled, for some reason, in octopi". - nothing more.

You keep talking about iso layer model, 3.3V pin outputs and so on, which was never the point of discussion, since everything works fine with the same hardware, same configuration, but different software (octopi img), and you want me to check the configuration of SPI in my distro, when im using your distro?!

however, thanks for your 2 cents

I was merely trying to offer advise as to possible sorces of your LED strips not working.

From your comment I'm inferring you'Re using OctoPi, the distribution that bundles octoprint. Maybe they can help you out https://github.com/guysoft/OctoPi

spreedated, you're not using foosels or "our" distro. Octoprint is a Software running on a computer, like your browser on your own computer. Octoprint does not have control over anything controlled by your OS.

If we'd take this bug report to another system, you'd blame Google Chrome (=Octoprint here) devs because Windows (=OctoPi/Raspbian here) doesn't want to talk to your printer (=LED strips here).

Was this page helpful?
0 / 5 - 0 ratings