Search found 15 matches

by Fingolin
Mon Jun 05, 2017 10:55 am
Forum: Libary request
Topic: MPU-6050 (I2C) Library
Replies: 35
Views: 5834

Re: MPU-6050 (I2C) Library

I dont have a remote yet :D that is why I am asking..
by Fingolin
Sun Jun 04, 2017 11:45 am
Forum: Libary request
Topic: MPU-6050 (I2C) Library
Replies: 35
Views: 5834

Re: MPU-6050 (I2C) Library

Hi Gardino,
thanks for the tipp!
Nice work I like it and you are using the same frame as I do :)
By the way, what are you using as a remote?
by Fingolin
Wed May 24, 2017 1:27 pm
Forum: STM32F103 Boards
Topic: I2C on the STM32F103C8T6
Replies: 13
Views: 945

Re: I2C on the STM32F103C8T6

Woa thanks!
I just found this viewtopic.php?f=3&t=2084&p=27945&hilit=PB4#p27945
and the line disableDebugPorts(); resolves my issue!
Damn thanks!!
by Fingolin
Wed May 24, 2017 1:01 pm
Forum: General discussion
Topic: Software I2C usage
Replies: 1
Views: 183

Software I2C usage

Hi, I am currently trying to establish a connection betwen a STM32 board and an IMU6050 via I2C. I have been succesfull using the "original" i2c port at the pins PB6 and PB7... However now I want to use pins PB4 and PB5. Where can I adjust the parameters on the Wire library? I assume NOT by chaingin...
by Fingolin
Wed May 24, 2017 10:04 am
Forum: Libary request
Topic: MPU-6050 (I2C) Library
Replies: 35
Views: 5834

Re: MPU-6050 (I2C) Library

Does anyone know how I change the i2c pins? So that I can plug the IMU on other pins?
by Fingolin
Wed May 24, 2017 9:49 am
Forum: STM32F103 Boards
Topic: I2C on the STM32F103C8T6
Replies: 13
Views: 945

Re: I2C on the STM32F103C8T6

Can someone help me? I am not able to get i2c get to work on pins PB4 and PB5 (SCL,SDA). I tried: Wire=TwoWire(PB5,PB4); this->Adress=Adress; Wire.begin(); Wire.beginTransmission(Adress); Wire.write(0x6B); // PWR_MGMT_1 register Wire.write(0); // set to zero (wakes up the MPU-6050) Wire.endTransmiss...
by Fingolin
Tue May 23, 2017 2:48 pm
Forum: STM32F103 Boards
Topic: I2C on the STM32F103C8T6
Replies: 13
Views: 945

Re: I2C on the STM32F103C8T6

Software I2C can run on any pin.
How do I change the pins used by the standard Wire library?
by Fingolin
Tue May 23, 2017 6:34 am
Forum: Libary request
Topic: MPU-6050 (I2C) Library
Replies: 35
Views: 5834

Re: MPU-6050 (I2C) Library

Now comes my code: this is my GyroClass.h: #include <math.h> class Gyro{ private: float AccelMultipl=2*9.81; // float AngleMultipl=250; float correction[3]={0.9890, 0.9920,0.9844}; //correction factor for Acceleration float bias[3]={-0.3713,-0.0095,0.6367}; //Offset factor für Acceleration float Off...
by Fingolin
Mon May 22, 2017 10:21 am
Forum: STM32F103 Boards
Topic: I2C on the STM32F103C8T6
Replies: 13
Views: 945

Re: I2C on the STM32F103C8T6

Ah I see!
Edit: found a workaround thank you so much! Woul have taken me ages to find all that :D
by Fingolin
Mon May 22, 2017 9:41 am
Forum: STM32F103 Boards
Topic: I2C on the STM32F103C8T6
Replies: 13
Views: 945

Re: I2C on the STM32F103C8T6

Thank you for all of your support, it turned out I2C did not work for me since on of my cables was broken :oops: . I got one more question: is it possible, that conversion from bytes to float/int is different on the stm board? This is the code I am talking about: //Reading Raw: Wire.beginTransmissio...