Skip to content
University of California, DavisMechanical and Aerospace Engineering

AEMS / Interactive learning

Mechatronics for manufacturing.

Manufacturing machines bring together precision mechanisms, sensors, controllers, and actuators.

A CNC machine turns a toolpath into coordinated motion. Explore the principles behind that motion, from embedded code and timing to position measurement, feedback, and motor drives. Change a setting and consider what it means for the machine, the tool, and the part.

The controller has a plan. The machine has inertia.

From code to a cut

The ideas behind precise motion.

A commanded position enters a controller. A motor and drive move the machine axis. An encoder measures position and returns it to the controller as feedback.
A conceptual position-control loop. The learning tools explore its underlying ideas.

Choose a system. Follow what happens.

9 simulators · 2 calculators

AVR architecture

AVR Architecture Explorer

Follow buses, memory, and the ALU to understand how embedded controllers process commands and sensor data.

AVR assembly

AVR CPU & Assembly Lab

Step through instructions and registers, the building blocks of embedded machine-control logic.

Timers

Timer Lab

Connect clock ticks and compare events to the regular timing needed for sensing and control.

Interrupts

Timer Interrupt Lab

Follow timed events into an interrupt routine, a building block for sensing and actuator updates.

Encoders

Encoder & Speed Lab

Read quadrature signals to track spindle rotation or axis motion through counts and measured speed.

Position sampling

Position Counter & Sampling Lab

Explore how sample timing and counter wraparound change the motion a controller thinks it sees.

Frequency response

Frequency Response Lab

Connect gain and phase to how a machine axis responds to changing motion commands.

Position control

Position Control Lab

Investigate following error, feedback, and feedforward in precise tool or workpiece positioning.

Motor drives

Motor & Drive Lab

Explore PWM, H-bridges, and three-phase fields behind electrically driven machine motion.

Timer setup

Timer Calculator

Choose timer settings for periodic sensing or control, then inspect the generated Arduino code.

Measurement error

Speed Measurement Error Calculator

Compare pulse-counting and timing errors when estimating spindle or motor speed.

These are learning models. Read the notes in each simulator for the assumptions and limits of its results. The card illustrations summarize the main concepts; they are not screenshots of the tools.