Sensors and Actuators
Smart Systems and Sensors To create the image above you will need the following items; Arduino Uno USB Lead 3 Breadboard Jumper Wires Servo Motor *SG-90 Servo motors are electronic devices and rotary or linear actuators that rotate and push parts of a machine with precision. Servos are mainly used on angular or linear position and for specific velocity, and acceleration. To find the code for the servo motor, open Arduino in File > Examples > Servo > Sweep . Before connecting up the devices must find out what the wires on the servo motor means and where it must be connected on the Arduino. To find this source is on the internet, snipped is shown below. GND > Brown Wire PWM > Orange Wire +5V > Red Wire Within the sweep code the for loop has three conditions for its position; pos = 0 *start at 0 pos <= 180 *continuation condition if the value is less than or equal to 180 pos += 1 *add 1 to the pos The first loop starts at...