hi all of you.
I have a library with name GY-521 for Gyroscope module .
but I don't know how to use it. especially getGyroX , getAccelX or another get...
hi all of you.
I have a library with name GY-521 for Gyroscope module .
but I don't know how to use it. especially getGyroX , getAccelX or another get...
The MPU-6050 sensor operates at 3.3V.but the GY-521 module contains a 3.3V regulator so the module should be supplied with 5V on the VCC pin. Since the module uses I2C which is open-drain with pull-ups to 3.3V, level translation is generally not considered necessary when using it with a 5V MCU.
Hi.
my problem in not this.
I can not use getGyroX or getAccelZ functions.
B4R always this error. GetGyroX(_gx as return) as float.
i dont know _gx as return.
my source code is in below
Sub Process_Globals
Public Serial1 As Serial
Public Gyroscope As GY521
Public GX As Float
Public x As RandomAccessFile
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
AddLooper("GetGyroscope")
End Sub
public Sub GetGyroscope
Gyroscope.readGyro GX=Gyroscope.getGyroX
End Sub
If you use Arduino- connect SCL to A5, SDA to A4, 3.3V and ground
If you use Wemos or Nodemcu - connect SCL To D2 And SDA To D1.
The MPU is using the rWire library so check where to connect for rWire in any other board.
If you use Arduino- connect SCL to A5, SDA to A4, 3.3V and ground
If you use Wemos or Nodemcu - connect SCL To D2 And SDA To D1.
The MPU is using the rWire library so check where to connect for rWire in any other board.
Hi
I used your library.
When I want to upload show this error.
Can you please look into the matter,
SoftwareI2C.cpp:31:10: fatal error: SoftI2CMaster.h: No such file or directory
#include <SoftI2CMaster.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
I want to make a quadqupter and this library is very very necessary for me.
Hi
I used your library.
When I want to upload show this error.
Can you please look into the matter,
SoftwareI2C.cpp:31:10: fatal error: SoftI2CMaster.h: No such file or directory #include <SoftI2CMaster.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
I want to make a quadqupter and this library is very very necessary for me.