Question

Now a days a self-flying DORAMONE toy is common and a piece of attraction for small...

Now a days a self-flying DORAMONE toy is common and a piece of attraction for small children. You have to design your own product that can compete with this product in the market. What you are required to do is.

1. Design the complete circuit of the toy.

2. Code the circuit using Arduino Mini board.

3. The toy must be cheap and easy to use.

4. Try to add an extra feature like sound in your toy.

Homework Answers

Answer #1

Required components for this circuit:

Arduino Mini / Arduino UNO - 1 Quantity

Ultrasonic Sensor - HC-SR04 (Generic) - 1 Quantity

Buzzer - 1 Quantity // to make sound

Breadboard - 1 Quantity

Male/Female Jumper wires - Few Quantities

Design of the circuit:

I have Arduino UNO board in my home. So, I created the above circuit. In the picture, I mentioned as Arduino Mini.

==========================================================

Product Procedure:

  • Connect the Trigger Pin of the Sensor (HC-SR04) to Pin (2) of the Arduino board
  • Connect the Echo Pin of the Sensor (HC-SR04) to Pin (3) of the Arduino board
  • Connect Vcc and GND of the Sensor (HC-SR04) Supply and Ground respectively
  • Place the buzzer on the breadboard
  • Connect Buzzer Positive End to Pin 10 of the Arduino board and connect the Negative End to ground
  • Connect 5V terminal of the Arduino board to supply and GND terminal of the Arduino board to ground

============================================================

Code the circuit using Arduino Mini board:

<SoftwareSerial.h> - Library need to be installed.

Code using HC-SR04 ultrasonic range:

#include <SoftwareSerial.h>

int trigPin = 2;
int echoPin = 3;

int buzzer = 10;

void setup() {
Serial.begin(9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(buzzer,OUTPUT);
}

void loop()
{

// if someobject comes closer than 50 cm then it triggers buzzer - If needed increase the distance
if(measureDistanceInCM() < 50){
digitalWrite(buzzer,HIGH);
delay(1000); //delay is given to avoid errors
}

else

{

digitalWrite(buzzer,LOW);

delay(1000); //delay is given to avoid errors

}
delay(300);
}

long measureDistanceInCM(){
long duration, distance;
digitalWrite(trigPin, LOW); //PULSE ___|---|___
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.1;
Serial.println("distance:");
Serial.println(distance);
return distance; //returns distance in cm
}
=================================================================

How is it works?

In the void loop() function, Sensor measures the distance of other objects which come near to the sensor.

measureDistanceInCM() function is used to measure the distance.

So, if someobject comes nearer to the Sensor (As per this program, less than 50 cm - If needed, we can increase) then it triggers buzzer sound.

=============================================================

Try to add an extra feature like sound in your toy.

Buzzer sound is added - if someobject comes nearer to the Sensor (As per this program, less than 50 cm - If needed, we can increase) then it triggers buzzer sound.

============================================================

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Mattel Responds to Ethical Challenges Business Ethics This case was written by Debbie Thorne, John Fraedrich,...
Mattel Responds to Ethical Challenges Business Ethics This case was written by Debbie Thorne, John Fraedrich, O. C. Ferrell, and Jennifer Jackson, with the editorial assistance of Jennifer Sawayda. This case was developed for classroom discussion rather than to illustrate either effective or ineffective handling of an administrative, ethical, or legal discussion by management. All sources used for this case were obtained through publicly available material. Mattel, Inc. is a world leader in the design, manufacture, and marketing of family...
The Business Case for Agility “The battle is not always to the strongest, nor the race...
The Business Case for Agility “The battle is not always to the strongest, nor the race to the swiftest, but that’s the way to bet ’em!”  —C. Morgan Cofer In This Chapter This chapter discusses the business case for Agility, presenting six benefits for teams and the enterprise. It also describes a financial model that shows why incremental development works. Takeaways Agility is not just about the team. There are product-management, project-management, and technical issues beyond the team’s control. Lean-Agile provides...
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation....
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation. case:    W17400 APIGEE: PEOPLE MANAGEMENT PRACTICES AND THE CHALLENGE OF GROWTH Ranjeet Nambudiri, S. Ramnarayan, and Catherine Xavier wrote this case solely to provide material for class discussion. The authors do not intend to illustrate either effective or ineffective handling of a managerial situation. The authors may have disguised certain names and other identifying information to protect confidentiality. This publication may not be...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT