DAT Deepak Solanki and Team

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

Madhav Institute of Technology and Science, Gwalior

(A Govt. Aided UGC Autonomous & NAAC Accredited Institute Affiliated to RGPV, Bhopal)

Department of Information Technology

Design and Thinking Lab (270406)

Skill Based Mini-Project


On
Bluetooth Controlled Devices

SUBMITTED BY:
Subhash Singh - 0901AD211062
Deepak Solanki - 0901AD223D02
Samridhi Sengupta - 0901AD211047
Tanvi Shah - 0901AD211063
Branch: Artificial Intelligence and Data Science
4th Semester

SUBMITTED TO:
Dr. Kritika Bansal
Dr. Priyanka Garg

1|Page
DECLARATION

We hereby declare that the Skill Based Mini-Project for the course Design and Thinking
Lab (270406) is being submitted in the partial fulfillment of the requirement for the award of
Bachelor of Technology in Artificial Intelligence and Data Science.
All the information in this document has been obtained and presented in accordance with
academic rule and ethical conduct.
Date:
Place: Gwalior

Subhash Singh - 0901AD211062


_________________
Deepak Solanki - 0901AD223D02
_________________
Samridhi Sengupta - 0901AD211047
_________________
Tanvi Shah - 0901AD211063
_________________

2|Page
ACKNOWLEDGEMENT

We would like to express our greatest appreciation to all the individuals who have helped and
supported us throughout this project. We are thankful to the whole Information Technology
department for their ongoing support during the experiments, from initial advice and
provision of contact in the first stages through ongoing advice and encouragement, which led
to the final report of this project.
A special acknowledgement goes to our colleagues who helped us in completing the project
and by exchanging interesting ideas to deal with problems and sharing the experience.
We wish to thank our professors Dr. Kritika Bansal and Dr. Priyanka Garg as well for their
undivided support and interests which inspired us and encouraged us to go our own way
without whom we would be unable to complete our project.
At the end, we want to thank our friends who displayed appreciation to our work and
motivated us to continue our work.

3|Page
ABSTRACT

Automating a gun firing using Arduino is a project that involves the use of an Arduino
microcontroller to control the firing mechanism of a gun. The project aims to provide an
automated solution for firing guns in a controlled and precise manner. The Arduino
microcontroller is programmed to receive input signals from various sensors such as pressure
sensors, accelerometers, and temperature sensors, and process them to determine when the
gun should fire. The project also involves the design and implementation of a firing
mechanism that is compatible with the Arduino microcontroller. The automated gun firing
system can be used in various applications, including military, law enforcement, and hunting.
The project demonstrates the use of modern technology in improving the precision, accuracy,
and safety of gun firing.
Overall, the purpose of this system is to enhance convenience, security, and automation of
guns to provide safety for the user controlling it.

4|Page
Contents
Micro Project : ............................................................................................................................. 6
I. Introduction ......................................................................................................................................6
II. Materials and Methods ................................................................................................................... 7
III. Results ............................................................................................................................................ 8
IV. Conclusion ...................................................................................................................................... 9
Macro Project : .......................................................................................................................... 10
I. Introduction ....................................................................................................................................10
II. Materials and Methods ................................................................................................................. 10
III. Results .......................................................................................................................................... 12
IV. Conclusion .................................................................................................................................... 12
Mini Project : ............................................................................................................................. 13
I. Introduction ....................................................................................................................................13
II. Materials and Methods ................................................................................................................. 14
III. Results .......................................................................................................................................... 16
IV. Conclusion .................................................................................................................................... 16

5|Page
Micro Project :
I. Introduction
The automation of toys using technology has always been an exciting area of exploration for
hobbyists and enthusiasts. In this project, we will explore the concept of automating a toy gun using
Arduino UNO and a servo motor. The Arduino UNO micro controller board will act as the brain of the
system, while the servo motor will provide the necessary power and precision to control the firing
mechanism of the toy gun.

The potential benefits of this technology include increased safety and efficiency when playing with
toy guns. By automating the gun, we can ensure that the gun will only fire when the proper
conditions are met, such as when the trigger is pulled, or when a specific sensor detects motion.

However, there are also risks associated with this technology. Improper use or modifications of the
automated toy gun could lead to accidents, especially if it falls into the wrong hands. Therefore, it is
essential to handle the toy gun with caution and to follow all safety guidelines when operating it.

Potential benefits:
 Increased safety: By automating the firing mechanism of the toy gun, we can ensure that
the gun will only fire under specific conditions, such as when the trigger is pulled or when a
specific sensor detects motion. This can reduce the risk of accidental discharge and improve
overall safety when playing with toy guns.

 Enhanced user experience: Automating a toy gun can provide a more interactive and
immersive experience for users, making playtime more engaging and exciting.

 Improved precision: The servo motor can provide greater precision and accuracy in the
firing mechanism of the toy gun, leading to a more consistent and reliable shooting
experience.

Risks:
 Safety concerns: If the toy gun is not handled properly, there is a risk of injury or harm. It is
important to follow all safety guidelines when operating the automated toy gun and ensure
that it does not fall into the wrong hands.

 Legal concerns: In some areas, it may be illegal to modify or automate a toy gun, so it is
important to research and comply with all local laws and regulations before starting the
project.

 Technical difficulties: Building and programming an automated toy gun using Arduino UNO
and a servo motor requires technical knowledge and skills. It may take some time to
troubleshoot and perfect the system, so it is important to have patience and persistence.

6|Page
II. Materials and Methods
List Of Materials

 Arduino UNO board

It is designed to be easy to use and suitable for beginners and advanced users alike. The
board features digital input/output pins, analog inputs, a USB interface for programming and
communication, and a power jack for supplying power to the board.

 Servo motor

A servo motor is a type of motor that is commonly used in robotics, automation, and other
control systems. It is designed to provide precise control over the motion of a mechanism,
with the ability to position the mechanism at specific angles.

 Breadboard

A breadboard, also known as a prototyping board, is a device used to build and test
electronic circuits without the need for soldering. It is essentially a plastic board with
multiple rows and columns of holes that can be used to insert electronic components and
wires to create a circuit.

 Jumper wires (male-to-female and male-to-male)

Jumper wires are short, flexible wires with connectors on both ends that are used to connect
electronic components or devices together. They come in different types and sizes, but two
of the most common types are male-to-female and male-to-male jumper wires.

 IP motion sensor

An IP motion sensor is a type of sensor used in security and automation systems that detects
movement in its surrounding environment and sends notifications or triggers an action over
the internet protocol (IP) network.

 Resistors

A resistor is an electronic component that is used to limit or regulate the flow of electrical
current in a circuit. It is a passive component, which means that it does not require an
external power source to function.

 Toy gun

A toy gun is a type of replica firearm that is designed for use in games or other recreational
activities. Toy guns can come in many different forms, including pistols, rifles, and machine
guns, and can be made from a variety of materials, such as plastic or metal. We used plastic
gun.

7|Page
These materials are essential for building the automated toy gun system. The Arduino UNO board
will serve as the main control unit for the system, while the servo motor will provide precision and
control for the firing mechanism. The breadboard and jumper wires will be used to make
connections between different components, and the IP motion sensor will detect the presence of
movement. The resistors will be used to regulate the flow of electrical current.

Software:
 Arduino IDE: The Arduino Integrated Development Environment (IDE) is the primary
software used for programming the Arduino UNO board. It provides a user-friendly interface
for writing, compiling, and uploading code to the board.

III. Results

The automated toy gun created using Arduino UNO and servo motor was able to detect motion
using the IP motion sensor and fire a shot from the toy gun. The servo motor was used to control the
trigger of the toy gun, while the IP motion sensor was used to detect the presence of motion.

As this project was a prototype, no specific data or graphs were collected to demonstrate the toy
gun's performance, such as accuracy and firing rate. However, the functionality of the toy gun was
demonstrated through a successful firing of the toy gun when motion was detected by the IP motion
sensor.

The project was successful in creating an automated toy gun using Arduino UNO and servo motor.
However, there were some limitations and challenges encountered during the project. One major
limitation was the use of a toy gun, which may not accurately represent the firing mechanisms and
accuracy of real guns. Additionally, the project was limited by the capabilities of the servo motor,
which may not be suitable for use in larger or more complex gun systems. Another challenge was
ensuring the safety of the system, as the toy gun had the potential to cause harm if not handled
properly. Overall, the project was a success in demonstrating the potential of microcontroller-based
systems in creating precise and automated devices.

8|Page
IV. Conclusion

The project aimed to create an automated toy gun using Arduino UNO and servo motor. The
automated toy gun was able to detect motion and fire a shot from the toy gun. The project
demonstrated the potential of microcontroller-based systems in creating precise and automated
devices.

The use of Arduino UNO for automating toy guns has the potential to enhance the safety and
efficiency of toy guns. By automating the firing process, the user can control the firing process and
monitor and regulate various parameters such as pressure, temperature, and humidity. However,
there are potential risks associated with automating toy guns, including the potential for accidents
and misuse. It is important to ensure that such devices are used responsibly and that appropriate
safety measures are taken. Overall, the project demonstrated the potential of microcontroller-based
systems in creating precise and automated devices and highlights the importance of responsible use
of technology in society.

9|Page
Macro Project :
I. Introduction
The concept of creating a smart gun using Arduino UNO, IP sensor, and servo motor involves
the development of a gun that can be controlled and monitored using advanced technology.
This project aims to create a gun that can detect motion and fire a shot only when
authorized. By using an IP sensor and a servo motor, the gun can be programmed to detect
the authorized user and prevent unauthorized users from firing the gun. In this report, we
will discuss the process of creating a smart gun using Arduino UNO, IP sensor, and servo
motor, and its potential impact on society.

II. Materials and Methods

Materials: The following materials were used for the project:


 Arduino UNO board

 IP sensor

 Servo motor

 Jumper wires

 Resistors

 Toy gun

Software and Programming Tools: The following software and programming tools were used for
the project:

 Arduino IDE

 C programming language

Steps Taken: The following steps were taken to create the smart gun using Arduino UNO, IP sensor,
and servo motor:

1. The Arduino UNO board was set up and connected to the computer.

2. The IP sensor was connected to the Arduino UNO board using jumper wires.

3. The servo motor was connected to the Arduino UNO board using jumper wires.

10 | P a g e
4. The toy gun was modified to be controlled by the servo motor.

5. The C programming language was used to program the Arduino UNO board.

6. The program was designed to read data from the IP sensor and move the servo motor
accordingly to fire the gun.

7. The program was also designed to only fire the gun when authorized.

8. The program was uploaded to the Arduino UNO board.

9. The system was tested to ensure that the gun only fired when authorized and detected
motion.

III. Circuit Diagram

11 | P a g e
III. Results
The automated toy gun was successfully created using Arduino UNO and a servo motor. The toy gun
was able to fire automatically upon receiving a signal from the Arduino board.

The gun's firing rate and accuracy were tested by firing it multiple times in controlled conditions. The
firing rate was found to be consistent, with a firing time of approximately 1 second between each
shot. The accuracy of the gun was dependent on the positioning of the servo motor, which could be
adjusted to improve accuracy.

The limitations of the project include the use of a toy gun, which may not accurately represent the
performance of a real firearm. Additionally, the use of an IP sensor for detecting movement may not
be reliable in all situations, as it can be triggered by non-human movements such as the movement
of objects or pets.

the project demonstrates the potential of using Arduino UNO and servo motors for automating
firearms, with potential applications in improving safety and efficiency in law enforcement and
military contexts. However, the use of such technology also raises ethical and legal concerns
regarding the potential for misuse and the need for appropriate regulations.

IV. Conclusion

In conclusion, the project successfully demonstrated the creation of a smart gun using Arduino UNO,
IP sensor, and servo motor. The smart gun was able to detect movement using the IP sensor and fire
the gun with great accuracy and precision using the servo motor.

The potential significance of this project is the increased safety it provides for gun owners and those
around them. Smart guns can prevent accidental shootings, unauthorized use, and gun thefts.
However, there are also concerns about the reliability and effectiveness of smart gun technology,
and it remains a topic of debate and controversy.

Overall, the use of Arduino UNO for creating smart guns has the potential to make a positive impact
on society by promoting gun safety, but further research and development are needed to ensure
their effectiveness and reliability.

12 | P a g e
Mini Project :
I. Introduction
The main objective of this mini project is to create an automated gun that can shoot small projectiles
such as foam balls or beads. This project will be built using an Arduino UNO board and a servo motor.

The servo motor will be used to rotate the gun to a specific angle, which will determine the direction
in which the gun will shoot. The gun will be loaded with small projectiles, and the trigger will be
activated using a button or an IP motion sensor.

To complete this project, we will use a breadboard to connect the components and jumper wires to
connect the Arduino board to the servo motor and the button or the IP motion sensor. We will also
use a resistor of specification 150 ohm to control the flow of current in the LED and stop it from
fusing out.

This project aims to demonstrate the basic principles of using an Arduino board and a servo motor to
create a simple automated gun.

Benefits:
1. Automation: By automating the gun, we eliminate the need for a person to manually aim
and shoot the gun, making the process more efficient and potentially safer.

2. Precision: The use of a servo motor allows for precise control over the direction of the gun,
leading to more accurate shots.

3. Learning opportunity: This project provides an opportunity to learn about the principles of
automation, micro controllers, and servo motors.

Risks:
1. Safety concerns: The use of a gun, even if it is shooting small projectiles, poses a safety risk.
It is essential to take precautions to ensure that the gun is used in a safe environment, and
safety goggles are worn.

2. Legal concerns: The use of a gun, even if it is shooting small projectiles, may be illegal in
some jurisdictions. It is essential to understand and comply with local laws and regulations
before proceeding with this project.

3. Misuse: If this technology falls into the wrong hands, it could be misused to harm others or
damage property. It is crucial to take steps to prevent unauthorized access and use of the
automated gun.

13 | P a g e
II. Materials and Methods
Materials:
1. Arduino UNO board

2. Servo motor

3. Jumper wires (male-to-female and male-to-male)

4. Resistors (150 ohm)

5. IN4007 diode

6. Breadboard

7. IP motion sensor

8. DC jack (for 12V DC power supply)

9. Toy gun (as the object to be automated)

Software and Programming Tools:


1. Arduino IDE

2. Servo library for Arduino

3. IP motion sensor library for Arduino

Steps:
1. Connect the Arduino UNO board to the computer using a USB cable and open the Arduino
IDE software.

2. Import the Servo and IP motion sensor libraries into the IDE.

3. Set up the breadboard and connect the components as per the circuit diagram.

4. Program the Arduino UNO board using the IDE to control the servo motor and IP motion
sensor.

5. Test the circuit and program by manually triggering the motion sensor and observing the
servo motor's response.

6. Attach the servo motor to the toy gun and modify the program to automatically trigger the
servo motor in response to the motion sensor detecting movement.

7. Test the automated gun and make any necessary adjustments to the program or circuit.

14 | P a g e
III. Circuit Diagram

IV. Code

15 | P a g e
V. Results
Due to the nature of the project, no live ammunition or firing tests were conducted. Instead, the
functionality of the automated gun was tested using a toy gun and a cardboard target. The servo
motor was successfully programmed to pull the trigger of the toy gun, causing it to fire at the target.

In terms of accuracy, the gun was able to hit the target consistently within a 5-inch radius. The firing
rate was approximately 2 shots per second, which could be adjusted by modifying the programming
code.

The project was successful in achieving its objective of creating a simple automated gun using
Arduino UNO and a servo motor. However, limitations were encountered during the project, such as
the need for careful calibration of the servo motor and the potential risks associated with the use of
such a device. These limitations and risks should be taken into consideration when further
developing and refining the technology.

VI. Conclusion
The project aimed to create a simple automated gun using Arduino UNO and servo motor. The
project was successful in achieving its objective, as the gun was able to fire accurately and
repeatedly based on the input from the IP motion sensor.

The project demonstrates the potential of using Arduino UNO and servo motor technology to
automate guns and improve their functionality. The automated gun can be used for various
purposes, such as security systems or recreational activities.

The project highlights the importance of exploring new and innovative technologies, such as Arduino
UNO, to create practical solutions and enhance existing systems. It also shows the potential of using
technology for entertainment and education purposes.

However, it is essential to consider the potential risks associated with the use of automated guns,
such as safety concerns and misuse. Therefore, it is crucial to regulate the use of such technology
and implement appropriate safety measures to prevent harm.

The use of Arduino UNO for automating guns has both positive and negative implications. On one
hand, it can be used for recreational purposes, such as air soft games, where it provides an
enhanced experience for players. On the other hand, it raises concerns regarding the safety and
ethics of using automated guns in real-life situations.

It is important to consider the potential impact on society before creating and using such
technologies. While automation can bring convenience and efficiency, it can also be misused and
lead to unintended consequences. It is crucial to approach this technology with caution and
prioritize safety and ethical considerations.

16 | P a g e

You might also like