Robotics & Arduino
Lesson 2 · Refinement

Same pins. Different jobs.

Recall the LED circuit.

  • The short leg, −, goes to GND.
  • The long leg, +, goes to a pin through a resistor.

What does that mean for the pin?

Recall the touch sensor.

We had three connections:

  • VCC (voltage supply COLLECTOR) or VIN (Voltage INPUT).
  • GND — the power return, −.
  • Signal — the sensor’s answer.

What does that mean for the pin?