Go to advanced search

by ember
Tue Feb 19, 2013 6:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C: How to connect multiple devices.
Replies: 30
Views: 46237

Re: I2C: How to connect multiple devices.

problem solved. is it possible, that the fact that I didn't solder the pins in GY-80 are causing so much problems? Is it necessary, or can I just plug it in? apparently it is necessary... I see no diode on the schematic you provided. What about the one above capacitors, near 3.3V LDO ? But maybe I'm...
by ember
Tue Feb 19, 2013 1:48 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C: How to connect multiple devices.
Replies: 30
Views: 46237

Re: I2C: How to connect multiple devices.

I checked it several times already, it's connected properly.
by ember
Tue Feb 19, 2013 1:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C: How to connect multiple devices.
Replies: 30
Views: 46237

Re: I2C: How to connect multiple devices.

DS1307 wroks fine, so I think everything is connected properly there.
Newbie question: is it possible, that the fact that I didn't solder the pins in GY-80 are causing so much problems? Is it necessary, or can I just plug it in?
by ember
Tue Feb 19, 2013 12:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C: How to connect multiple devices.
Replies: 30
Views: 46237

Re: I2C: How to connect multiple devices.

techpaul wrote:No try to connect 3V3 to VCC_IN and VCC_3.3V
Didn't work either.
joan wrote:I only connect 4 wires for it to work.
And worked without any problems? Does it have internal 2k2 pullups resistors?
If so, I'm afraid my board may be broken :/
by ember
Tue Feb 19, 2013 12:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C: How to connect multiple devices.
Replies: 30
Views: 46237

Re: I2C: How to connect multiple devices.

Thanks for replies. Well, I bought it from "a guy" from, polish ebay kindof site. AFAIK, they're some chineese boards, they don't have brand or serial number, quite popular in quadrocopter projects, although I didn't see any combined with Raspberry. I read something about it on the internet, everyon...
by ember
Tue Feb 19, 2013 11:54 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C: How to connect multiple devices.
Replies: 30
Views: 46237

Re: I2C: How to connect multiple devices.

Unfortunately I don't have any specs of the board, besides the scheme i posted. I do have however schemes of each sensor: L3G4200 gyroscope: http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00265057.pdf ADXL345 accelerometer: http://www.analog.com/static/imported-f...
by ember
Tue Feb 19, 2013 11:37 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C: How to connect multiple devices.
Replies: 30
Views: 46237

Re: I2C: How to connect multiple devices.

I have similiar issue. I bought GY80 board, which contains accelerometer, gyroscope, compass and barometer. Unfortunatelly, i cannot get it to work with Pi - i2cdetect doesn't see it. I'm wondering, if my problem is somehow related to pullup resistors - Pi has builtin 1k8, gy80 has 2k2 (measured - s...
by ember
Tue Feb 19, 2013 8:53 am
Forum: C/C++
Topic: I2C WiringPi read errno 9
Replies: 1
Views: 1087

Re: I2C WiringPi read errno 9

Just realized that I passed device ID to wiringPiI2CReadReg8 function, insted of file descriptor. Problem solved :)
by ember
Mon Feb 18, 2013 8:33 pm
Forum: C/C++
Topic: I2C WiringPi read errno 9
Replies: 1
Views: 1087

I2C WiringPi read errno 9

I have problem with reading from DS1307 using I2C helpers from WiringPI library. wiringPiI2CReadReg8 function returns -1, even though wiringPiI2CSetup returns 11. errno after calling wiringPiI2CReadReg8 is 9, which is EBADF (Bad file number) Devices are connected properly, I can comunicate with them...
by ember
Sat Feb 16, 2013 3:15 pm
Forum: C/C++
Topic: Qt with Wiring PI
Replies: 26
Views: 33506

Re: Qt with Wiring PI

Problem solved! Turned out, that there were two problems: First one was, that I had empty /usr/local/lib/libwiringpi.so on my raspberry image. Had to rebuild it twice (don't know why) in order to get work. Second problem was, that compiler searched for library in /home/ember/opt/rasp-pi-rootfs/usr/l...
by ember
Sat Feb 16, 2013 1:49 pm
Forum: C/C++
Topic: Qt with Wiring PI
Replies: 26
Views: 33506

Re: Qt with Wiring PI

Just realized, that I have to link RPi libraries, not Ubuntu libraries: INCLUDEPATH += /home/ember/opt/rasp-pi-rootfs/usr/local/include LIBS += -L/home/ember/opt/rasp-pi-rootfs/usr/local/lib -lwiringPi Maybe it's another step further :) Now I get: 'wiringPiSetupGpio' was not declared in this scope
by ember
Sat Feb 16, 2013 1:39 pm
Forum: C/C++
Topic: Qt with Wiring PI
Replies: 26
Views: 33506

Re: Qt with Wiring PI

Thank you. But I still get this error: 1. skipping incompatible /home/ember/opt/rasp-pi-rootfs/usr/lib/libwiringPi.so when searching for -lwiringPi 2. skipping incompatible /home/ember/opt/rasp-pi-rootfs/usr/lib/libwiringPi.so when searching for -lwiringPi 3. cannot find -lwiringPi 4. collect2: erro...
by ember
Sat Feb 16, 2013 12:17 am
Forum: C/C++
Topic: Qt with Wiring PI
Replies: 26
Views: 33506

Qt with Wiring PI

Hello. I'm trying to combine QT with Wiring PI whole day and still no effects. First of all, I installed Wiring PI on my laptop using build script provided. Secondly i configured *.pro file with following line: LIBS += -L/usr/local/include -lwiringPi Everything worked fine, until I tried to #include...

Go to advanced search