Read an angular encoder without losing a revolution or reversal
Angular position requires a reference and a positive rotation direction. This packet starts at an unwrapped350° with positive counterclockwise rotation. An encoder reports the same direction as an angle between 0° and 360°, but that wrapped coordinate discards the number of full turns. A jump from 350° to 20° can be a coordinate wrap rather than a 330° clockwise rotation.
Learning outcome: Compare a steady wrap, an interior reversal and a zero-velocity endpoint. Preserve raw wrapped samples, disclosed unwrapped coordinates, signed displacement and swept angle. Explain which conclusions rely on the known generator rather than the samples alone.
Starting recap
Declare the axis, angular units, recipient and valid contact or material branch. Distinguish supplied shape factors from independently measured inertia.
All lessons are open directly. Your saved experiments remain when you leave and return.
Try
With ω0=30°/s and α=0, the final unwrapped angle at 4 s is 470° but the encoder reads110°. The true displacement is 120°, whereas simply subtracting110−350 would give−240°.
Open the experimentPredict
An encoder coordinate wraps from 350° to 20°. Without more information this alone:
Experiment
Compare a steady wrap, an interior reversal and a zero-velocity endpoint. Preserve raw wrapped samples, disclosed unwrapped coordinates, signed displacement and swept angle. Explain which conclusions rely on the known generator rather than the samples alone.
Compare wrapped readouts with unwrapped angular motion
Worked teaching model · synthetic values · Fixed-axis point starts at unwrapped angle 350 degrees; constant selected alpha holds over 0–4 s. Instrument reports angles modulo 360 degrees at integer seconds. Generator is disclosed; wrapped samples alone do not uniquely establish accumulated revolutions.
Reset keeps your prediction, captures and practice history.
Disclosed unwrapped model and sampled encoder readings
Unlike graph quantities rescale independently; read units and values, not screen angles. 1: unwrapped generator (solid).2: wrapped encoder samples (filled markers). Joined curves show the supplied model, not additional observations.
Equivalent numerical coordinates for Disclosed unwrapped model and sampled encoder readings
unwrapped generator
| time (s) | angle (degrees) |
|---|---|
| 0 | 350 |
| 0.05 | 352.962 |
| 0.1 | 355.85 |
| 0.15 | 358.663 |
| 0.2 | 361.4 |
| 0.25 | 364.063 |
| 0.3 | 366.65 |
| 0.35 | 369.163 |
| 0.4 | 371.6 |
| 0.45 | 373.962 |
| 0.5 | 376.25 |
| 0.55 | 378.462 |
| 0.6 | 380.6 |
| 0.65 | 382.663 |
| 0.7 | 384.65 |
| 0.75 | 386.563 |
| 0.8 | 388.4 |
| 0.85 | 390.163 |
| 0.9 | 391.85 |
| 0.95 | 393.462 |
| 1 | 395 |
| 1.05 | 396.462 |
| 1.1 | 397.85 |
| 1.15 | 399.163 |
| 1.2 | 400.4 |
| 1.25 | 401.563 |
| 1.3 | 402.65 |
| 1.35 | 403.663 |
| 1.4 | 404.6 |
| 1.45 | 405.462 |
| 1.5 | 406.25 |
| 1.55 | 406.962 |
| 1.6 | 407.6 |
| 1.65 | 408.163 |
| 1.7 | 408.65 |
| 1.75 | 409.063 |
| 1.8 | 409.4 |
| 1.85 | 409.663 |
| 1.9 | 409.85 |
| 1.95 | 409.962 |
| 2 | 410 |
| 2.05 | 409.963 |
| 2.1 | 409.85 |
| 2.15 | 409.663 |
| 2.2 | 409.4 |
| 2.25 | 409.063 |
| 2.3 | 408.65 |
| 2.35 | 408.163 |
| 2.4 | 407.6 |
| 2.45 | 406.962 |
| 2.5 | 406.25 |
| 2.55 | 405.462 |
| 2.6 | 404.6 |
| 2.65 | 403.663 |
| 2.7 | 402.65 |
| 2.75 | 401.563 |
| 2.8 | 400.4 |
| 2.85 | 399.163 |
| 2.9 | 397.85 |
| 2.95 | 396.462 |
| 3 | 395 |
| 3.05 | 393.462 |
| 3.1 | 391.85 |
| 3.15 | 390.163 |
| 3.2 | 388.4 |
| 3.25 | 386.563 |
| 3.3 | 384.65 |
| 3.35 | 382.663 |
| 3.4 | 380.6 |
| 3.45 | 378.462 |
| 3.5 | 376.25 |
| 3.55 | 373.962 |
| 3.6 | 371.6 |
| 3.65 | 369.163 |
| 3.7 | 366.65 |
| 3.75 | 364.063 |
| 3.8 | 361.4 |
| 3.85 | 358.663 |
| 3.9 | 355.85 |
| 3.95 | 352.962 |
| 4 | 350 |
At most 82 representative computed coordinates including endpoints; the plotted curve can use a finer grid. A table of a revealed generator is not independent measurement evidence.
wrapped encoder samples
| time (s) | angle (degrees) |
|---|---|
| 0 | 350 |
| 1 | 35 |
| 2 | 50 |
| 3 | 35 |
| 4 | 350 |
At most 82 representative computed coordinates including endpoints; the plotted curve can use a finer grid. A table of a revealed generator is not independent measurement evidence.
| Quantity | Value | Unit |
|---|---|---|
| Final unwrapped angle | 350 | degrees |
| Final wrapped encoder readout | 350 | degrees |
| Signed angular displacement | 0 | rad |
| Total swept angle | 2.0944 | rad |
| Final angular velocity | -1.0472 | rad/s |
| Average angular velocity | 0 | rad/s |
| Interior reversal exists | 1 | flag |
| Interior reversal time | 2 | s |
A wrap in the displayed coordinate is not necessarily a physical reversal.
For constant alpha, theta=theta0+omega0 t+alpha t²/2 and omega=omega0+alpha t. Convert degrees by pi/180 before using arc-length or SI dynamic formulas. Split swept angle at an interior zero of omega; a zero exactly at the endpoint adds no reversed segment. These known generator settings resolve the history, but unqualified sparse modulo readings alone need not do so.
Predict before inspecting the values. Save contrasting records with assumptions and one alternative explanation. This virtual display does not certify practical measurement technique.
A wrap in the displayed coordinate is not necessarily a physical reversal.
For constant alpha, theta=theta0+omega0 t+alpha t²/2 and omega=omega0+alpha t. Convert degrees by pi/180 before using arc-length or SI dynamic formulas. Split swept angle at an interior zero of omega; a zero exactly at the endpoint adds no reversed segment. These known generator settings resolve the history, but unqualified sparse modulo readings alone need not do so.
Captures preserve recipes and replay their calculated results. They are synthetic model evidence, not physical measurements.
Understand
Apply
Public practice checks a specific claim. It does not establish independent mastery.
Why is a change of angle convention not a physical change of rotational direction?
Continue
Completion requires a saved prediction, at least one capture and a reflection. Presence checks do not grade your reasoning.
Skipping retains experiments and awards no mastery.
Save a science backup or import one
Science work is stored locally in this browser, separately from mathematics and AI. It does not sync automatically. Use this science-only backup; this checkout's older all-subject export does not include science.
A legacy file is available only when the complete snapshot fits the 36 MB limit. For larger snapshots, prepare a complete file set below; never discard notebooks to make a smaller file.
Matching imported notebook drafts replace their current drafts. Omitted lessons and known first attempts remain. Export your current work first if you want to retain both drafts.
Complete file sets and course backups
A file set can hold more work than one science file. Keep its manifest and every part together. Each file is limited to 36 MB. This format needs this version of LearnAI or a compatible newer version; older versions can use only the legacy single-file backup above.
The set includes every saved science course and global continuation at this moment. Later edits need a new export. A conflicting tab exports its own visible work, which may differ from saved work in another tab.
0 file(s) selected. File order and filenames do not determine identity. Missing, changed or conflicting parts block the entire restore; no good part is applied by itself.
Science storage: loading. No account or remote computation is required.