前回作成したラジコンカーやドローンなどの動きや姿勢などを把握するのに有用なセンサとして3軸ジャイロや加速度センサーがあります。今回紹介するMPU-6050は3軸ジャイロと加速度の両方を取得することができるセンサです。安価な分、少し精度につい ...
#include <PID_v1.h> //From https://github.com/br3ttb/Arduino-PID-Library/blob/master/PID_v1.h #include "MPU6050_6Axis_MotionApps20.h" //https://github.com/jrowberg ...
// The accuracy is 16-bits. // Temperature sensor from -40 to +85 degrees Celsius // 340 per degrees, -512 at 35 degrees. // At power-up, all registers are zero, except these two: // Register 0x6B ...