Arduino Sensor Shield V5 0 Manual -

Servo myservo; const int trigPin = 8; const int echoPin = 9; int pos = 0;

Overview

delay(50);

Cons

The Arduino Uno has limited current (approx 500mA via USB). If you stack a Sensor Shield + Motor Shield + 3 Sensors, you will brown out. Use a separate 5V BEC (Battery Eliminator Circuit) connected to the shield’s 5V header (but cut the trace to the Arduino’s 5V pin first). arduino sensor shield v5 0 manual