-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connection on raspberry pi 2 failed. #38
Comments
Hi @Jostar1024 : What version of the library are you using? What version of Python are you using? And which Pi is that? Looks like a Pi2? Also, if you could draw out the wiring diagram, that would help. This error is almost always due to a bad connection, which can be hard to debug at times. Do you have the USB-SPI connector by any chance? |
Hi,
If I fully understand the instruction, here is how I wire. I don't have the USB-SPI... Would you tell me how that can help ? Well I've made every effort to try to wire it correctly... Is it possible that SPI is not working because of the version of the Linux Kernel ? I've read it at :I2C, SPI, I2S, LIRC, PPS, stopped working? Read this. |
Did you check the voltage level of each connection? Especially power. The On 17 Nov 2016 15:50, "Jostar1024" notifications@github.com wrote:
|
I've checked the voltage level. |
I see you are separately powering the OPC using a 5V/1A adapter. In my experience, even slight voltage offsets between OPC ground and RPi ground will result in garbled SPI communications. Try powering the OPC directly from the GPIO rail (5V/G) and ensure you have a quality power adapter (5V @ 1.5 to 2A). |
@Jostar1024 hello |
@Jostar1024 Did you ever solve this issue? |
I didn't really solve the issue and I used the USB port instead. The time and resources were limited and I'm not working on it anymore. |
I am using the Alphasense OPC-N2 on the raspberry pi 2, but it give me this Startup Error
how can I fix it ?
This is how the sensor is connected.
The text was updated successfully, but these errors were encountered: