Skip to Content
Maestro Docs
Sim LabArduino

Arduino parts

Every part that works with the Arduino board, how to wire it, and how it behaves.

These parts are made to go with the Arduino Uno. Part names in the menu may differ slightly from the names here.

LED

A standard LED with realistic diode behaviour. Use a resistor in series. Wire the longer leg (anode) towards the pin.

Push button

A momentary switch. Hold the mouse button to keep it pressed. For the simplest wiring, connect it between a pin and GND and use INPUT_PULLUP.

Resistor, potentiometer and slide switch

  • Resistor: the normal resistor, drawn like a board part.
  • Potentiometer: a slider in Live controls sets the position. Read it with analogRead.
  • Slide switch: stays on or off until you flip it.

Buzzer

A buzzer is a 100 Ω load. It works out the frequency from the voltage across it and plays that tone. It goes silent about 50 ms after the signal stops, and only plays tones from about 20 Hz to 10 kHz. Use tone(pin, frequency).

Servo

Three pins: GND, V+ and PWM. It measures the pulse width: 544 µs is 0° and 2400 µs is 180°. The angle moves in steps of about 5°. Servo.write(120) reads about 122°. Pulses outside 300 to 3000 µs are ignored.

16×2 LCD (parallel)

A standard HD44780 display for the LiquidCrystal library.

  • Connect RS, E and D4 to D7 directly to Arduino pins. The display watches the board's pins, so pins that go through other parts are not followed.
  • It latches data when E falls.
  • The backlight pins (A and K) act as a load.

I2C LCD

A 16×2 display with an I2C backpack at address 0x27, wired to A4 (SDA) and A5 (SCL). Use the LiquidCrystal_I2C library: lcd.init(); lcd.backlight();.

RGB LED

A three-colour LED. Check the part's pins to wire each colour.

7-segment display

One digit with segments A to G and the decimal point. Wire each segment through a resistor.

10-LED bar graph and 8-way DIP switch

A bar of ten LEDs, and a bank of eight switches.

4×4 membrane keypad

Keys are 1 2 3 A / 4 5 6 B / 7 8 9 C / * 0 # D. Hold the mouse on a key to press it. A pressed key connects its row pin to its column pin.

Joystick

VERT and HORZ are 10 kΩ potentiometers, centred at about 512 with analogRead. SEL is pulled to GND when pressed, so use INPUT_PULLUP.

Light sensor (LDR) module

  • AO is an analogue output. A brighter room gives a different voltage. Set the lux in Live controls.
  • DO goes LOW when it is bright (when AO is below half the supply).

Temperature (NTC) module

The OUT pin is a divider with a 10 kΩ NTC thermistor (10 kΩ at 25 °C). Set the temperature in Live controls and read the voltage with analogRead.

Not available

Ultrasonic distance sensors (HC-SR04), stepper motors, relays, OLED displays, NeoPixel strips, DHT sensors, IR receivers and rotary encoders are not available on the Arduino yet.