Comments (9)
@tokk-nv ^
from adafruit_blinka.
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:
- Run Adafruit sample code for x iterations, ctrl-c out - No Error
- 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
- Use i2cdetect, SGB30 appears to have vanished from i2c bus
- Powercycle SGB30, reappears and works fine until I run and exit the python script.
Any ideas?
from adafruit_blinka.
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.
@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.
from adafruit_blinka.
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.
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.
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.
yah we def have blinka support started, now its just bug squashin time :)
from adafruit_blinka.
Related Issues (20)
- Issue with APDS9960 sensor on Raspberry Pi 3 Model B+ HOT 1
- Add board: BOARD=orangepi3-lts HOT 1
- ADD BANANAPI CM4 BOARD
- ADD BANANAPI CM4 BOARD SUPPORT
- DietPi - Error installing Adafruit-Blinka HOT 1
- any check scripts that should be performed before issuing a PR for adding a new board
- Adafruit-PlatformDetect version 3.66.0 was unable to identify the board HOT 3
- Cant find the board HOT 6
- Some microcontroller definitions may be incorrect.
- libgpiod_pin_1_x.py does not detect internal pulldowns HOT 1
- GT911 touch sensor support for Adafruit Blinka HOT 7
- adafruit-circuitpython-motor fails with "RuntimeError: Cannot determine SOC peripheral base address" on Raspberry Pi 5 HOT 12
- Adafruit-Adafruit-PlatformDetect version 3.69.0 was unable to identify the board HOT 13
- Adafruit-PlatformDetect version 3.69.0 was unable to identify the board HOT 2
- support for NXP i.MX 8M PLUS HOT 3
- pip try to install sysv-ipc on Windows HOT 26
- It is no longer possible to install from 8.44.0. HOT 4
- Getting error in WCMCU-200 I2c to USB Adapter
- Add New Board adafruit FT232H Breakout for adafruit-blinka HOT 3
- Add Orange Pi AIPro
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_blinka.