Giter Club home page Giter Club logo

Comments (9)

ladyada avatar ladyada commented on July 21, 2024

@tokk-nv ^

from adafruit_blinka.

codyrickmanvessel avatar codyrickmanvessel commented on July 21, 2024

Hello, Im not sure if this is the correct place but here it goes.

I am using the Adafruit SGB30 Module, I had previously tested on RPi 3 B+ with no issue.
Now I am using it on the Jetson Nano but am running into some issues (with both SDA/SDA_1 and SCL/SCL_1 interfaces)

Behavior:

  1. Run Adafruit sample code for x iterations, ctrl-c out - No Error
  2. Run Adafruit sample again, immediately get
    File "/usr/local/lib/python3.6/dist-packages/adafruit_bus_device/i2c_device.py", line 76, in __init__ raise ValueError("No I2C device at address: %x" % device_address) ValueError: No I2C device at address: 58
  3. Use i2cdetect, SGB30 appears to have vanished from i2c bus
  4. Powercycle SGB30, reappears and works fine until I run and exit the python script.

Any ideas?

from adafruit_blinka.

romilly avatar romilly commented on July 21, 2024

It looks as if the ctrl-c is leaving the bus or the board in a bad state.
Maybe there is cleanup code on the Pi that prevents this.
You may be able to solve this by running some code to reset the SGP30 in the event of a KeyboardInterrupt. I don't have an SGP30 to hand, but have one on order and will investigate and report.

from adafruit_blinka.

codyrickmanvessel avatar codyrickmanvessel commented on July 21, 2024

@romilly That is what I thought might be happening. However, I altered the example code for the SGP30 from Adafruit to just take readings for ~10sec then print out the last reading, making it a run-once script instead of looping until ctrl-c. After I run the script once, I get the same behavior until I power cycle the SGB30.

Odd thing is, I get the notification from the Blinka library stating "Cleaning up pins..." but maybe this is not working properly on the Jetson Nano?

from adafruit_blinka.

romilly avatar romilly commented on July 21, 2024

from adafruit_blinka.

swarren avatar swarren commented on July 21, 2024

@cetinkayafaruk,

Is your question about how to know which pin numbers in https://github.com/adafruit/Adafruit_Blinka/blob/master/src/adafruit_blinka/microcontroller/tegra/t210/pin.py correspond to which pin numbers on the Jetson GPIO expansion connector, or about how to use the Blinka library in general?

I am not at all familiar with Blinka, but I believe you should use the pin numbers at https://github.com/adafruit/Adafruit_Blinka/blob/master/src/adafruit_blinka/board/jetson_nano.py instead, since they correspond to the connector rather than the chip. The naming of these pin numbers is at least partially aligned with one of the ways that the Raspberry Pi board names its pins; https://github.com/adafruit/Adafruit_Blinka/blob/master/src/adafruit_blinka/board/raspi_40pin.py

If you are looking for general help with Blinka, hopefully Adafruit can provide that, or there should be some documentation included with the library?

from adafruit_blinka.

swarren avatar swarren commented on July 21, 2024

@codyrickmanvessel, @romilly,

It looks like you're discussing a separate issue. Perhaps you can file a separate bug for that issue? That will keep each bug focused on a specific topic, and make it much easier for people to concentrate on one thing at a time.

from adafruit_blinka.

swarren avatar swarren commented on July 21, 2024

I think this bug should be closed:

  • The original requester hasn't responded to a request for clarification for ~2 months.
  • The other issues mentioned in this bug are unrelated, and should be in separate bug reports.

@ladyada do you agree?

from adafruit_blinka.

ladyada avatar ladyada commented on July 21, 2024

yah we def have blinka support started, now its just bug squashin time :)

from adafruit_blinka.

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.