Anti-Phone-Distraction Machine

by Andrew931005 in Circuits > Arduino

79 Views, 0 Favorites, 0 Comments

Anti-Phone-Distraction Machine

IMG_0445.jpg
IMG_0444.jpg

Anti-Phone distraction machine

This is a machine that reminds the user about the use of phones during times when they are meant to focus.

This machine’s purpose is to help people keep in mind that they are not supposed to use their phones to send text messages or use their phones in any way when they are supposed to focus, for example when they should focus on studying for a test.

This project was inspired by the project ANTiDISTRACTION: the Smartphone Holder That Helps You Focus, while changing the functions below:

Changing the rotating plate to a structure where the device will show different signs depending on how many times you try to obtain your phone. Changing the rounds the motor runs from the original three rounds to five rounds to achieve a more obvious warning.

The supplies used:

Arduino Leonardo*1

5V stepper motor*1

Breakout board*1 (To connect the motor to the Arduino board) Ultrasonic sensor*1

Female-to-male Dupont wires*10 USB-A to MicroUSB cable*1 (To connect the Arduino board to the computer) Portable power bank*1 (Can be replaced by a phone charger or any safe and useable power sources)

Cardboard (For the body of the device. Can be replaced by any strong material)

Glue and tape (Can be replaced by an adhesive or other tools able to connect the material used for the body of the device.)

Thin string (To pull the signs up)

Software (Arduino IDE)

Step 1: Assembling the Arduino Circuit

IMG_0448.jpeg

Materials needed:

Arduino Leonardo*1

5V stepper motor*1

Breakout board*1

Ultrasonic sensor*1

Female-to-male Dupont wires*10

Laptop or any computer capable of running Arduino.

Steps:

Connect the stepper motor to the breakout board (Only one way to connect)

Connect the breakout board to the Arduino board

- (- on the breakout board-->GND on the Arduino board)

- (+ on the breakout board-->3.3V in the Arduino board)

- (IN1→8 on the Arduino board)

- (IN2→~9 on the Arduino board)

- (IN3→~10 on the Arduino board)

- (IN4→~11 on the Arduino board)

Connect the ultrasonic sensor to the Arduino board

- (GND→GND on the Arduino board)

- (Echo→~6 on the Arduino board)

- (Trig→7 on the Arduino board)

- (VCC→5V on the Arduino board)

Make sure that the cables are arranged in the correct order so that no technical errors or dangerous malfunctions occur before advancing to the next step.

Step 2: Assembling the Machine

IMG_0447.jpeg

Make a container using the material prepared with two holes on the top for the ultrasonic sensor (Make sure that the sensor points up and is in front of the phone placement position, and also two more holes in the back for the USD cable to come out and for the motor to be exposed outside.)

Put the Arduino device assembled in the previous step into the container with the ultrasonic sensor in the holes on the top and with the motor and USB cable coming out from the back. (Let the motor be as close to the middle and as stable as possible to prevent unstable operations.)

Attach the string to the stepper motor and make sure it tangles when the motor runs.

Make sure to seal the container and keep it as stable and in one piece as possible.

​Step 3: the Code

Step 4: Test Running and Safety Precautions

Test run the whole process and make sure no machinery malfunctions occur, also add any stabilizing improvements to ensure the quality and safety of the device.

Do not change the codes for the motor to too many rounds, making the string tangle in the device and cause the motor to break down.

Enjoy the project!