Search found 11 matches

by Fingolin
Wed May 24, 2017 10:04 am
Forum: Libary request
Topic: MPU-6050 (I2C) Library
Replies: 23
Views: 4133

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: Generic STM32F103
Topic: I2C on the STM32F103C8T6
Replies: 11
Views: 245

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: Generic STM32F103
Topic: I2C on the STM32F103C8T6
Replies: 11
Views: 245

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: 23
Views: 4133

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: Generic STM32F103
Topic: I2C on the STM32F103C8T6
Replies: 11
Views: 245

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: Generic STM32F103
Topic: I2C on the STM32F103C8T6
Replies: 11
Views: 245

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...
by Fingolin
Sun May 21, 2017 2:48 pm
Forum: Generic STM32F103
Topic: I2C on the STM32F103C8T6
Replies: 11
Views: 245

Re: I2C on the STM32F103C8T6

This may be a really stupid question, but can anyone tell me where the Wire.h for the stm32 is located?
by Fingolin
Sun May 21, 2017 2:47 pm
Forum: Libary request
Topic: MPU-6050 (I2C) Library
Replies: 23
Views: 4133

Re: MPU-6050 (I2C) Library

Hi Garindo,
I am working on a similar matter and would be very happy to share!
Currently I have auto-leveling working with arduino but I have trouble moving to the stm32 board.
If u want I can email you my code? (or post it here of course)
by Fingolin
Wed May 17, 2017 2:39 pm
Forum: Generic STM32F103
Topic: I2C on the STM32F103C8T6
Replies: 11
Views: 245

Re: I2C on the STM32F103C8T6

Thank you for your quick answer and the clarification, I was not aware of that :D
I will click thorugh the wiki and propably come back with a few more questions :D
by Fingolin
Wed May 17, 2017 1:49 pm
Forum: Generic STM32F103
Topic: I2C on the STM32F103C8T6
Replies: 11
Views: 245

I2C on the STM32F103C8T6

Hi, I am currently working on a quadrocopter project. I started it with and Arduino Board, but since of the higher speed I moved to this board. I managed to uplaoad sketches and everything seems to work pretty solid so far. Now I want to import my sketch to this board starting with the IMU (6050) wh...

Go to advanced search