Phone Pick-Up Nod of Disapproval With Arduino

by EstBuilds in Circuits > Arduino

149 Views, 1 Favorites, 0 Comments

Phone Pick-Up Nod of Disapproval With Arduino

IMG_2561.jpeg
Phone Pick-Up Nod of Disapproval

I spend a lot of time building things, but I sometimes find myself distracted on my phone. When I saw this contest, I wanted to find a funny yet effective way to help me realize that I picked up my phone. After creating a horribly modeled head that nods after you pick up your phone, I would have to say I did a pretty good job.

Supplies

Computer

3D Printer

Filament (PLA)

Arduino Nano

Servo Motor

Jumper Wires

Copper Tape

Hot Glue or Super Glue

Electrical Tape

Scissors

USB Mini Cable

Optional - Solder

Optional - 9V Battery and 9V Battery Connector

3D Printing

Download, print, and clean all three parts below. The parts were designed in TinkerCad.

Copper Tape and Wires

IMG_9734.jpeg
IMG_9735.jpeg
IMG_9736.jpeg

First, cut two pieces of copper tape about 8 mm by 25 mm. Next, cut and strip the end of two female jumper wires. Lastly, solder or use electrical tape to connect the copper tape and wire just like the picture.

Attach Copper Tape

IMG_9739.jpeg
IMG_9740.jpeg

Put the copper tape through the slit of the base piece and stick it on just like the picture. Make sure the two pieces of tape are not touching. Then, weave the wire through the base piece.

Servo Motor and Cap

IMG_9742.jpeg

Put the three wires of the servo through the hole in the cap piece and then glue the servo to the piece. Cut and strip the wires of the servo and three female jumper wires. Next, solder or twist the corresponding servo wires with each jumper wire and then wrap the exposed wire with electrical tape

Wire Up 1

IMG_9744.jpeg
IMG_9745.jpeg

First, plug one wire from the copper tape into a GND pin and the other into the 12 pin. It doesn’t matter which wire goes to which. Next, plug the yellow servo signal wire into pin 13, the red servo voltage wire into the 5V pin, and the black servo GND into the remaining GND pin.

Wire Up 2

IMG_9751.jpeg

If you are planning on powering the Arduino with the USB Mini cable, you can skip this step. To power the Arduino with a battery, you will have to split a GND wire because there are only two GND pins, but three are need when powering with a battery. Like the picture, you can strip the the wire from the servo GND wire, the copper tape GND, and a female jumper cable. Twist all three together, and then solder and/or use electrical tape.

Upload Code

IMG_9746.jpeg

Upload the following code onto your Arduino Nano. After you upload the code, you can put the cap onto the base.


#include <Servo.h>


const int copperTapePin = 12;

const int servoPin = 13;

Servo myServo;

int copperTapeState;


void setup() {

pinMode(copperTapePin, INPUT_PULLUP);

myServo.attach(servoPin);

myServo.write(90);

}


void loop() {

copperTapeState = digitalRead(copperTapePin);


if (copperTapeState == HIGH) {

myServo.write(0);

delay(500);

myServo.write(90);

delay(500);

} else {

myServo.write(90);

}

}

Preparing the Head

IMG_9747.jpeg

Cut one of the pieces that comes with the servo motor so it fits in the head piece, and then glue it in.

Some More Copper Tape

FullSizeRender.jpeg
FullSizeRender.jpeg

Put a piece of copper tape on the back of your phone case, so that is closes the circuit once it is place down on the base. I would also recommend adding larger squares of copper tape on the base for a more consistent result. Again, make sure the two pieces of copper tape on the base are not touching.

Thank You!

IMG_2561.jpeg

Sometimes all it takes is a 3D printed nodding head to get you off your phone. Thank you for reading along and be sure to comment if you have any questions about the process.