Git Product home page Git Product logo

Comments (13)

stuartbain avatar stuartbain commented on May 25, 2024 2

Is SPI enabled in Raspbian?

sudo raspi-config

Select 5 Interfacing Options, then P4 SPI, Yes (to enable the SPI interface)

from train-departure-display.

Dreadmond avatar Dreadmond commented on May 25, 2024 1

from train-departure-display.

KGS-STEAM avatar KGS-STEAM commented on May 25, 2024 1

Agreed thank you so much @Dreadmond ! Worked like a charm!

from train-departure-display.

kdavis avatar kdavis commented on May 25, 2024

@stuartbain That fixed it for me! Thankyou!

from train-departure-display.

chrisys avatar chrisys commented on May 25, 2024

Good stuff @KeirDavis1 - thanks for helping @stuartbain. Would be great to see some photos when you finish the project.

from train-departure-display.

KGS-STEAM avatar KGS-STEAM commented on May 25, 2024

Hi, I'm getting a similar error trying to run through the balena deployment, any help appreciated. I can see that the "spi=on" DT parameter is set so not sure what's going on.

Starting Train Departure Display v0.3.8
main /usr/src/python-packages/luma/core/interface/serial.py:206: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
main self._gpio.setup(pin, self._gpio.OUT)
main Traceback (most recent call last):
main File "/usr/src/python-packages/luma/core/interface/serial.py", line 309, in init
main self._spi.open(port, device)
main FileNotFoundError: [Errno 2] No such file or directory
main
main During handling of the above exception, another exception occurred:
main
main Traceback (most recent call last):
main File "src/main.py", line 325, in
main serial1 = spi(port=1,gpio_DC=5, gpio_RST=6)
main File "/usr/src/python-packages/luma/core/interface/serial.py", line 320, in init
main raise luma.core.error.DeviceNotFoundError('SPI device not found')
main luma.core.error.DeviceNotFoundError: SPI device not found

from train-departure-display.

BobBurrows48 avatar BobBurrows48 commented on May 25, 2024

Having exactly the same issues as KGS-STEAM. tried on both a pi zero w and a pi zero 2 w. same outcome. Was worried I'd brought a duff screen but maybe not.

any help would obviously be really appreciated.

many thanks

Bob

from train-departure-display.

gjwell avatar gjwell commented on May 25, 2024

Same here, I have tried 2 Pi zero w's two different displays. I have changed the 0Ohm resistor from R6 to R5 to enable 4SPI. triple checked wiring. metered out connections to ensure continuity and checked 3v supply to display. I guess the next thing to try is check the displays with an arduino.

any help would be really appreciated.

from train-departure-display.

gjwell avatar gjwell commented on May 25, 2024

@Dreadmond. You are a star!! This is exactly what I needed. Just tried it ant it works! Thank you so much for taking the time.

from train-departure-display.

chrisys avatar chrisys commented on May 25, 2024

Thanks for sharing this guys - I'll take a look here as this definitely wasn't necessary in the past!

from train-departure-display.

chrisys avatar chrisys commented on May 25, 2024

Note to myself - it looks (from the logs) like the device is trying to run in dualScreen mode anyway, which explains why enabling the second SPI port resolves the error. Probably something to do with the recent changes to configuration options

from train-departure-display.

jruys avatar jruys commented on May 25, 2024

+1 - That setting fixed it for me too, thanks @Dreadmond! Already bough a replacement screen as I assumed the old one was broken.

from train-departure-display.

chrisys avatar chrisys commented on May 25, 2024

OK should be fixed now - thanks for reporting it all!

from train-departure-display.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.