준호씨의 블로그
MPU-6050 configuration with library 본문
After I uploaded MPU-6050 soldering and testing movie (https://www.youtube.com/watch?v=iFp8aIoDzwI http://junho85.pe.kr/932)). Someone asked me "how to change the range of the accelerometer and gyroscope to 8g and 500 degrees / sec?"
I didn't know it is configurable before that question. So I searched and found it could be possible.
http://forum.arduino.cc/index.php?topic=151048.msg3565997#msg3565997
But it looks like to use MPU6050 library.
It was not MPU6050_tockn library
MPU6050_tockn is registered at Library Manager. But in 1.2.1, it does not have accelerometer and gyroscope configuration.
https://github.com/tockn/MPU6050_tockn
use MPU6050 library of i2cdevlib
https://github.com/jrowberg/i2cdevlib/blob/master/Arduino/MPU6050/MPU6050.h
If you want to change the range of the accelerometer and gyroscope, write code like below.
accelgyro.setFullScaleAccelRange(MPU6050_ACCEL_FS_8);
accelgyro.setFullScaleGyroRange(MPU6050_GYRO_FS_500);
Warning
I haven't tested yet
'메이커' 카테고리의 다른 글
Arduino - CC1101 모듈 관련 정보 조사 (0) | 2018.07.03 |
---|---|
레고부스트 시작하기. 미니 로봇과 자동차 예제 만들기 (0) | 2018.05.29 |
Arduino - DHT11 온습도 센서 (0) | 2018.05.17 |
Arduino - MPU-6050 (가속도 및 자이로센서) 납땜 및 테스트 해보기 (0) | 2018.05.14 |
RF 분석 (해킹) 관련 정보 수집 (0) | 2018.05.13 |