2026 remote: wiring as found on the real remote, IMU reset fix
- Nextion is on Serial2 (pins 7/8) - already in the last commit; docs updated. - MPU6050 on Wire (18/19) so everything is on the edge headers (owner's choice); the two stick wires from 18/19 move to A7/A8 (21/22). - Stick mapping checked on the real remote: left stick X/Y/twist on A3/A7/A8, right on A0/A1/A2, all inverted but the right twist. - RemoteIMU: full device reset before waking. The remote's MPU6050 (likely a clone) answers and wakes without it but every data register reads 0. Axis defaults confirmed (+pitch nose down, +roll right side down). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0b836af8de
commit
aeccba3be7
4 files changed
+41
-39
No files matched your search
@@ -18,8 +18,15 @@ static bool writeReg(uint8_t reg, uint8_t val) {
|
||||
bool RemoteIMU::begin() {
|
||||
IMU_WIRE.begin();
|
||||
IMU_WIRE.setClock(400000);
|
||||
ok_ = writeReg(REG_PWR_MGMT_1, 0x00); // wake out of sleep
|
||||
// Full device reset first: the remote's MPU6050 (likely a clone) answers
|
||||
// and wakes without it, but every data register reads 0 until it has been
|
||||
// reset (found on the real remote, 2026-11-17).
|
||||
ok_ = writeReg(REG_PWR_MGMT_1, 0x80);
|
||||
if (!ok_) return false;
|
||||
delay(100);
|
||||
ok_ = writeReg(REG_PWR_MGMT_1, 0x01); // wake, clocked from the X gyro PLL
|
||||
if (!ok_) return false;
|
||||
delay(50);
|
||||
writeReg(REG_CONFIG, 0x03); // 44 Hz DLPF: a handheld remote doesn't need more bandwidth
|
||||
delay(50);
|
||||
|
||||
|
||||
Reference in new issue
Block a user