Lafvin Smart Robot Kit - johnosbb/Automation GitHub Wiki

Connections

image

IO used

  • D2,D5 - Left Motor
  • D4,D6 - Right Motor
  • A1, A2 - Infra Red Sensors
  • D12, D13 - Ultra Sonic Detector: 12 [Input] = ULTRA_SONIC_TRIGGER_PIN, 13 [Output] = ULTRA_SONIC_ECHO_PIN
  • D10 - Ultra Sonic Servo - Uses PWM (Pulse Width Modulation) with the pin configured as an Output
  • D8, D9 - Soft I2C for Oled Display. The clock is on Pin 8, data is on Pin 9
  • Servo (via the Servo library): Uses Timer1 on Pin 10.
  • Motors (via analogWrite() on pins 5 and 6): Use Timer0.

Reference