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
+11
-8
@@ -387,13 +387,16 @@ Robot (`robot/README.md` has detail):
|
||||
|
||||
Remote (`remote/README.md` has detail):
|
||||
- Pins in `remote/Config.h`, taken from the old remote sketch: radio CE 9 /
|
||||
CSN 10, sticks A0–A5, Nextion on **Serial2 (7/8)**, confirmed on the real remote. The MPU6050 is on
|
||||
**Wire2 (25/24, solder pads under the Teensy 4.0)**, since A4/A5 = Wire's SDA/SCL are stick pins; that's
|
||||
the owner's choice and needs rewiring the MPU. Which stick axis is on
|
||||
which pin is still unknown.
|
||||
CSN 10, Nextion on **Serial2 (7/8)**, confirmed on the real remote. Owner's choice
|
||||
(2026-11-17): edge headers only, no pads underneath. So the MPU6050 is on **Wire (18/19)**
|
||||
and the two stick wires that were on A4/A5 (18/19) move to **A7/A8 (21/22)**: sticks
|
||||
`{ A0, A1, A2, A3, A7, A8 }`. A6 (20) is kept for the battery divider. Checked on the real
|
||||
remote (2026-11-17): left stick X/Y/twist = A3/A7/A8, right = A0/A1/A2, all inverted but the
|
||||
right twist; each stick only moves about ±700 counts from centre, so run the sweep
|
||||
calibration. The IMU axis defaults are right. Its MPU6050 (likely a clone) reads all zeros
|
||||
until it gets a full device reset, so `RemoteIMU::begin()` resets it first. `RobotIMU` only
|
||||
wakes its chip (owner-verified code, not changed): check the robot's IMU once it's flashed.
|
||||
- `STICK_INVERT[]`, calibration defaults, deadzones, expo.
|
||||
- `IMU_AXIS_FROM_CHIP` / `IMU_AXIS_SIGN` depend on how the MPU6050 is
|
||||
mounted in the handset.
|
||||
- The Nextion must have `bauds=115200` in Program.s, and the HMI must match
|
||||
`NEXTION.md`. The working HMI is `remote/remote.HMI`, generated by
|
||||
`scripts/make_remote_hmi.py` (owner-approved design, 2026-11-17; the old 6-page one in
|
||||
@@ -429,8 +432,8 @@ Remote (`remote/README.md` has detail):
|
||||
UPDATE DISPLAY (page `upload`).
|
||||
- Sticks on **A0–A5**, contiguous (`analogInPin + i`). On the Teensy 4.0,
|
||||
A4/A5 are pins 18/19 = Wire SDA/SCL, which the MPU6050 needs. The old
|
||||
code had the MPU code disabled (`if (false)`). Owner's decision: keep
|
||||
the sticks, move the MPU to Wire2.
|
||||
code had the MPU code disabled (`if (false)`). Owner's decision: MPU on
|
||||
Wire (18/19), those two stick wires move to A7/A8 (21/22).
|
||||
- nRF24 on CE 9 / CSN 10, the same as `remote/Config.h`. It used
|
||||
RF24Network on channel 90, which the new protocol doesn't.
|
||||
- Stick calibration was a 10 s min/max sweep saved to EEPROM, output
|
||||
|
||||
Reference in new issue
Block a user