New answers tagged mpu6050
0
Troubleshooting I2C issues can be frustrating. In order to figure out the problem, I recommend you construct the simplest possible Arduino sketch, using just the two sensors that seem to have a problem working together. You should be able to write a very simple program that does nothing but acquire a simple value from each sensor, say 2 times/second.
Once ...
0
Use trigonometry (sin() and cos()) functions to get the right x and y coordinates.
I would consider replacing your drawLine() command with something like this (untested) assuming the tiltAngle is in degrees from -90 to +90 (with 0 degrees is straight up) and you want to draw a line at this angle from the origin (63, 63) with a radius of 64.
float ...
Top 50 recent answers are included
Related Tags
mpu6050 × 178arduino-uno × 76
i2c × 27
accelerometer × 24
gyroscope × 23
arduino-mega × 21
serial × 8
programming × 8
motor × 8
arduino-micro × 8
sensors × 7
arduino-nano × 6
interrupt × 6
nrf24l01+ × 6
pid × 6
esp32 × 5
imu × 5
esp8266 × 4
nodemcu × 4
sd-card × 4
wire-library × 4
multiplexer × 4
drone × 4
arduino-ide × 3
c++ × 3