Get arduino uno
go to https://www.arduino.cc/en/Main/Software and download
plug in usb-c cable into arduino and laptop
-----------------------------------------------------------------------------------------------------
For windows laptop: click on lower left windows icon and click on settings icon looks like a gear. in the search, type in 'network' go to "Network status" and then click on "Ethernet" click on "Change adapter options" Now you are at Control Panel and click on "Device Manager" then you get "Device Manager" window. plug in usb-C into laptop and arduino and then Ports (COM & LPT) will now show up. double click on it and will see arduino Uno (COM3) and the com port it is using which in this case was COM3.
Now go back to IDE click on Tools->Port->COM3:xxx
-----------------------------------------------------------------------------------------------------
Now click on File->Examples->01:Basics->Blink, which will make one of the LED's blink. click on check mark on the Arduino app which compiles the sketch
Hover over download icon, which looks like sideways arrow and led will blink once a second.
this verifies that the arduino works
-----------------------------------------------------------------------------------------------------
File->examples->Servo->Sweep (knob means we have potentiometer with volume control). sweep means it sends servo shaft to go forward back.
read instructions to find out how to use Arduino
https://www.arduino.cc/en/Tutorial/BuiltInExamples
https://www.arduino.cc/en/Tutorial/LibraryExamples (contains servo example)
black wire is 0 volts, red is 5 volts, yellow so put red wire into 5V on arduino and black wire into GND and yellow into pin 9 (based on code in code which says the following;)
myservo.attach(9) // attaches the servo on pin 9 to the servo object
push the reset button which is the brown button in upper right corner and the servo should move back and forth
Select the appropriate download for your PC (mac or windows)
Select the "JUST DOWNLOAD" to the left of the "CONTRIBUTE & DOWNLOAD" button
Click on the arduino-1.8.7-macosx.zip file if you are on a Mac and it will install the "Arduino" application above
Then on the Arduino menu at the top left of the screen, select File->Examples->Servo->Sweep