liveBook · Manning

Frequency

As explained in Robotics for Programmers

Frequency is the number of repetitions of a periodic cycle per unit of time.

Frequency measures how many times a periodic cycle repeats per second. Hertz (Hz) is cycles per second; kilohertz (kHz) represents thousands of cycles per second. section 3.4.1

For a repeating signal, frequency and period are inverses: period = 1 / frequency, while frequency = 1 / period. A higher frequency means shorter cycles. section 3.4.1

In pulse-width modulation (PWM), frequency determines how quickly a digital output switches between on and off. Duty cycle separately determines the percentage of each cycle spent on, influencing average delivered power. section 3.4.1

A 1 kHz PWM signal

A 1 kHz signal completes 1,000 cycles per second, so each cycle lasts 1 millisecond. Toggling manually in software requires at least two state changes per cycle, making precise timing difficult when other robot tasks must also run. section 3.4.1

How Robotics for Programmers covers it

How deep it goes
Defines frequency, relates it to period, and explains PWM timing constraints without deriving hardware implementation details.
Examples
Uses PWM signals, a 1 kHz timing example, and software toggling to demonstrate frequency and timing.
What you can do after
Operate PWM through a frequency setting while relating cycle duration and duty cycle to output timing.
How it connects
Connects frequency with period, pulse-width modulation, duty cycle, digital outputs, actuators, and real-time behavior.

Also explained in

Compare how 9 books explain frequency →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Robotics for Programmers. The section links point to the parts of the book it draws on.