lucas_fernando_maker
Published © GPL3+

Use Arduino UNO to control a crane

Amazing crane made out of barbecue sticks that is controlled by Arduino UNO.

BeginnerShowcase (no instructions)952
Use Arduino UNO to control a crane

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Dual H-Bridge motor drivers L293D
Texas Instruments Dual H-Bridge motor drivers L293D
×1
DC motor (generic)
×1
5 mm LED: Green
5 mm LED: Green
×2
Resistor 330 ohm
Resistor 330 ohm
×2
Pushbutton Switch, Momentary
Pushbutton Switch, Momentary
×2
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
Breadboard voltage regulator
×1
Buzzer
Buzzer
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1

Hand tools and fabrication machines

Scissor, Electrician
Scissor, Electrician
Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free
Popsicles
Barbecue sticks
Plier, Cutting
Plier, Cutting
Hot glue gun (generic)
Hot glue gun (generic)
Super glue
String
Cardboard

Story

Read more

Schematics

Schematics crane project

It shows how the components are connected.

Code

Crane code

Arduino
Change it the way you want it.
int speedControl = 2;
int buzzer = 3;
int speed = 255;
int tone1 = 300;
int tone2 = 600;

void setup() {
  pinMode(speedControl, OUTPUT);
  pinMode(buzzer, OUTPUT);
  digitalWrite(speedControl, LOW);
  digitalWrite(buzzer, LOW);
}

void playBuzzer(int firstTone, int secondTone) {
  tone(buzzer, firstTone);
  delay(500);
  tone(buzzer, secondTone);
  delay(500);
}

void loop() {
  analogWrite(speedControl, speed);
  playBuzzer(tone1, tone2);
}

Credits

lucas_fernando_maker

lucas_fernando_maker

3 projects • 3 followers

Comments