Skip to content
RoboLearn
Not completed

Pneumatics and other actuators

ActuatorsIntermediate20 minPlay a tune ↓Before this: Motor drivers and H-bridges

What you’ll learn

  • How pneumatics move things with compressed air
  • How to drive solenoids safely
  • How to use buzzers and lights as outputs

Pneumatics

A pneumatic cylinder pushes a piston out when compressed air enters. You need an air supply (a compressor or a tank, or a hand pump), tubing, and a solenoid valve that an electrical signal opens and closes. Pneumatics are fast and powerful, and good for punching, lifting and soft grippers. FIRST and VEX robots often use them.

Solenoids

A solenoid is a coil with a metal plunger: power on, the plunger pulls in. It’s used for locks, valves and “kickers”.

  • Needs much more current than a pin can give: switch it with a transistor or MOSFET.
  • Add a flyback diode across the coil. When the coil switches off it produces a voltage spike that can destroy the transistor, and the diode safely absorbs it. The same applies to relays and motors.

Buzzers

Type How to use
Active buzzer Beeps at one pitch when given power: digitalWrite(pin, HIGH)
Passive buzzer (or small speaker) Plays any pitch with tone(pin, frequency)

Lights

  • Single LEDs with resistors (see your first circuit).
  • Addressable RGB LEDs (WS2812, “NeoPixels”): a whole strip controlled from one pin, any colour per LED, using the Adafruit NeoPixel or FastLED library.

Finished this lesson?