Leonardo1inventor
Published

ArduSpot

A cardboard show spotlight controlled with a circuit on JLCPcb. Created all by myself.

IntermediateFull instructions provided73
ArduSpot

Things used in this project

Hardware components

High Brightness LED, White
High Brightness LED, White
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×2
Wire, Hook Up
Wire, Hook Up
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
9V battery (generic)
9V battery (generic)
×1
Snap-on Connector, For 1 9-V Battery
Snap-on Connector, For 1 9-V Battery
to connects to connections of the battery to the circuits
×1
Arduino Nano R3
Arduino Nano R3
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free

Story

Read more

Custom parts and enclosures

commander

to command spot

Schematics

circuit

to all

Code

all

C/C++
all
#include <Servo.h>

Servo myservo1;
Servo myservo2;
int pos1 = 0;
int pos2 = 0;

void setup() {
pinMode(9,INPUT);
pinMode(10,INPUT);
pinMode(11,INPUT);
pinMode(12,INPUT);
myservo1.attach (3);
myservo2.attach (5);
  // TheWirecontroller pcb buttons exits 9 10 11 12 i servo 3 5

}

void loop() {
  // put your main code here, to run repeatedly:
if (digitalRead (9) ==HIGH){
  myservo1.write(10);
}
if (digitalRead(10) ==HIGH){
  myservo1.write(-10);
}
if (digitalRead(11) ==HIGH){
  myservo2.write(10);
  }
if (digitalRead(12) ==HIGH){
  myservo2.write(-10);
  }
}

Credits

Leonardo1inventor
1 project • 0 followers

Comments