-
Notifications
You must be signed in to change notification settings - Fork 45
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
12c examples #19
Comments
an anomaly has been reported to me with i2c on debian stretch. what operating system are you working on? now i'm traveling, in a few days i go back to the laboratory and try to understand the problem! thanks! |
Hey, I get this: |
Hi @fred-dev , I just fixed the examples for the i2c bus scanner, now you should see the addresses on the bus! the example for the openframeworks scanner wired the path to the device: /dev/i2c-1 in the code regarding SPI there should not be any problem, both the example i2c and SPI must be executed with a user who can access you device, you can check if your user belongs to the i2c group and spi with command: id or run the example with sudo. you can also refer to this issues: for some additions made to the SPI class. try to look at this example that takes the path of the spi device as a parameter in the setup method please let me know |
Hi, thanks, I have no idea what I was doing wrong but I started from scratch and the MCP worked fine, I had used it a few months ago so I had already found these quirks, just wanted to do a poc before I send a PCB for fabrication.
The i2c is a different issue. I can confirm everything is working hardware wise, but just not with your code. I have added a picture that I can scan the 12c bus with a command, but your addon does not work, I have been using elevated permissions. Knowing that it can work I will go ahead with my PCB, needless to say it would be great to be able to use your code and have everything in a single app, rather than run the 12c from another script.
Cheers
Fred
PS, thanks a million for this work, ofxGpio is really extensive and well put together, you are making a lot of crazy projects happen!!

PS, I reinstalled raspbian to the latest kernel 4.9
|
Hi, thanks for feedback! unfortunately, I can only reach a remote raspberry that is in my office in Italy, while I am now in switzerland. I'd like to solve this, can you help me debug? if you can! add a: Grazie! |
It gives me:
65415
Cheers - and I am ok for a few days, thanks so much for the effort.
…On 19 April 2018 at 10:10, Dario Longobardi ***@***.***> wrote:
Hi, thanks for feedback!
unfortunately, I can only reach a remote raspberry that is in my office in
Italy, while I am now in switzerland. I'd like to solve this, can you help
me debug?
if you can! add a: cout << result << endl; to the scanner example,
immediately after this line:
https://github.com/kashimAstro/ofxGPIO/blob/master/example-i2c-scanner/
src/main.cpp#L28
and pass me the output.
Grazie!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABg9lRsHMJ5kKmF8kTWX1m4GPgigyZrRks5tqGKigaJpZM4TYVAC>
.
--
Frederick Rodrigues
+31685253512
http://www.fredrodrigues.net/
|
the whole list contains only the value: 65415? |
Ok, I had a chance to try this again, I was wrong it is not only 6514.
The 24th value is read as 31. My 12c device is addressed at 18, as shown in the previous picture.
Could it be that this value is now coming in as octal and with an offset?
My sensor should be 18, but if there is now a start address offset (it starts at 1 not zero) and the values are octal.
031 octal is 19 hex and 25 decimal?
… On 19 Apr 2018, at 3:07 pm, Dario Longobardi ***@***.***> wrote:
the whole list contains only the value: 65415?
Is the chip conn this is strange smbus should return 0 or 255 if it finds an address..
ected when you run example?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#19 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABg9lSylJ5bMJA9r5Ts1MsJHxvgx6K6Cks5tqIwOgaJpZM4TYVAC>.
|
Hi @fred-dev thanks for this, |
Hi, there are some errors in the 12C examples, for the I2C scanner the OF version is actually without OF and throws, no rule to make target run
The straight 12c examples bails on the make.
I am trying to use an LIS3DH adafruit accelerometer, but I want to check the connection first...
The text was updated successfully, but these errors were encountered: