Devices & Components
Arduino Uno Rev3
DC motor (generic)
5 mm LED: Green
Resistor 330 ohm
Rotary potentiometer (generic)
Jumper wires (generic)
Buzzer
Pushbutton Switch, Momentary
Dual H-Bridge motor drivers L293D
Breadboard voltage regulator
Breadboard (generic)
String
Cardboard
Hardware & Tools
Plier, Cutting
Hot glue gun (generic)
Solder Wire, Lead Free
Soldering iron (generic)
Scissor, Electrician
Popsicles
Super glue
Barbecue sticks
Project description
Code
Crane code
arduino
Change it the way you want it.
1int speedControl = 2; 2int buzzer = 3; 3int speed = 255; 4int tone1 = 300; 5int tone2 = 600; 6 7void setup() { 8 pinMode(speedControl, OUTPUT); 9 pinMode(buzzer, OUTPUT); 10 digitalWrite(speedControl, LOW); 11 digitalWrite(buzzer, LOW); 12} 13 14void playBuzzer(int firstTone, int secondTone) { 15 tone(buzzer, firstTone); 16 delay(500); 17 tone(buzzer, secondTone); 18 delay(500); 19} 20 21void loop() { 22 analogWrite(speedControl, speed); 23 playBuzzer(tone1, tone2); 24}
Downloadable files
Schematics crane project
It shows how the components are connected.
Schematics crane project

Comments
Only logged in users can leave comments