Giter Club home page Giter Club logo

Comments (3)

BatbayarU avatar BatbayarU commented on July 1, 2024 4

SOLUTION:

The problem is in the SPI buffer size. The default value is 4096 but 160x120 images from Lepton3 are bigger.

You need to increase the size of the SPI buffer as explain here

Edit /boot/cmdline.txt and add in the end:
spidev.bufsiz= 65535

Then reboot your raspberry and check it worked with:
cat /sys/module/spidev/parameters/bufsiz

Hope it works for you also. Maybe this information should be in the README setup tutorial

Hi,
Thank you for your solution. I have tried this but the I couldn't change the buffer size. However, I solved this the opposite of your solution which is by reducing the message size of the library. SPIDEV_MESSAGE_LIMIT = 24 to 8 of Lepton.py. I hope this helps someone.

from pylepton.

oroelipas avatar oroelipas commented on July 1, 2024 2

SOLUTION:

The problem is in the SPI buffer size. The default value is 4096 but 160x120 images from Lepton3 are bigger.

You need to increase the size of the SPI buffer as explain here

Edit /boot/cmdline.txt and add in the end:
spidev.bufsiz= 65535

Then reboot your raspberry and check it worked with:
cat /sys/module/spidev/parameters/bufsiz

Hope it works for you also. Maybe this information should be in the README setup tutorial

from pylepton.

oroelipas avatar oroelipas commented on July 1, 2024

I have the same error.
raspberrypi_video from LaptonModule is also working for me but not this library.
I am using Lpeton 3.5 with breakoutboard v2.0 on Raspberry Pi 4.

OS: Raspbian Buster
Kernel: 5.4.72-v7l+
Python: 3.7.3

Any solution?

from pylepton.

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.